Hi there,
We’re facing a weird issue for a few days now.
When trying to add an existing (app) user to an existing group, the API throws an error:
curl https://api.box.com/2.0/group_memberships \
-H "Content-Type: application/json" \
-H 'Authorization: Bearer <token>' \
-d '{"user":{"id":"aaa59478bbb"},"group":{"id":"yyy2197xxx"},"role":"admin"}'
{
"type": "error",
"status": 404,
"code": "not_found",
"context_info":
{
"errors":
{
"reason": "invalid_parameter",
"name": "group_tag",
"message": "Invalid value 'g_yyy2197xxx'. 'group_tag' with value 'g_yyy2197xxx' not found"
}
]
},
"help_url": "http://developers.box.com/docs/#errors",
"message": "Not Found",
"request_id": "awo09uhgm4qzv4ww"
}
First I though this is a permission related issue, but this has been working just fine for years and nothing has been changed recently on our end.
Interestingly the operation succeeds when using the Box App, however it uses different endpoints (groups/validateAndConvertUsers
& groups/yyy2197xxx/users/data
).
Any idea what could be the root cause of this problem?
Cheers