ERRORSY20006
Please provide a valid role
The Synup API returns SY20006 in the errors array when this happens.
What the response looks like
Response
{
"data": null,
"errors": [
{
"message": "Please provide a valid role",
"context": {},
"code": "SY20006"
}
]
}Where it comes from
Documented under Rankings. 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 Rankings errors
| Code | Message |
|---|---|
SY20009 | Rankings not enabled for this account |
SY20100 | Keywords can't be blank |
SY20101 | Location Ids can't be blank |
SY20103 | Maximum keyword limit reached |
SY20104 | Invalid Keyword Id |
SY20105 | Keyword with id `$keyword_id` not found |
SY20106 | Keyword with name `$keyword` already exists |
SY20200 | Keyword can't be blank |
SY20201 | Keyword must be minimum 2 characters |
SY20202 | Keyword can't be more than 255 characters |