TEASEDocs
API ReferenceLandings

Copy the background from another domain

Replace the target domain's draft background (mobile + desktop) with a copy from a source domain, for every variant. Draft state only. Requires a write-scoped key.

Authorization

bearerAuth
AuthorizationBearer <token>

Your al_live_<prefix>_<secret> API key. Mint and manage keys in the dashboard.

In: header

Path Parameters

hostname*string

The target domain that receives the copy.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Names the source domain to copy draft content from; the target is the URL's hostname.

Response Body

application/json

application/json

application/json

application/json

POST
/api/admin/domains/{hostname}/copy-bg-from
curl -X POST "https://example.com/api/admin/domains/string/copy-bg-from" \  -H "Content-Type: application/json" \  -d '{    "source": "promo.creator.com"  }'
{  "hostname": "links.creator.com",  "display_name": "FB Agency",  "created_at": 1719772800,  "button_count": 6,  "infra_state": "active",  "provisioning_error": null,  "infra_attempted_at": 1719772830}
{  "detail": {    "code": "source_bg_missing",    "message": "У домена 'promo.creator.com' нет загруженного фона"  }}
{  "detail": "auth required"}
{  "detail": {    "code": "domain_not_found",    "message": "Domain not found"  }}