# Update the AI case context **PATCH /ai/cases/{caseId}/context** Sets the fields sent and marks each as attorney-stated. `version` goes up when a field that steers the AI (case type, jurisdiction, theory, claims, what to prove, parties, dates or date range) actually changes. Returns the updated context. Requires owner or admin access to the case and an active plan (403 otherwise); not available to opposing counsel. ## Servers - http://api.example.com: http://api.example.com () ## Authentication methods - Access token ## Parameters ### Path parameters - **caseId** (string) ### Body: application/json (object) - **caseType** (string | null) - **jurisdiction** (string | null) - **theoryOfCase** (string | null) - **whatToProve** (array[string]) - **legalClaims** (array[object]) - **keyParties** (array[object]) - **keyDates** (array[object]) - **relevantDateRange** (object) - **sourceDocuments** (array[string]) ## Responses ### 200 #### Body: application/json (object) - **data** (object) The AI case context profile. - **statusCode** (number) - **timestamp** (string(date-time)) [Powered by Bump.sh](https://bump.sh)