API reference · Access Control & Users v1
POST/api/v1/users/{id}/teams

Add user to team (route currently mapped to user create)

Route currently delegates to ApiUserController.create(); payload is interpreted as create-user body rather than team membership.

RBAC · user

Path parameters

idstring <uuid>Required
User UUID from users.user_id.

Request body

Content type: application/json · schema AccessCreateUserBodyV1

usernamestringRequired
min length 3
emailstring <email>Required
passwordstringRequired
min length 8
first_namestring
last_namestring
phonestring
timezonestring
user_typestring
Enum: internalclientadmincontractor
contact_idstring <uuid>
two_factor_enabledboolean
is_google_userboolean
is_inactiveboolean
role_idsarray of string
itemsstring <uuid>

Response body

Success response 200 · schema AccessApiSuccessV1

dataanyOfRequired
anyOf (option 1)object
anyOf (option 2)array of object
itemsobject
metaobject

Response codes

200
Operation succeeded.
400
Validation failed (payload/query/path parsing).
401
API key missing/invalid or key user not found.
403
RBAC denied for user:create.
500
Unexpected controller/service failure.