Hey, human!
This is what your agent sees atdocs.example.com/endpoint/patch-api-v1-projects-slug-context-contextslug
HTTP/2 200 OK content-type: text/markdown; charset=utf-8 vary: accept, user-agent x-agent: [ai_agent]
Loading the agent response…
Update a context item
Update an existing context. Send only the fields you want to change.
What you provide
- Titleoptional
- Contentoptional: Max 8000 characters, so the item embeds as a single retrieval chunk. Longer material goes in several context items.
- Publicoptional
- Show in agentoptional
Do this with AI
I want to update a context item. Use the Restless API. Read the reference for this operation and follow it exactly: https://build.restless.ai/endpoint/patch-api-v1-projects-slug-context-contextslug.md Authenticate with your API key as a Bearer token in the Authorization header. Then make the request for me and tell me what came back.
Paste this into Claude, Cursor, or any AI assistant and it will do it for you.
https://app.restless.ai/api/v1/projects/{slug}/context/{contextSlug}curl --request PATCH \
--url https://app.restless.ai/api/v1/projects/slug/context/contextSlug \
--header 'Authorization: Bearer $API_KEY' \
--header 'Content-Type: application/json' \
--data '
{
"title": "title",
"content": "content",
"public": true,
"showInAgent": true
}
'Path parameters
contextSlugstringrequiredslugstringrequiredProject slug.
Body
application/jsontitlestringcontentstringMax 8000 characters, so the item embeds as a single retrieval chunk. Longer material goes in several context items.
max length 8000
publicbooleantrue
showInAgentbooleantrue