Help Center
Login Sign up
  1. Home
  2. API reference
  3. API documentation (JSON/XML)
  4. Tasks
  5. User tasks

User create

API reference (XML/JSON) · Updated 2023-09-19

Function

The UserCreate tasks creates a new user.

If no password is specified when creating a new user, the system automatically generates one (15 characters long). It is included in the system response.

Description

Route: POST /user

{
  "user": "subuser",
  "context": 4,
  "defaultEmail": "customer@example.com",
  "password": "PASSWORD"
}
{
    "stid": "20211102-test-7757",
    "status": {
        "code": "S1301001",
        "text": "User was successfully created.",
        "type": "SUCCESS"
    },
    "object": {
        "type": "User",
        "value": "subuser, 4",
        "data": {
            "context": 4,
            "user": "subuser"
        }
    }
}

Main user creates a direct subuser with automatic password generation.

{
  "user": "subuser",
  "context": 4,
  "defaultEmail": "customer@example.com"  
}
{
    "stid": "20211102-test-7824",
    "messages": [
        {
            "text": "The password was automatically generated by the system.",
            "objects": [
                {
                    "type": "password",
                    "value": "$)%MR.+7?bT<^C="
                }
            ],
            "code": "MSG13004",
            "status": "NOTICE"
        }
    ],
    "status": {
        "code": "S1301001",
        "text": "User was successfully created.",
        "type": "SUCCESS"
    },
    "object": {
        "type": "User",
        "value": "subuser, 4",
        "data": {
            "context": 4,
            "user": "subuser"
        }
    }
}

Main user creates a subuser for his subuser.

{
    "password": "1234abc%",
    "defaultEmail": "customer@example.com",
    "status": 2,
    "substatus": 2,
    "user": "subuser-of-subuser",
    "language": "de",
    "parent": {
        "context": 4,
        "defaultEmail": "subuser@example.com",
        "status": 1,
        "substatus": 1,
        "authType": "PASSWORD",
        "lock": "NONE",
        "user": "subuser"
    }
}
{
    "stid": "20211102-app2-dev-110202",
    "status": {
        "code": "S1301001",
        "text": "User was successfully created.",
        "type": "SUCCESS"
    },
    "object": {
        "type": "User",
        "value": "subuser-of-subuser-2, 4",
        "data": {
            "context": 4,
            "user": "subuser-of-subuser-2"
        }
    }
}