Skip to main content

Upload Success

Overview


The following table contains important information about the POST method when the action is successful in regards to the upload process.

POST Method
MethodPOST
URL or Endpoint/api/projects/projectId/uploads/success/requestKey
HeadersAuthorization
ParametersprojectId, requestKey
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeDescription
projectIdYesstringProject specifier property.
requestKeyYesstringKey that is provided after a successful upload.

Request Body

After a succesful upload, the POST method doesn't require a request body.

Response

{
"success": true,
"statusCode": 200,
"result": {
"downloadPath": "http://blob.gjirafa.com/vps/cnc/uploads/b5b786fdba364e3d8da54f2f322ce8d6/file.mp4"
},
"resultInfo": null,
"errors": [],
"messages": []
}

Information about the fields that appear when you receive the response are displayed in the table below.

Field NameTypeDescription
successboolIf the response is successful it will return true. Otherwise will return false
statusCodeintegerReturns the HTTP Status Code
resultarray[Object]Returns the response object
result.downloadPathstringReturns the downloadPath of the video
resultInfostringReturns extra information about the result
errorsarray[string]Indicates if there was an error
messagesarray[string]Returns the response message from the encode endpoints
info

If the action is successful, the service responds with an HTTP 200 or 201 status code.

Errors

For information about the errors that are common to all actions, see common errors:

  • HTTP Status Code 400: Bad Request
  • HTTP Status Code 401: Unauthorized
  • HTTP Status Code 403: Forbidden
  • HTTP Status Code 404: Result Not Found
  • HTTP Status Code 500: Internal Server Error
  • HTTP Status Code 503: Service Unavailable