---
title: "POST /api/v1/{context_id}/scope-grants"
method: POST
path: "/api/v1/{context_id}/scope-grants"
---

# POST /api/v1/{context_id}/scope-grants

`POST /api/v1/{context_id}/scope-grants`

Grant scope patterns to a principal (not implemented — surface locked)

## Path parameters

- `context_id` string, required

## Request body

- ScopeGrantRequestJson — Body for the `POST /{context}/scope-grants` stub. Locks the request shape (subject principal + verb → patterns) without implementing the grant-event write.
  - `grants` object — Grant verb → scope patterns to grant.
  - `subject` string, nullable — Principal the grant applies to.

## Other responses

- `401` — Unauthorized
- `422` — Invalid context id
- `501` — Not implemented

---

[API](https://skmtc.net/surrealdb/apis/spectron.md) · [All operations](https://skmtc.net/surrealdb/apis/spectron/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/surrealdb/spectron/versions/52b41ab517b6/schema)
