Prisma

Create user

Create a new user in the organization.

POST
/api/v1/admin/users

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X post "http://localhost:8000/api/v1/admin/users" \  -H "Content-Type: application/json" \  -d '{    "username": "string",    "email": "[email protected]",    "first_name": "string",    "last_name": "string"  }'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "idp_user_id": "string",
  "username": "string",
  "email": "string",
  "display_name": "string",
  "first_name": "string",
  "last_name": "string",
  "state": "ACTIVE",
  "phone": "string",
  "preferred_language": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}