PPylon Developers
ApiOrganizer Domains

Add domain

Adds a new custom domain to a site.

POST
/api/organizer/v1/sites/{siteId}/domains
AuthorizationBearer <token>

Enter your bearer token from the Pylon Auth API.

In: header

Path Parameters

siteId*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/problem+json

curl -X POST "https://loading/api/organizer/v1/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/domains" \  -H "Content-Type: application/json" \  -d '{    "hostname": "string",    "type": null  }'
{
  "domainId": "8a0b02c3-fdd8-452e-bc6e-ef07a335ec7e"
}
{
  "code": "string",
  "message": "string"
}
{
  "code": "string",
  "message": "string"
}