Error messages
Examples of error messages or validations returned by the API and what they are
The responses returned by the API follow this standard response format:
{
"errors": { ... },
"data": { ... }
}However, the errors attribute is only returned when an exception occurs in the request.
When an invalid GraphQL query error occurs, the exceptions are similar to the example below (e.g., when a required value like name is missing in the query specification).
{
"errors": [
{
"message": "Variable \"$folder\" got invalid value null at \"folder.name\"; Expected non-nullable type \"String!\" not to be null.",
"locations": [
{
"line": 1,
"column": 31
}
]
}
]
}Here's an example of a common error when searching for a nonexistent folder:
Additionally, there are validation errors (when the message attribute has the value "validation"), such as when creating a folder with an empty string value:
In the following example, there’s also a validation error, but with variables, which happens when a folder name that is too short is defined:
Validation Errors
Lastly, here is a JSON with all the possible error or validation messages that may be returned by the API, along with their meanings and any possible variables in curly brackets (e.g., {{variable}}). Note that these do not include GraphQL query errors.
Rate Limit Error
If your user exceeds 60 requests per minute, an error with status code 429 will be returned, with the message:
Last updated
Was this helpful?