PUT - /api/domains/{domain_id}
CURL
curl -X PUT "https://servr.app/api/domains/{domain_id}" \
-H "Authorization: Bearer ymmi922wQwFW1hpm3NImOotRVWG8yrTQ2IoScQFl" \
-H "Content-Type: application/json; charset=utf-8" \
-d "{'target':'SUB.YOUR-DOMAIN.COM','loadBalancer':true}"
Header Parameters
- Authorization should respect the following schema:
{
"type": "string",
"enum": [
"Bearer ymmi922wQwFW1hpm3NImOotRVWG8yrTQ2IoScQFl"
],
"default": "Bearer ymmi922wQwFW1hpm3NImOotRVWG8yrTQ2IoScQFl"
}
- Content-Type should respect the following schema:
{
"type": "string",
"enum": [
"application/json; charset=utf-8"
],
"default": "application/json; charset=utf-8"
}
Body Parameters
{
"target": "string",
"loadBalancer": "boolean"
}
Response
- body should respect the following schema:
{
"data": {
"id": 21,
"target": "wartner.io",
"is_authorized": true,
"status_message": "STATUS_ACTIVE",
"type": "NORMAL"
}
}