Update Website
Changed onSets, replaces, or clears the partner external_id mapped to a website. Partner integrations only: pass external_id as a non-empty string to set or replace the mapping, or as null to clear it. Requires a global API key. Works on deleted websites too, because deleting a website does not release its external_id. An external_id already mapped to another website in your organization returns 409 naming the current holder; to move an id from one website to another, clear it on the current holder first, then set it on the new one.
Request
- Base URLhttps://api.athenahq.ai
- AuthAPI key in header x-api-key
Request body
Example request
{
"external_id": "ws_a7f3b2c9"
}Response
Mapping updated. externalId is always present on this response: the new value, or null after a clear. Like the external_id lookup responses, and unlike the GET /api/v1/websites listing, this endpoint does not return baseCountry.
Example response
{
"website": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"websiteName": "My Awesome Blog",
"websiteUrl": "example.com",
"externalId": "ws_a7f3b2c9"
}
}Changes
- info
endpoint added
- info