Api referenceEndpointsAdmin
Create an end user (instance admin, one tenant)
POST
POST /v1/users (createUser) for the tenant of tenant_id, run with an
instance admin key: the same body, parameters and answer as the tenant's own key
gets; a Location points at the admin route. Recorded in the caller's audit log
and, actor admin, in the tenant's.
See docs/admin-api.md.
tenantKeyheader
AuthorizationBearer <token>Tenant API key, ohs_sk_ + 43 base62 characters.
tenant_id*stringThe id of a tenant; any other value is a 404.
Format
uuidIdempotency-Key?stringLength
1 <= length <= 255An empty body creates a user without an external reference.
application/json- body
external_ref?stringThe tenant's own reference, unique per tenant.
Length
length <= 255Created.
application/json- response
id*stringFormat
uuidexternal_ref*string|nullstatus*stringValue in
"active""deleting"created_at*stringFormat
date-timecurl -X POST 'http://localhost:8080/v1/admin/tenants/497f6eca-6276-4993-bfeb-53cbbbba6f08/users' \ -H 'Authorization: Bearer ohs_sk_...' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "external_ref": "string", "status": "active", "created_at": "2019-08-24T14:15:22Z"}