Skip to content

Create a position

Request

Creates a position in the chain of the Location and makes it available only to this Location. Fails with 409 conflict when the Location has no active chain or is not a member of its main chain. The acting user needs the permissions to view and create positions in the Location, otherwise 403 permission_denied.

Security
OAuth2(Required scopes: team_members:write) or ApiKey
Path
location_idintegerrequired

Identifier of the Location. Verified against the credential on every call — a Location the credential cannot access responds with 404.

Bodyapplication/jsonrequired
titlestring, [ 1 .. 100 ] charactersrequired

Trimmed of leading and trailing whitespace; 1 to 100 characters after trimming. Characters outside the Basic Multilingual Plane, such as emoji, and the title 0 are rejected.

curl -i -X POST \
  'https://developer.alteg.io/_mock/en/b2b-v3/openapi/locations/{location_id}/positions' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "title": "Barber"
  }'

Responses

The created position.

Headers
RateLimit-Remaininginteger, (int32), >= 0

Requests left in the most constrained policy window that applies to this request.

RateLimit-Resetinteger, (int32), >= 0

On 429, seconds until the most constrained policy frees up; it equals Retry-After there. On a successful response it reports the length of that policy's window rather than the time left in the current one, so treat it as the window size, not as a countdown — the counter to pace against is RateLimit-Remaining.

RateLimit-Policystring

Most constrained policy applied to the request, as <limit>;w=<window in seconds>.

Example:"10;w=60"
Locationstring

URL of the created resource.

X-Request-Idstring

Request identifier for support and log correlation.

Bodyapplication/json
idintegerread-onlyrequired
objectstringread-onlyrequired
Value:"position"
titlestringrequired
Response
{ "id": 15, "object": "position", "title": "Barber" }