Non-Descriptive Update Group Membership Errors

/cloud/v2/groups/{group_id}/memberships/{membership_id} will return a non-descriptive error “The request was invalid” if you provide invalid arguments, the user is not in the group, the user is already the same rank, or the user who created the API key does not have permissions to update the user’s rank to the provided rank. A separate error for each of these cases can help developers debug why requests are failing and provide accurate error messages to their users without adding overhead and performing these checks themselves. This was the case on the legacy endpoint, but is not on the Open Cloud version for some reason.

image

1 Like