API referenceInstances
POST /instances
POST /instances: OrkStage Control API v1 endpoint reference.
POST
header
AuthorizationBearer <token>Organization API key (scoped). Sessions use the cookie instead.
x-orkstage-csrf?unknownCookie sessions: send "1" on POST/PATCH/PUT/DELETE. Not needed with an API key.
application/json- body
tenantId*stringMatch
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Format
uuidname*stringLength
2 <= length <= 80slug*stringMatch
^[a-z][a-z0-9-]{1,40}$environment?stringDefault
"production"Value in
"production""staging""development""sandbox"templateVersionId*stringMatch
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Format
uuidvariables?Default
{}bindings?Default
{}profileId?stringMatch
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Format
uuidcurl -X POST 'http://localhost:4300/api/v1/instances' \ -H 'Content-Type: application/json' \ -d '{ "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0", "name": "string", "slug": "string", "templateVersionId": "9c8cdef7-7ed4-4683-9325-fcbf62aceeab"}'Empty