Create a required workflow policy in the org (org admin).
Create a required workflow policy in the org (org admin). - Rensei REST API operation reference.
POST
header
AuthorizationBearer <rsk_live_*>Rensei API key presented as Authorization: Bearer rsk_live_. Required API-key scopes are recorded per operation in x-rensei-required-scopes.
orgId*stringOrganization id (must match the authenticated org).
Idempotency-Key*stringRetry key (8-128 characters). Same key + same body replays the first result; same key + different body is a 409.
Length
8 <= length <= 128application/json- body
Required workflow policy fields (the path org is the owner; any body orgId is ignored).
templateSlug*stringLowercase alphanum slug with dot/dash/underscore separators.
Length
1 <= length <= 128templateVersion?|Optional semver pin (e.g. "1.2.3").
Length
1 <= length <= 64appliesTo*stringProject targeting mode.
Value in
"all""tagged""list"projectTagSelector?|Required when appliesTo is tagged.
projectIdList?array<>|Required non-empty when appliesTo is list.
enforcement*stringReconciliation depth.
Value in
"seed-and-enforce""seed-only"Idempotent replay of the first create.
application/json- response
policy*replayed*booleancurl -X POST 'https://app.rensei.ai/api/org/string/required-workflow-policies' \ -H 'Idempotency-Key: stringst' \ -H 'Content-Type: application/json' \ -d '{ "templateSlug": "string", "appliesTo": "all", "enforcement": "seed-and-enforce"}'Example Response
{ "policy": { "id": "string", "orgId": "string", "templateSlug": "string", "templateVersion": "string", "appliesTo": "all", "tags": [ "string" ], "projectIdList": [ "string" ], "enforcement": "seed-and-enforce" }, "replayed": true}