Skip to main content
POST
Create a user type

Authorizations

Api-Token
string
header
required

Server-to-server authentication. Generate a token in the admin UI at Settings → Developers → API Access. Send the raw token in the Api-Token header — there is no Bearer prefix.

Tokens can be marked read-only at creation time, in which case the API rejects any non-GET request with 403 Forbidden.

Body

application/json

The new LocalCenterUserType resource

localCenter
string<iri-reference>
Example:

"/api/v1/local_centers/1"

userType
string<iri-reference>
Example:

"/api/v1/roles/1"

capacity
integer | null

Response

LocalCenterUserType resource created

id
integer
read-only
localCenter
string<iri-reference>
Example:

"/api/v1/local_centers/1"

userType
object
capacity
integer | null
currentCount
integer
default:0