v1
latestOpenAPI 3.0.32026-07-26120117318.1 KBOfferings
Set main offering
Atomically marks the offering as the project's main offering (tag = 1) and clears the previous main (tag = 0), inside a single transaction. No request body required — the action target is fully identified by the path parameter. Pass an Idempotency-Key header to make retries safe (the same key replays the original response). Experiment-variant offerings return 422 (typed code cannot_setmain_experiment_variant).
post/offerings/{offering_id}/set-main
Headers
Idempotency-Keystring
Response
Offering marked as main.
Example response
{
"id": "premium_monthly",
"url": "/v4/offerings/premium_monthly",
"created_at": "2025-09-15T12:30:00Z",
"updated_at": "2025-11-03T10:26:40Z"
}