v1

latestOpenAPI 3.0.42026-07-14475158859.0 KB
AppUser

add a new user (if you are trying to add an admin user you yourself should be admin) (Auth policies: user:add)

post/api/users

Request body

idstring uuid nullable

Id

usernamestring nullable

User Name

emailstring email nullable

User Email

phoneNumberstring tel nullable

User Mobile Phone Number

firstNamestring nullable

First Name

surNamestring nullable

SurName

status0 | 1 required

User Status

rImageIdstring uuid nullable

user image

nickNamestring nullable

nick name

biostring nullable

biography

websitestring nullable

web site

emailConfirmedboolean

email verified

createDatestring date-time

create date

passwordstring nullable

desired password, if sent empty system generates one

isAdminboolean

is admin

Example request

{
  "username": "test",
  "email": "email@domain.com",
  "phoneNumber": "+989121234567",
  "firstName": "Hamid Reza",
  "surName": "Mohammadi",
  "password": "Test!123"
}

Response

OK

idstring uuid nullable

Id

usernamestring nullable

User Name

emailstring email nullable

User Email

phoneNumberstring tel nullable

User Mobile Phone Number

firstNamestring nullable

First Name

surNamestring nullable

SurName

status0 | 1 required

User Status

rImageIdstring uuid nullable

user image

nickNamestring nullable

nick name

biostring nullable

biography

websitestring nullable

web site

emailConfirmedboolean

email verified

createDatestring date-time

create date

passwordstring nullable

desired password, if sent empty system generates one

isAdminboolean

is admin

Example response

{
  "username": "test",
  "email": "email@domain.com",
  "phoneNumber": "+989121234567",
  "firstName": "Hamid Reza",
  "surName": "Mohammadi",
  "password": "Test!123"
}