Skip to content

Commit 7a86a2c

Browse files
committed
update the model prepareUrl endpoint
1 parent 38e9147 commit 7a86a2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roboflow/core/workspace.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,8 +611,8 @@ def _upload_zip(
611611
model_file_name: str,
612612
):
613613
# This endpoint returns a signed URL to upload the model
614-
res = requests.get(
615-
f"{API_URL}/{self.url}/models/getDeployUrl?api_key={self.__api_key}&modelType={model_type}&modelName={model_name}&projectIds={','.join(project_ids)}&nocache=true"
614+
res = requests.post(
615+
f"{API_URL}/{self.url}/models/prepareUpload?api_key={self.__api_key}&modelType={model_type}&modelName={model_name}&projectIds={','.join(project_ids)}&nocache=true"
616616
)
617617
try:
618618
res.raise_for_status()

0 commit comments

Comments
 (0)