POST
/
iam
/
clients
/
{clientId}
/
client-users
/
create
Create client users
curl --request POST \
  --url https://api.gcore.com/iam/clients/{clientId}/client-users/create \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "username": "jsmith@example.com",
  "password": "<string>",
  "user_role": {
    "user_role": {
      "id": 1,
      "name": "Administrators"
    }
  }
}'
{
  "name": "<string>",
  "username": "jsmith@example.com",
  "user_role": {
    "user_role": {
      "id": 1,
      "name": "Administrators"
    }
  }
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Body

application/json
name
string | null

User's name.

username
string<email>

User's email address.

password
string<password>

User's password.

user_role
object

User's group.

Response

OK.

name
string | null

User's name.

username
string<email>

User's email address.

user_role
object

User's group.