Documentation Index

Fetch the complete documentation index at: /llms.txt

Use this file to discover all available pages before exploring further.

Skip to main content
POST
/
api
/
v1
/
users
Create user
curl --request POST \
  --url https://{tenant}.cubecloud.dev/api/v1/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "<string>",
  "username": "<string>",
  "defaultRoles": [
    "<string>"
  ],
  "externalId": "<string>",
  "firstName": "<string>",
  "isAdmin": true,
  "isExternal": null,
  "password": "<string>",
  "picture": null
}
'
{
  "email": "<string>",
  "id": 123,
  "isAdmin": true,
  "notifications": {},
  "username": "<string>",
  "activeRoleId": 123,
  "aliases": [
    {
      "createdAt": "<string>",
      "id": 123,
      "source": "ldap",
      "updatedAt": "<string>",
      "userId": 123,
      "username": "<string>"
    }
  ],
  "createdAt": "2023-12-25",
  "defaultRoles": [
    "<string>"
  ],
  "externalId": "<string>",
  "firstName": "<string>",
  "gitUser": "<string>",
  "impersonation": {
    "expiresAt": "2023-12-25",
    "impersonatedUser": null,
    "startedAt": "2023-12-25"
  },
  "isDeactivated": true,
  "lastLogin": "2023-12-25",
  "picture": "<string>",
  "samlId": "<string>",
  "settings": {
    "alternatingRowColors": true,
    "lastSeenChangelogId": 123,
    "locale": "<string>",
    "theme": "<string>",
    "timezone": "<string>"
  },
  "title": "<string>",
  "tosAccepted": {},
  "updatedAt": "2023-12-25"
}

Authorizations

Authorization
string
header
required

Token authentication. Send Authorization: Bearer <YOUR_TOKEN>.

Body

application/json

UserCreateInput

email
string
required
username
string
required
defaultRoles
string[] | null
externalId
string | null
firstName
string | null
isAdmin
boolean | null
isExternal
unknown
password
string | null
picture
unknown

Response

200 - application/json
email
string
required
id
integer
required
isAdmin
boolean
required
notifications
object
required
username
string
required
activeRoleId
integer | null
aliases
object[] | null
createdAt
defaultRoles
string[] | null
externalId
string | null
firstName
string | null
gitUser
string | null
impersonation
object | null
isDeactivated
boolean | null
lastLogin
picture
string | null
samlId
string | null
settings
object | null
title
string | null
tosAccepted
object | null
updatedAt
Assistant
Responses are generated using AI and may contain mistakes.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.