Delete organization invitations

DELETE /organizations/{organization_id}/invitations/{invitation_tokens}

Deletes one or more organization invitations. Currently unavailable in self-hosted ECE.

Path parameters

  • organization_id string Required

    Identifier for the Organization

  • invitation_tokens string Required

    CSV list of Invitation tokens

Responses

  • 200 application/json

    Organization invitations deleted successfully

  • 400 application/json

    No valid invitation token was supplied. (code: root.invalid_data)

    Hide headers attribute Show headers attribute
    • x-cloud-error-codes string

      The error codes associated with the response

      Value is root.invalid_data.

    Hide response attribute Show response attribute object
    • errors array[object] Required

      A list of errors that occurred in the failing request

      Hide errors attributes Show errors attributes object
      • code string Required

        A structured code representing the error type that occurred

      • message string Required

        A human readable message describing the error that occurred

      • fields array[string]

        If the error can be tied to a specific field or fields in the user request, this lists those fields

  • 404 application/json
    • Organization not found. (code: organization.not_found)
    • Invitation not found. (code: organization.invitation_not_found)
    Hide headers attribute Show headers attribute
    • x-cloud-error-codes string

      The error codes associated with the response

      Values are organization.not_found or organization.invitation_not_found.

    Hide response attribute Show response attribute object
    • errors array[object] Required

      A list of errors that occurred in the failing request

      Hide errors attributes Show errors attributes object
      • code string Required

        A structured code representing the error type that occurred

      • message string Required

        A human readable message describing the error that occurred

      • fields array[string]

        If the error can be tied to a specific field or fields in the user request, this lists those fields

DELETE /organizations/{organization_id}/invitations/{invitation_tokens}
curl \
 --request DELETE 'https://api.elastic-cloud.com/api/v1/organizations/{organization_id}/invitations/{invitation_tokens}'