Proteside Docs
Endpoint referencePolicies

Apply a policy to a store's scripts

POST
/policies/{id}/apply

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.

Authorization

bearerAuth
headerAuthorizationBearer <token>

API token created in Settings → API. Scopes are attached to the token; each operation lists its required scope in x-scope.

Path Parameters

id*string
Formatuuid

Query Parameters

org_id?string

Partners only (orgs:manage): act on this child organization. May also be sent as org_id in JSON bodies.

Formatuuid

Header Parameters

Idempotency-Key?string

Replays the original response for 24 h

Length1 <= length <= 255

Request Body

application/json
  1. body
store_id?string
Formatuuid
script_ids?array<>
Itemsitems <= 500

Response Body

Result

application/json
curl -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}