Skip to main content

POST Logo

Overview


The following table contains important information about the POST method to upload a logo.

POST Method
MethodPOST
URL or Endpoint/api/projects/projectId/uploads/image
HeadersAuthorization
ParametersprojectId
Bodyfolder, file

The description of the URL parameters is as follows:

projectId URL Parameter
URL Parameter NameprojectId
MandatoryYes
Typestring
DescriptionUnique identifier for project

Request Body

The description of the parameters is as follows:

Field NameTypeDescription
successboolIf the response is successful, it will return true. Otherwise, it will return false.
errorsarray[string]Indicates if there was an error.
messagesarray[string]Returns the response message from the back-end.
resultobjectReturns the response object containing details about the file.
pathstringThe absolute URL of the uploaded file.
relativePathstringThe relative path to the file within the storage system.
blobPathstringPath for the blob storage, if applicable.
resultInfostringReturns extra information about the result, if any.
statusCodeintegerReturns the HTTP Status Code.

If the action is successful, the service sends back an HTTP 200 or 201 response.

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: Backend Fetch Failed