Create_policy
POST
Trust an external issuer with workload manage policies permission.
bearerAuthheader
AuthorizationBearer <token>workload_id*stringapplication/json- body
An external issuer and claim conditions trusted by a Workload.
audience?string|nullconditions*array<>issuer*stringname?string|nullSuccess
application/json- response
The created trust policy.
policy*A Workload trust policy.
curl -X POST 'https://api.spiraldb.dev/api/workloads/string/policies' \ -H 'Content-Type: application/json' \ -d '{ "conditions": [ { "key": "string", "value": "string" } ], "issuer": "string"}'{ "policy": { "audience": "string", "conditions": [ { "key": "string", "value": "string" } ], "id": "string", "issuer": "string", "name": "string", "workloadId": "string" }}