OrkStageOrkStage
API referencesettings

PUT /policies

PUT /policies: OrkStage Control API v1 endpoint reference.

PUT
/api/v1/policies

Authorization

headerAuthorizationBearer <ork_<env>_<id>_<secret>>

Organization API key (scoped). Sessions use the cookie instead.

Header Parameters

x-orkstage-csrf?unknown

Cookie sessions: send "1" on POST/PATCH/PUT/DELETE. Not needed with an API key.

Request Body

application/json
  1. body
allowedRegions?array<>
Itemsitems <= 100
maxMonthlyCostUsd?number
Range0 < value <= 10000000
maxReplicas?integer
Range1 <= value <= 1000
machineSizes?array<>
Itemsitems <= 50
approvedRegistries?array<>
Itemsitems <= 50
requiredLabels?array<>
Itemsitems <= 20
minTlsVersion?string
Value in"1.2""1.3"
minLogRetentionDays?integer
Range1 <= value <= 3653
disabled?array<>
Itemsitems <= 30

Response Body

Example Request
curl -X PUT 'http://localhost:4000/api/v1/policies' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response200
Empty