Unlink a page's kit

Give a page its own copy of its kit, so its branding can change on its own.

POST /organizations/{org}/pages/{pageId}/unlink

Duplicates the kit the page wears and points the page at the copy. Editing the copy then changes this page only.

Authorization

Org owner. Anyone else gets 403 forbidden.

Path parameters

NameTypeDescription
orgstringThe organization: its id (org_…) or its slug. It has to be an org your token can manage (see Who can call it)
pageIdstringThe page, pge_…

No body.

Response

200 OK with the page, now carrying the new kitId and that kit’s branding.

Errors

StatuserrorWhen
403forbiddenYou are not an owner of the org
404not_foundNo such page in this org, or the id is not a pge_ id
404not_foundThe org does not exist, or your token cannot manage it

Example

curl -X POST https://loginwith.loginwith.dev/organizations/acme/pages/pge_65f1c2a9e4b0d3f7a1c8e904/unlink \
  -H "Authorization: Bearer $TOKEN"