Error Responses
Error Responses
400 - Bad Request
The was a problem with your request. Check the code and message for details about what went wrong.
{
"code": "INVALID_FILE_KEY",
"message": "Invalid or expired attachment_file_key"
}
401 - Unauthorized
Invalid token
{
"code": "NOT_AUTHORIZED",
"message": "User is not authorized to perform that action"
}
403 - Forbidden
Invalid/missing scopes
{
"code": "FORBIDDEN",
"message": "User is not authorized to perform that action"
}
404 - Not Found
The resource with an ID doesn't exist, or the user doesn't have access to it.
{
"code": "NOT_FOUND",
"message": "The requested resource with the ID of 1234 is not available."
}
422 - Validation Errors
Something is wrong with the request data. The errors property will be an array of the fields that have validation errors. There may be more than one validation error per field.
{
"code" : "INVALID_REQUEST",
"message": "The given data was invalid.",
"errors": {
"group_id": [
"The group id field is required."
],
"message": [
"The message field is required when attachment file key is not present."
]
}
}