You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using an admin user with full access, POSTing to a collection with
required fields but sending a document with empty values, the following error is returned:
document
{
"body": "",
"title": ""
}
error
{
"statusCode": 403,
"success": false,
"errors": [
{
"field": "body",
"message": "is a required field which the client has no permission to write to",
"code": "ERROR_UNAUTHORISED"
},
{
"field": "title",
"message": "is a required field which the client has no permission to write to",
"code": "ERROR_UNAUTHORISED"
}
]
}
When using an admin user with full access, POSTing to a collection with
required fields but sending a document with empty values, the following error is returned:
document
{
"body": "",
"title": ""
}
error
This appears to be an issue here https://github.com/dadi/api/blob/develop/dadi/lib/model/index.js#L226-L238, where API turns a required
error into an authorisation error.
The text was updated successfully, but these errors were encountered: