POST
/
iam
/
users
Create a new user
curl --request POST \
  --url https://api.gcore.com/iam/users \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "jsmith@example.com",
  "password": "<string>",
  "company": "<string>",
  "user_type": "common",
  "name": "<string>",
  "phone": "<string>",
  "seller": 123,
  "services": [
    {
      "product_name": "CDN",
      "available": true
    }
  ],
  "lang": "de",
  "custom_id": "<string>",
  "country_code": "<string>",
  "is_test": true
}'
{
  "id": 123,
  "email": "jsmith@example.com",
  "name": "<string>",
  "lang": "de",
  "phone": "<string>",
  "company": "<string>",
  "reseller": 123,
  "client": 123,
  "deleted": true,
  "groups": [
    {
      "id": 1,
      "name": "Administrators"
    }
  ],
  "activated": true,
  "sso_auth": true,
  "two_fa": true,
  "auth_types": [
    "password"
  ],
  "user_type": "common",
  "is_active": true,
  "client_and_roles": [
    {
      "client_id": 123,
      "client_company_name": "<string>",
      "user_roles": [
        "2"
      ],
      "user_id": 123
    }
  ]
}

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

Response

201
application/json

OK.

The response is of type object.