Skip to main content

Create a new user

POST 

/users

The Create User request allows you to create a new user account for ANSCER ANYA. This request takes in a JSON object in the request body that includes the user's name, email, password, and role.

Request

Body

required
    name stringrequired

    Possible values: >= 3 characters and <= 50 characters

    email emailrequired

    Possible values: >= 5 characters and <= 255 characters

    A Unique email address of the user

    password stringrequired

    Possible values: >= 6 characters and <= 255 characters

    role userRolesrequired

    Possible values: [developer, admin, user]

Responses

User created

Schema
    _id uuid
    name string

    Possible values: >= 3 characters and <= 50 characters

    email email

    Possible values: >= 5 characters and <= 255 characters

    isActive boolean
    role userRoles

    Possible values: [developer, admin, user]

    createdBy object

    The user who created this user

    _id string
    name string
    email email
    updatedBy object

    The user who last updated this user

    _id string
    name string
    email email
    createdAt date-time

    The date and time this user was created

    updatedAt date-time

    The date and time this user was last updated

Loading...