I created a new PAT token and I got a 403 error. I was expecting an empty list of items.
{
“requestId”: “69cef5470000000049c28af729209f4f”,
“error”: {
“code”: “ForbiddenError”,
“message”: “A resource could not be found.”,
“details”:
}
}
I created a new PAT token and I got a 403 error. I was expecting an empty list of items.
{
“requestId”: “69cef5470000000049c28af729209f4f”,
“error”: {
“code”: “ForbiddenError”,
“message”: “A resource could not be found.”,
“details”:
}
}
I think you get a 403 if you don’t include the
?locationId={UUID of Location} filter in the query string. Even though most endpoints will default to something sensible and it probably ought to be something like a 400 if the filter is required in the request.
Don’t get me started on some endpoints using location and some locationId. The API is like the Wild West.
location query param was specified. no luck.
Hi, @jnettleton
I checked the request using that request ID and saw the parameter name is incorrect.
The query parameter is called “locationId”, not “location”. Please modify this part.
I just made a test for this endpoint, and it worked correctly. Here’s the request:
http://api.smartthings.com/v1/rules?locationId=xxx-xxx