Endpoint referencePolicies
Apply a policy to a store's scripts
POST
Writes scripts.status, authorization_method = policy, policy_id/version, justification from the template and expires_at; records script_reviews and policy_events(applied=true). A store-level policy never overrides an organization-level block.
bearerAuthheader
AuthorizationBearer <token>API token created in Settings → API. Scopes are attached to the token; each operation lists its required scope in x-scope.
id*stringFormat
uuidorg_id?stringPartners only (orgs:manage): act on this child organization. May also be sent as org_id in JSON bodies.
Format
uuidIdempotency-Key?stringReplays the original response for 24 h
Length
1 <= length <= 255application/json- body
store_id?stringFormat
uuidscript_ids?array<>Items
items <= 500Result
application/jsoncurl -X POST "https://example.com/policies/497f6eca-6276-4993-bfeb-53cbbbba6f08/apply" \ -H "Content-Type: application/json" \ -d '{ "store_id": "0c1d2e3f-1111-4222-8333-444455556666" }'{ "policy_id": "d0e1f2a3-7777-4888-8999-000011112222", "store_id": "0c1d2e3f-1111-4222-8333-444455556666", "applied": 3}