fbpx
DELETEhttps://api.spotinst.io/setup/account/{ACCOUNT_ID}/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.

URL Parameters

ParameterTypeDescription
ACCOUNT_ID * String

The Spotinst accountId of user

Example: act-123abc

Body Attributes


AttributeTypeDescription
userEmail * String

Email of the user

Example: test@gmail.com
Request

Headers
{
    "Authorization": "Bearer ${token}",
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{ 
    "userEmail": "test@gmail.com"
} 
Response - 200

Headers
{
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
    "request": {
        "id": "a19f673e-d912-4bc2-8f89-2156029117d4",
        "url": "/setup/account/act-12345678/user/",
        "method": "DELETE",
        "timestamp": "2018-07-25T17:14:45.757Z"
    },
    "response": {
        "status": {
            "code": 200,
            "message": "OK"
        }
    }
}