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 "{'domain':'YOUR-DOMAIN.COM','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"
}

Response

  • body should respect the following schema:
{
  "data": {
    "id": 21,
    "domain": "test2.wartner.io",
    "subdomain": "wartner.io",
    "is_authorized": true,
    "status_message": "STATUS_ACTIVE"
  }
}