PATCH
/
customDomain
curl --request PATCH \
  --url https://api.cme.sh/customDomain \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "workspaceId": "<string>",
  "customDomainId": "<string>",
  "httpToHttps": false,
  "deleteDomain": false
}'
{
  "status": true,
  "data": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
Update settings or delete a domain for the authenticated workspace.
workspaceId
string
required

Id of the Workspace

customDomainId
string
required

Id of the domain

httpToHttps
boolean
default:false

Update redirection of HTTP to HTTPS for short URLs if set to true

deleteDomain
boolean
default:false

Delete domain if set to true

Response

200
application/json
Successful response
status
boolean
data
string