Skip to main content
PATCH
/
api
/
v1
/
content
/
{id}
/
domains
Update content domains
curl --request PATCH \
  --url https://app.promptingco.com/api/v1/content/{id}/domains \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "attach": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "detach": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "canonicalDomainId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "ok": true,
  "data": {
    "id": "<string>",
    "domains": [
      {
        "id": "<string>",
        "domain": "<string>",
        "isCanonical": true
      }
    ]
  }
}

Authorizations

x-api-key
string
header
required

Organization-scoped API key. Available scopes:

  • content:read: Read site pages, markdown content, and llms.txt files
  • content:write: Create, update, and delete site pages and content
  • prompts:read: Read prompts, topics, and prompt analysis results
  • prompts:write: Create, update, archive prompts
  • simulations:read: Read agent-simulation tasks, runs, environments, and analytics
  • simulations:write: Create and trigger simulation runs
  • logs:read: Read AI-traffic logs and request-level audit events
  • analytics:read: Read analytics aggregates (rankings, mentions, sources, SOV)
  • products:read: Read product metadata and competitor data
  • products:write: Update product settings and competitor lists

Path Parameters

id
string
required
Minimum string length: 1

Body

application/json
attach
string<uuid>[]
detach
string<uuid>[]
canonicalDomainId
string<uuid>

Response

Successful response

ok
enum<boolean>
required
Available options:
true
data
object
required