# Block a script (creates a block rule)

> POST /scripts/{id}/block endpoint of the Proteside API: parameters, request body, responses and code samples.

URL: https://docs.proteside.com/en/docs/api/reference/scripts/blockScript

## Method and route

`POST /scripts/{id}/block`

Sets `status = blocked`, records a review and upserts a block rule. Browser blocking applies to scripts loaded by URL; inline scripts must be removed at the source.

## Parameters

- `id` (path, `string`, required)
- `org_id` (query, `string`): Partners only (`orgs:manage`): act on this child organization. May also be sent as `org_id` in JSON bodies.
- `Idempotency-Key` (header, `string`): Replays the original response for 24 h

## Request body

- `justification` (`string`)

## Responses

- `200`: Blocked script + rule
- `404`: Not found in the acting organization

Full OpenAPI specification: https://app.proteside.com/api/v1/openapi.json
