I think it would be helpful if the community could contribute known error objects being returned for Data API v2 while Webflow catches up on documentation.
I need these, even if I don’t generate them, to implement proper error handling for an integration I work on.
I have a few to contribute:
When attempting to update - patch
- an item live that currently has status "isArchived": true
a 409
is returned with the following message:
{
"message": "Conflict: Conflict with server data: Live PATCH updates can't be applied to items that have never been published",
"code": "conflict",
"externalReference": null,
"details": []
}
Another type of 409
occurs if the user makes any changes to the CMS collection structure. To generate the below error I simply changed a field to be required and saved the CMS Collection without publishing.
Then - again for me on live patch
- I got the 409
:
{
"message": "Conflict: The collection structure changed since the last publish",
"code": "conflict",
"externalReference": null,
"details": []
}
When I attempt to access a CMS Item via Item Id which no longer exists (user deleted the item manually from CMS), I get a 404
not found but the code
is not item_not_found
but is resource_not_found
{
"message": "Requested resource not found",
"code": "resource_not_found",
"externalReference": null,
"details": []
}
I am going to try to capture a schema error later and add it!
I would appreciate any contributions!