openapi: 3.2.0 info: title: Organization Public SCIM API contact: name: Twilio Support url: https://support.twilio.com email: support@twilio.com license: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0.html version: 1.0.0 x-twilio: apiStandards: v0.1 description: SCIM 2.0 User endpoints servers: - url: https://preview-iam.twilio.com security: - oAuth2ClientCredentials: [] tags: - name: SCIM description: SCIM 2.0 User endpoints paths: /Organizations/{OrganizationSid}/scim/Users: servers: - url: https://preview-iam.twilio.com get: tags: - SCIM summary: List SCIM Users operationId: ListOrganizationUsers parameters: - name: OrganizationSid in: path required: true schema: pattern: OR[0-9a-f]{32} type: string format: OrganizationSid example: OR33f4f3aa6fffe840d000f8ef22e883db - name: filter in: query schema: type: string responses: '200': description: List of users content: application/scim+json: schema: $ref: '#/components/schemas/ScimUserPage' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '400': description: Bad request or business rules violation content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '401': description: Unauthorized content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '403': description: Forbidden content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '429': description: Too many requests content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 post: tags: - SCIM summary: Create SCIM User operationId: CreateOrganizationUser parameters: - name: OrganizationSid in: path required: true schema: pattern: OR[0-9a-f]{32} type: string format: OrganizationSid example: ORceef74a747c1ae8d837aafb5a31e475f requestBody: content: application/json: schema: $ref: '#/components/schemas/ScimUser' application/scim+json: schema: $ref: '#/components/schemas/ScimUser' required: true responses: '201': description: Created User content: application/scim+json: schema: $ref: '#/components/schemas/ScimUser' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '400': description: Bad request or business rules violation content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '401': description: Unauthorized content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '403': description: Forbidden content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '404': description: Not found content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '429': description: Too many requests content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 /Organizations/{OrganizationSid}/scim/Users/{UserSid}: servers: - url: https://preview-iam.twilio.com get: tags: - SCIM summary: Get SCIM User operationId: FetchOrganizationUser parameters: - name: OrganizationSid in: path required: true schema: pattern: OR[0-9a-f]{32} type: string format: OrganizationSid example: OR5f3baf01a0f8273e74266afb84341766 - name: UserSid in: path required: true schema: pattern: US[0-9a-f]{32} type: string format: UserSid example: USb51dccce9ac8e67b938253c7bcaa4f45 responses: '200': description: User content: application/scim+json: schema: $ref: '#/components/schemas/ScimUser' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '400': description: Bad request or business rules violation content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '401': description: Unauthorized content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '403': description: Forbidden content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '404': description: Not found content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '429': description: Too many requests content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 put: tags: - SCIM summary: Update SCIM User operationId: UpdateOrganizationUser parameters: - name: If-Match in: header schema: type: string - name: OrganizationSid in: path required: true schema: pattern: OR[0-9a-f]{32} type: string format: OrganizationSid example: ORd3a1c06d4942d123cd8fa2a052fe110a - name: UserSid in: path required: true schema: pattern: US[0-9a-f]{32} type: string format: UserSid example: US14def5586bc0799a5c7aab80247af278 requestBody: content: application/json: schema: $ref: '#/components/schemas/ScimUser' application/scim+json: schema: $ref: '#/components/schemas/ScimUser' required: true responses: '200': description: User object with updated attributes content: application/scim+json: schema: $ref: '#/components/schemas/ScimUser' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '400': description: Bad request or business rules violation content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '401': description: Unauthorized content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '403': description: Forbidden content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '404': description: Not found content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '409': description: Version conflict content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '429': description: Too many requests content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 delete: tags: - SCIM summary: Delete SCIM User operationId: DeleteOrganizationUser parameters: - name: OrganizationSid in: path required: true schema: pattern: OR[0-9a-f]{32} type: string format: OrganizationSid example: OR80b7392892f0a424d07c42f5b11dce2a - name: UserSid in: path required: true schema: pattern: US[0-9a-f]{32} type: string format: UserSid example: US23c7d4510f1398849aaac5c543475b12 responses: '204': description: No content headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '400': description: Bad request or business rules violation content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '401': description: Unauthorized content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '403': description: Forbidden content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '404': description: Not found content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '429': description: Too many requests content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 patch: tags: - SCIM summary: Patch SCIM User operationId: PatchOrganizationUser parameters: - name: If-Match in: header schema: type: string - name: OrganizationSid in: path required: true schema: pattern: OR[0-9a-f]{32} type: string format: OrganizationSid example: OR50835cc756f1a5503f7a88f23409bd4b - name: UserSid in: path required: true schema: pattern: US[0-9a-f]{32} type: string format: UserSid example: USa9ddadb0ff7a25ac0ace028a1846729f requestBody: content: application/json: schema: $ref: '#/components/schemas/ScimPatchRequest' application/scim+json: schema: $ref: '#/components/schemas/ScimPatchRequest' required: true responses: '200': description: User object with updated attributes content: application/scim+json: schema: $ref: '#/components/schemas/ScimUser' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '400': description: Bad request or business rules violation content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '401': description: Unauthorized content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '403': description: Forbidden content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '404': description: Not found content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '409': description: Version conflict content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 '429': description: Too many requests content: application/scim+json: schema: $ref: '#/components/schemas/ScimError' headers: Access-Control-Allow-Origin: description: Specify the origin(s) allowed to access the resource schema: type: string example: '*' Access-Control-Allow-Methods: description: Specify the HTTP methods allowed when accessing the resource schema: type: string example: POST, OPTIONS Access-Control-Allow-Headers: description: Specify the headers allowed when accessing the resource schema: type: string example: Content-Type, Authorization Access-Control-Allow-Credentials: description: Indicates whether the browser should include credentials schema: type: boolean Access-Control-Expose-Headers: description: Headers exposed to the client schema: type: string example: X-Custom-Header1, X-Custom-Header2 components: schemas: ScimEmailAddress: type: object properties: primary: type: boolean description: Indicates if this email address is the primary one value: maxLength: 160 minLength: 2 type: string description: The actual email address value type: maxLength: 64 minLength: 0 type: string description: The type of email address (e.g., work, home, etc.) description: Email address list of the user. Primary email must be defined if there are more than 1 email. Primary email must match the username. ScimError: type: object properties: schemas: type: array description: Schema URIs that define the contents of the error structure items: type: string description: Schema URIs that define the contents of the error structure detail: type: string description: A human-readable description of the error scimType: type: string description: A scimType error code as defined in RFC7644 enum: - invalidFilter - uniqueness - mutability - invalidValue - invalidSyntax status: type: string description: Http status code code: description: Twilio-specific error code type: integer format: int32 moreInfo: description: Link to Error Code References type: string ScimUser: required: - userName type: object properties: id: type: string description: Unique Twilio user sid externalId: maxLength: 255 minLength: 2 type: string description: External unique resource id defined by provisioning client userName: maxLength: 255 minLength: 2 type: string description: Unique username, MUST be same as primary email address displayName: maxLength: 255 minLength: 0 type: string description: User friendly display name name: $ref: '#/components/schemas/ScimName' emails: maxItems: 2147483647 minItems: 1 type: array description: Email address list of the user. Primary email must be defined if there are more than 1 email. Primary email must match the username. items: $ref: '#/components/schemas/ScimEmailAddress' active: type: boolean description: Indicates whether the user is active locale: type: string description: User's locale timezone: type: string description: User's time zone schemas: type: array description: An array of URIs that indicate the schemas supported for this user resource items: type: string description: An array of URIs that indicate the schemas supported for this user resource meta: $ref: '#/components/schemas/ScimMeta' ScimPatchRequest: type: object properties: schemas: type: array items: type: string Operations: type: array items: $ref: '#/components/schemas/ScimPatchOperation' ScimPatchOperation: type: object properties: op: type: string description: The operation to perform path: type: string value: type: object ScimName: type: object properties: givenName: maxLength: 255 minLength: 0 type: string description: The user's first or given name familyName: maxLength: 255 minLength: 0 type: string description: The user's last or family name description: User's name ScimMeta: type: object properties: resourceType: type: string description: Indicates the type of the resource created: type: string description: The date and time when the resource was created in the system format: date-time lastModified: type: string description: The date and time when the resource was last modified format: date-time version: type: string description: A version identifier for the resource. This can be used to manage resource versioning and concurrency control. description: Meta ScimUserPage: type: object properties: Resources: type: array items: $ref: '#/components/schemas/ScimUser' totalResults: type: integer format: int32 schemas: type: array items: type: string description: Scim ListResponse schema securitySchemes: oAuth2ClientCredentials: type: oauth2 flows: clientCredentials: tokenUrl: https://preview-iam.twilio.com/v1/token scopes: {}