cURL
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 } ] } }
Organization-scoped API key. Available scopes:
1
Successful response
true
Show child attributes