Releasesv0.1.0
Users

Create an end user

POST
/v1/users

Authorization

tenantKey
headerAuthorizationBearer <token>

Tenant API key, ohs_sk_ + 43 base62 characters.

Header Parameters

Idempotency-Key?string
Length1 <= length <= 255
Authorization*string

The tenant API key, as a bearer secret.

Request Body

An empty body creates a user without an external reference.

application/json
  1. body
external_ref?string

The tenant's own reference, unique per tenant.

Lengthlength <= 255

Response Body

Created.

application/json
  1. response
id*string
Formatuuid
external_ref*string|null
status*string
Value in"active""deleting"
created_at*string
Formatdate-time
curl -X POST 'http://localhost:8080/v1/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"}
Edit on GitHub