Skip to main content

PUT Update a subdomain

PUT /v3/relay/subdomains/:subdomain_id

Change your subdomain.

Request Headers

Accept: application/json
Authorization: Bearer {{api_key}}

Path params

ParamDescriptionExample value
subdomain_idThe subdomain id1

Body data

subdomain (string) New subdomain of the Private Email Subdomain object

Return

Return HTTP status 200 with id of the updated object

Example

Request

curl --location --request PUT '{{host}}/v3/relay/subdomains/1' \
--header 'Authorization: Bearer {{api_key}}' \
--data-raw '{
"subdomain": "mysubdomain3"
}'

Response

{
"id": 1
}