Accounts

Detach User

Detach a user from an account (only accounts under the creator's own organization are allowed). Creator's organization ID is taken from the personal token attached to the API call.

delete/setup/account/{accountId}/user

Request

  • Base URL
    https://api.spotinst.io
  • URL
    https://api.spotinst.io/setup/account/{accountId}/user
  • Auth
    HTTP bearer

Path parameters

accountIdstring required

The ID of the account you want to update.

Request body

userEmailstring required

Email of the user that is going to be deleted

Example request

{
  "userEmail": "test@gmail.com"
}

Response

Detach User Response

Example response

{
  "request": {
    "id": "46642c7d-bc29-417d-8ce4-79626f00c63c",
    "url": "/setup/account/act-12345678/user/",
    "method": "DELETE",
    "timestamp": "2018-11-19T13:49:11.911Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    }
  }
}

Changes

No recorded changes to this operation across all 12 revisions of this API.