---
title: "Update context body and/or scope"
method: PATCH
path: "/api/v1/contexts/{id}"
---

# Update context body and/or scope

`PATCH /api/v1/contexts/{id}`

## Request

- Base URL: `https://toohardbasket.ai`
- URL: `https://toohardbasket.ai/api/v1/contexts/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- object
  - `body` string
  - `scope` 'item' | 'global' | 'custom'
  - `item_ids` string[]
  - `category_ids` string[]

## Response `200`

Success

- object
  - `data` unknown

## Other responses

- `400`: Error
- `401`: Error
- `403`: Error
- `404`: Error
- `429`: Error

---

[API](https://skmtc.dev/toohardbasket/apis/toohardbasket-ai-api.md) · [All operations](https://skmtc.dev/toohardbasket/apis/toohardbasket-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/toohardbasket/apis/toohardbasket-ai-api/revisions/8f59faf10235?raw)
