ERRORSY10052
Location Is Not Assigned To Any Folder. Location Is In Root And Root Locations Cannot Be Deleted.
The Synup API returns SY10052 in the errors array when this happens.
What the response looks like
Response
{
"data": null,
"errors": [
{
"message": "Location Is Not Assigned To Any Folder. Location Is In Root And Root Locations Cannot Be Deleted.",
"context": {},
"code": "SY10052"
}
]
}Where it comes from
Documented under Locations. The context field carries the offending value when one is relevant, and is empty otherwise.
See the full error code reference for every code the API can return.
Other Locations errors
| Code | Message |
|---|---|
SY10001 | Location `${name}` needs to be between 2 |
SY10002 | Additional Info needs to be a maximum of 1024 char |
SY10003 | Plan Id needs to be present |
SY10004 | Account Id needs to be present |
SY10005 | Description needs to have a minimum of 200 characters. |
SY10006 | Owner Email is of incorrect |
SY10007 | Enabled Site Ids are invalid |
SY10008 | Year of Incorporation is not valid |
SY10009 | Country is invalid |
SY10010 | State is invalid |
SY10011 | Street is invalid |
SY10012 | City is invalid |