Skip to main content

Why am I receiving a 400 error when trying to add a member via the Sentry SCIM API?

Updated over a month ago

Issue

I am receiving the error HTTP 400: {'detail': '{"schemas":["This field is required."]}', 'schemas':['urn:ietf:params:scim:api:messages:2.0:Error']} when trying to add a member via the Senty SCIM API.

Applies To

  • Business and Enterprise Subscriptions with SAML2 enabled

Symptoms

  • I am receiving a 400 error but the "schemas" field is not specified in the docs, what do I do?

Resolution

This is a requirement of SCIM itself; adding 'schemas' ensures that the payload is processed correctly by the server according to the defined SCIM operation. While not in our members API docs, you can see an example of 'schemas' being used in our Teams API documentation.

For updating a team's attributes, the correct schema is "urn:ietf:params:scim"api:messages:2.0:PatchOp"
​
​

Did this answer your question?