PUT Update a subdomain
PUT /v3/relay/subdomains/:subdomain_id
Change your subdomain.
Request Headers
Accept: application/json
Authorization: Bearer {{api_key}}
Path params
Param | Description | Example value |
---|---|---|
subdomain_id | The subdomain id | 1 |
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
curl --location --request PUT '{{host}}/v3/relay/subdomains/1' \
--header 'Authorization: Bearer {{api_key}}' \
--data-raw '{
"subdomain": "mysubdomain3"
}'
Response
- 200 - OK
{
"id": 1
}