Create profile
Changed onCreates a new profile with a name, optional description, and color. Names are unique per team: a duplicate returns a 409 whose details.existingProfileId carries the id of the existing profile. Set externalId to your own tenant or client id to find the profile later without storing its Zernio id. A duplicate externalId returns the same kind of 409, with code profile_external_id_conflict. Send an Idempotency-Key header to make retries safe: a retried create with the same key and body replays the original 201 (same _id) instead of conflicting.
Request
- Base URL: https://zernio.com/api
- URL: https://zernio.com/api/v1/profiles
- Auth: HTTP bearer
Headers
Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
Request body
Example request
{
"color": "#ffeda0",
"timezone": "Europe/Istanbul",
"externalId": "tenant_42"
}Response
Created
Changes
- info
added the new optional request property
- info
added the optional property
/to the response with the status
- info
- warning
added the new
accountenum value to the/response property for the response status
- warning