Delete SCIM User

DELETE /Organizations/{OrganizationSid}/scim/Users/{UserSid}

Path parameters

  • OrganizationSid string(OrganizationSid) Required

    Format should match the following pattern: OR[0-9a-f]{32}.

  • UserSid string(UserSid) Required

    Format should match the following pattern: US[0-9a-f]{32}.

Responses

  • 204

    No content

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

  • 400 application/scim+json

    Bad request or business rules violation

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • schemas array[string]

      Schema URIs that define the contents of the error structure

    • detail string

      A human-readable description of the error

    • scimType string

      A scimType error code as defined in RFC7644

      Values are invalidFilter, uniqueness, mutability, invalidValue, or invalidSyntax.

    • status string

      Http status code

    • code integer(int32)

      Twilio-specific error code

    • moreInfo string

      Link to Error Code References

  • 401 application/scim+json

    Unauthorized

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • schemas array[string]

      Schema URIs that define the contents of the error structure

    • detail string

      A human-readable description of the error

    • scimType string

      A scimType error code as defined in RFC7644

      Values are invalidFilter, uniqueness, mutability, invalidValue, or invalidSyntax.

    • status string

      Http status code

    • code integer(int32)

      Twilio-specific error code

    • moreInfo string

      Link to Error Code References

  • 403 application/scim+json

    Forbidden

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • schemas array[string]

      Schema URIs that define the contents of the error structure

    • detail string

      A human-readable description of the error

    • scimType string

      A scimType error code as defined in RFC7644

      Values are invalidFilter, uniqueness, mutability, invalidValue, or invalidSyntax.

    • status string

      Http status code

    • code integer(int32)

      Twilio-specific error code

    • moreInfo string

      Link to Error Code References

  • 404 application/scim+json

    Not found

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • schemas array[string]

      Schema URIs that define the contents of the error structure

    • detail string

      A human-readable description of the error

    • scimType string

      A scimType error code as defined in RFC7644

      Values are invalidFilter, uniqueness, mutability, invalidValue, or invalidSyntax.

    • status string

      Http status code

    • code integer(int32)

      Twilio-specific error code

    • moreInfo string

      Link to Error Code References

  • 429 application/scim+json

    Too many requests

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • schemas array[string]

      Schema URIs that define the contents of the error structure

    • detail string

      A human-readable description of the error

    • scimType string

      A scimType error code as defined in RFC7644

      Values are invalidFilter, uniqueness, mutability, invalidValue, or invalidSyntax.

    • status string

      Http status code

    • code integer(int32)

      Twilio-specific error code

    • moreInfo string

      Link to Error Code References

DELETE /Organizations/{OrganizationSid}/scim/Users/{UserSid}
curl \
 --request DELETE 'https://preview-iam.twilio.com/Organizations/OR80b7392892f0a424d07c42f5b11dce2a/scim/Users/US23c7d4510f1398849aaac5c543475b12' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (400)
# Headers
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, OPTIONS
Access-Control-Allow-Headers: Content-Type, Authorization
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: X-Custom-Header1, X-Custom-Header2

# Payload
{
  "schemas": [
    "string"
  ],
  "detail": "string",
  "scimType": "invalidFilter",
  "status": "string",
  "code": 42,
  "moreInfo": "string"
}
Response examples (401)
# Headers
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, OPTIONS
Access-Control-Allow-Headers: Content-Type, Authorization
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: X-Custom-Header1, X-Custom-Header2

# Payload
{
  "schemas": [
    "string"
  ],
  "detail": "string",
  "scimType": "invalidFilter",
  "status": "string",
  "code": 42,
  "moreInfo": "string"
}
Response examples (403)
# Headers
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, OPTIONS
Access-Control-Allow-Headers: Content-Type, Authorization
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: X-Custom-Header1, X-Custom-Header2

# Payload
{
  "schemas": [
    "string"
  ],
  "detail": "string",
  "scimType": "invalidFilter",
  "status": "string",
  "code": 42,
  "moreInfo": "string"
}
Response examples (404)
# Headers
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, OPTIONS
Access-Control-Allow-Headers: Content-Type, Authorization
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: X-Custom-Header1, X-Custom-Header2

# Payload
{
  "schemas": [
    "string"
  ],
  "detail": "string",
  "scimType": "invalidFilter",
  "status": "string",
  "code": 42,
  "moreInfo": "string"
}
Response examples (429)
# Headers
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, OPTIONS
Access-Control-Allow-Headers: Content-Type, Authorization
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: X-Custom-Header1, X-Custom-Header2

# Payload
{
  "schemas": [
    "string"
  ],
  "detail": "string",
  "scimType": "invalidFilter",
  "status": "string",
  "code": 42,
  "moreInfo": "string"
}