PATCH
/
v1
/
workspaces
/
{workspace_id}
/
domains
/
{domain_id}
curl --request PATCH \
  --url https://api.ziplink.click/v1/workspaces/{workspace_id}/domains/{domain_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "alias": "My Company Marketing Domain",
  "custom_not_found_url": "https://example.com/not-found",
  "fallback_domain": "fallback.com"
}'
{
  "alias": "My Company Marketing Domain",
  "created_at": "2023-11-07T05:31:56Z",
  "custom_not_found_url": "https://example.com/404",
  "domain": "exmpl.com",
  "fallback_domain": "example.com",
  "id": "ab782971-4d79-47ab-8685-77cf5a34b2bb",
  "updated_at": "2023-11-07T05:31:56Z",
  "workspace_id": "ab782971-4d79-47ab-8685-77cf5a34b2bb"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspace_id
string
required

ID of the workspace.

Example:

"ab782971-4d79-47ab-8685-77cf5a34b2bb"

domain_id
string
required

ID of the domain.

Example:

"ab782971-4d79-47ab-8685-77cf5a34b2bb"

Body

application/json

Response

200
application/json

OK

A domain related to a workspace.