Skip to main content
Call this API to commit a file.

API call description

The API call steps are as follows: Step 1: Call the Obtain file upload information API to obtain the information required for uploading the file. Step 2: Upload the file by using the OSS header sign request method. Refer to the following examples: Java
Python
C#
PHP
Node.js
Step 3: Call this API to commit the file and complete the upload.

Notes

  • When the storage space type is USER, all users with permissions on the space have operation rights. Other employees must call the Add permissions API to grant authorization.
  • When the storage space type is APP, any operator must call the Add permissions API to grant authorization.

request

Basic information

request header

path parameter

query parameter

request body

Request example

HTTP
Java
Python
PHP
Go
Node.js
C#

response

response body

Response body example

Error codes

If an error is returned when you call this API, find a solution by error message in the Global error codes document.