Update context

Update an existing context.

To update a context, you must provide the contextId, which is the unique identifier returned in the response of the 'Create context' endpoint.

The context will be completely replaced with the new content provided in the request body.

Constraints:

  • At least one instruction is required
  • Each instruction text must not exceed 2000 characters
  • Instructions cannot contain HTML tags or URLs
  • The total content size must not exceed 50KB
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The ID of the context to update.

Body Params
content
object
required

The content of the context including instructions. The total size must not exceed 50KB.

Responses

500

Internal server error

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json