fbpx
PUThttps://api.spotinst.io/setup/account/{ACCOUNT_ID}/user/

Change user role for 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

Parameter Type Description
ACCOUNT_ID String

The Spotinst accountId to attach the user to

Body Attributes


Attribute Type Description
userEmail * String

Email of the user

Example: test@gmail.com
role * String

Role to be associated with the user

Example: admin/viewer
Request

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

Headers
{
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
    "request": {
        "id": "cc878677-b1d5-476a-8b56-ad4d11196f7b",
        "url": "/setup/account/act-12345678/user/",
        "method": "PUT",
        "timestamp": "2018-07-25T19:08:36.968Z"
    },
    "response": {
        "status": {
            "code": 200,
            "message": "OK"
        }
    }
}