Skip to content
Sign in Create account

Patch SCIM user (partial update / deactivation)

PATCH /api/scim/v2/Users/{id}

Applies SCIM PatchOp Operations to a user belonging to the SCIM token's tenant. The request requires a schemas array and at least one Operations entry; each entry must be an object. The service handles the individual operations. Returns the updated user or 404 when the user is outside the tenant or does not exist.

Authenticate with a SCIM token.

Parameters

  • id integer path required

Request body

application/scim+json object

  • Operations array of object required
    Items: at least 1 items
  • schemas array of string required

Generated sample

{
  "Operations": [
    {}
  ],
  "schemas": [
    "string"
  ]
}

Responses

200 User patched

application/json ScimUserResource

  • active boolean required
  • emails array of object required

    Each item:

    • primary boolean required
      Value: true
    • value string (email) required
  • id string required
  • meta object required
    • created string (date-time) or null required
    • lastModified string (date-time) or null required
    • location string (uri) required
    • resourceType string required
      Value: "User"
  • name object required
    • formatted string required
  • schemas array of string required
  • userName string (email) required

Generated sample

{
  "active": true,
  "emails": [
    {
      "primary": true,
      "value": "user@example.com"
    }
  ],
  "id": "string",
  "meta": {
    "created": "2026-01-01T00:00:00Z",
    "lastModified": "2026-01-01T00:00:00Z",
    "location": "https://example.com",
    "resourceType": "User"
  },
  "name": {
    "formatted": "string"
  },
  "schemas": [
    "string"
  ],
  "userName": "user@example.com"
}
401 Error response.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

403 Error response.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

404 User was not found in the token's tenant.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

409 Error response.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

422 Invalid PatchOp request.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

429 Error response.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

text/html string