25015: The SCIM PATCH request is invalid
ERROR
You receive this error when your request to PATCH /scim/v2/Users/{id} does not use the SCIM PATCH structure required by the SCIM API. Your request body must include the urn:ietf:params:scim:api:messages:2.0:PatchOp schema and an Operations array.
- The JSON body does not follow the documented SCIM
PATCHformat forPATCH /scim/v2/Users/{id}. - The
schemasarray is missingurn:ietf:params:scim:api:messages:2.0:PatchOp. - The
Operationsarray is missing, empty, or incorrectly structured. - The request attempts to patch attributes outside the supported set of fields for this endpoint, or uses unsupported field paths for the operation payload.
PATCHsupport foractive,name.givenName,name.familyName,displayName,timezone,locale,emails, anduserName.
- Send the request to
PATCH /scim/v2/Users/{id}with a SCIMPATCHbody that includesschemaswithurn:ietf:params:scim:api:messages:2.0:PatchOpand anOperationsarray containing each change. - Compare your request body against the documented
PATCHexample and keep the JSON property names and nesting for each operation consistent with that format. - Patch only supported fields for this endpoint:
active,name.givenName,name.familyName,displayName,timezone,locale,emails, anduserName. - If you update
emailsanduserNamein the same request, make sure the primary email value matches the username.