Resources

Error in creating a resource

The API may report an error in the resource processing. The reason forms part of the response to the POST call.The standard reasons are:

Standard error scenarios

Error condition

Details

Request a URI that doesn’t exist

Response code

  • 404 Not Found

Description

  • The requested URI doesn’t exist.

Actions for application client

  • Resource doesn’t exist. Incorrect resource identifier, or resource has been removed.

Provide an attachment that is bigger than 10 MB

Response code

  • 422 Unprocessable Entity

Description

  • The POST request entity exceeds the allowed size.

Actions for application client

  • Ensure the size of the resource doesn't exceed 10 MB.

Provide a mime type that is not json, xml or csv

Response code

  • 422 Unprocessable Entity

Description

  • The request was unsuccessful because the requested content type is not supported by the API.

Actions for application client

  • Incorrect mime type. Only text/CSV, application/XML, application/JSON are supported as bulk message resources.

Malformed XML or JSON passed

Response code

  • 422 Unprocessable Entity

Description

  • An error occurred when processing an entity in the request.

Actions for application client

  • Likely to be a malformed CSV, XML or JSON file. Verify the data structure.