Create User
This endpoint creates a new SDP user as the result of an SDP owner adding their information in the UI. It also handles sending the invite email.
- application/json
Request Body
- first_name string
- last_name string
- roles string[]
- email string
Responses
- 201
- 401
- 403
Created
- application/json
- Schema
- Example (from schema)
Schema
- id string required
- first_name string required
- last_name string required
- email string required
- roles string[] required
- is_active boolean required
[
{
"id": "7a4c6555-1f73-49b3-a211-f95bd2b8ec90",
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"roles": [
"developer"
],
"is_active": true
},
{
"id": "5f4df1dd-c84f-482a-84ad-541ffd46e75a",
"first_name": "Jane",
"last_name": "Doe",
"email": "[email protected]",
"roles": [
"financial_controller"
],
"is_active": false
}
]
Unauthorized
Response Headers
- application/json
- Schema
- Example (from schema)
- response
Schema
- error string
extras object
status numbermessage string
{
"error": "Not authorized",
"extras": {
"status": 401,
"message": "Not authorized"
}
}
{
"error": "Not authorized",
"extras": {
"status": 401,
"message": "Not authorized"
}
}
Forbidden
Response Headers
- application/json
- Schema
- Example (from schema)
- response
Schema
- error string
{
"error": "Forbidden"
}
{
"error": "Forbidden"
}
Loading...