Skip to main content
PATCH
cURL

Authorizations

Authorization
string
header
required

Public API access token issued by /public/v1/oauth/token. Example: Authorization: Bearer fspt_.... Each resource request rechecks the token company's current provider access. Disabling access blocks existing tokens with 403 auth.provider_unavailable.

Headers

Idempotency-Key
string
required

Required for Public API write requests. Reusing the same key with the same method, path, and body replays the stored successful response; reusing it with a different request returns 409 idempotency.conflict.

Required string length: 1 - 200
Example:

"booking-create-20260714-001"

Path Parameters

planId
string
required

Workout plan id (Template or Assigned).

Example:

"67f1234567890abcdef1234"

weekNumber
integer
required

The 1-based week of the multi-week schedule to reorder.

Required range: x >= 1
Example:

1

Body

application/json
weekdays
integer[]
required

A permutation of 1..7 — the week's weekday slots in their new order. weekdays[i] moves to weekday i + 1.

Required array length: 7 elements
Required range: 1 <= x <= 7
Example:

Response

Week days reordered.

data
object
required
meta
object
required