Narrow a running sandbox
Replaces the sandbox's own rules, its policy, or both, with ones that allow no more than now.
POST/v1/bindings/{sandbox_id}/narrow
Replaces the sandbox's own rules, its policy, or both, with ones that allow no more than now. A change that would allow anything the sandbox cannot reach now is invalid: widening a running sandbox is a policy change, made by a person.
A key with the permissions:write scope.
Request
curl -X POST "https://api.pod.mapier.ai/v1/bindings/example/narrow?project=example" \
-H "Authorization: Bearer $POD_API_KEY" \
-H "Content-Type: application/json" \
-d '{"base_version":1}'Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
sandbox_id | path | string | Yes | |
project | query | string | Yes | The project the call is about. Every route is scoped to one. |
Pod-Organisation | header | string | No | The organization, for a person who belongs to several. An API key's organization is its own, and a different one here is forbidden. |
Idempotency-Key | header | string | No | Makes a repeat of this call safe for 24 hours. |
Body
| Field | Type | Required | What it is |
|---|---|---|---|
base_version | integer | Yes | At least 1. |
policy | string | No | A policy whose table lists the current one among those it narrows. |
rules | string | No | The sandbox layer's new rules, which allow no more than the current ones. |
Answer
200. The binding at its new version.
{
"sandbox": "example",
"policy": null,
"sandbox_rules": "example",
"version": 1,
"table_hash": null,
"applied_version": null,
"parent": null,
"bound_at": "2026-11-23T12:00:00.000Z",
"updated_at": "2026-11-23T12:00:00.000Z",
"updated_by": "example",
"person": null,
"groups": [
{
"group_policy": "example",
"group": "example",
"group_name": "example",
"policy": "example"
}
],
"matter": null,
"cleared": null
}| Field | Type | Always | What it is |
|---|---|---|---|
sandbox | string | Yes | |
policy | string | null | Yes | The policy; null for the project's default, for a sandbox with no policy. |
sandbox_rules | string | Yes | The sandbox layer's rules, empty when there are none. |
version | integer | Yes | The binding's version. Only goes up. At least 1. |
table_hash | string | null | Yes | The hash of the compiled table the sandbox should run; null until compiled. |
applied_version | integer | null | Yes | The binding version the sandbox's server reports applied; null until it reports one. |
parent | string | null | Yes | The sandbox it was made from, for a child; null otherwise. |
bound_at | string | Yes | RFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z. |
updated_at | string | Yes | RFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z. |
updated_by | string | Yes | Who made a change. An identity account id for a person, or a key id (key_…) for an API key. |
person | string | null | No | The identity account the sandbox acts for: the person who made it, or a child's parent's person. Null for a sandbox made with a key. |
groups | AppliedGroup[] | No | The group bindings that add their policy's rules to this sandbox's table now: the person's groups, as the directory holds them, that the project binds to a policy. |
matter | string | null | No | The client matter the sandbox was opened for; null for none. Set once. |
cleared | boolean | null | No | For a sandbox on a matter, whether its person is cleared for the matter now; while false its table allows nothing. Null for a sandbox on no matter. |
Errors
The refusals this call is known for: invalid, unauthorized, forbidden, not_found, conflict. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.