API referenceInstances
POST /instances/{id}/domains
POST /instances/{id}/domains: OrkStage Control API v1 endpoint reference.
POST
header
AuthorizationBearer <ork_<env>_<id>_<secret>>Organization API key (scoped). Sessions use the cookie instead.
id*stringx-orkstage-csrf?unknownCookie sessions: send "1" on POST/PATCH/PUT/DELETE. Not needed with an API key.
application/json- body
hostname*stringMatch
^(?=.{4,253}$)([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$Length
length <= 253resourceId?stringLength
1 <= length <= 63curl -X POST 'http://localhost:4000/api/v1/instances/string/domains' \ -H 'Content-Type: application/json' \ -d '{ "hostname": "string"}'Example Response201
Empty