Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/libs/Soniox/Generated/autosdk.generated-examples.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"Slug": "upload-file",
"Description": "Uploads a new file.",
"Language": "http",
"Code": "### Upload file\n# @name upload_file\nPOST {{host}}/v1/files\nAuthorization: Bearer {{token}}\nContent-Type: multipart/form-data\nAccept: application/json\n\n## Responses\n# 201\n# Description: Uploaded file.\n# Content-Type: application/json\n# 400\n# Description: Invalid request.\n\nError types:\n- \u0060invalid_request\u0060: One or more parts of the multipart body are missing or invalid (missing \u0060file\u0060, filename or \u0060client_reference_id\u0060 too long, malformed multipart body), or the uploaded file exceeds the per-file upload limit.\n\n# Content-Type: application/json\n# 401\n# Description: Authentication error.\n# Content-Type: application/json\n# 429\n# Description: Rate / capacity limit exceeded.\n\nError types:\n- \u0060limit_exceeded\u0060: The caller hit a per-minute request rate, the total file count or total file size cap (organization or project), or this upload would exceed those caps. The \u0060message\u0060 describes which limit was hit. Delete unused files via \u0060DELETE /v1/files/{id}\u0060 or request a higher limit in the Soniox Console.\n\n# Content-Type: application/json\n# 500\n# Description: Internal server error.\n# Content-Type: application/json",
"Code": "### Upload file\n# @name upload_file\nPOST {{host}}/v1/files\nAuthorization: Bearer {{token}}\nContent-Type: multipart/form-data; boundary=AutoSDKBoundary\nAccept: application/json\n\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022client_reference_id\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022file\u0022; filename=\u0022file.bin\u0022\nContent-Type: application/octet-stream\n\n\u003C ./file.bin\n--AutoSDKBoundary--\n\n## Responses\n# 201\n# Description: Uploaded file.\n# Content-Type: application/json\n# 400\n# Description: Invalid request.\n\nError types:\n- \u0060invalid_request\u0060: One or more parts of the multipart body are missing or invalid (missing \u0060file\u0060, filename or \u0060client_reference_id\u0060 too long, malformed multipart body), or the uploaded file exceeds the per-file upload limit.\n\n# Content-Type: application/json\n# 401\n# Description: Authentication error.\n# Content-Type: application/json\n# 429\n# Description: Rate / capacity limit exceeded.\n\nError types:\n- \u0060limit_exceeded\u0060: The caller hit a per-minute request rate, the total file count or total file size cap (organization or project), or this upload would exceed those caps. The \u0060message\u0060 describes which limit was hit. Delete unused files via \u0060DELETE /v1/files/{id}\u0060 or request a higher limit in the Soniox Console.\n\n# Content-Type: application/json\n# 500\n# Description: Internal server error.\n# Content-Type: application/json",
"Format": "http",
"OperationId": "upload_file",
"Setup": null
Expand Down