> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt. # Update PATCH https://fai.buildwithfern.com/guidance/{domain}/{guidance_id} Content-Type: application/json Reference: https://buildwithfern.com/learn/docs/ai-features/ask-fern/api-reference/guidance/update ## Authentication - `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer `, where token is your auth token. ## Servers - `https://fai.buildwithfern.com` (Production, default) - `https://fai-dev.buildwithfern.com` (Development) - `http://localhost:8080` (Local) ## Request ### Path parameters - `domain` (string, required) - `guidance_id` (string, required) ### Body (application/json) This endpoint expects an UpdateGuidanceRequest. - `context` (list of string, optional, nullable) — The updated context of the guidance document, as a list of strings, that will be indexed. If not provided, this field will remain unchanged. - `document` (string, optional, nullable) — The updated content of the guidance document that will be returned to Ask Fern during Ask Fern retrieval. If not provided, this field will remain unchanged. ## Response ### 200 Successful Response - `guidance` (Guidance, required) — The updated guidance document ## Errors ### 422 Unprocessable Entity Error Validation Error - `detail` (list of ValidationError, optional) ## Types ### Guidance - `domain` (string, required) - `context` (list of string, required) - `document` (string, required) - `guidance_id` (string, required) - `created_at` (datetime, required) - `updated_at` (datetime, required) ### ValidationError - `loc` (list of ValidationErrorLocItems, required) - `msg` (string, required) - `type` (string, required) ### ValidationErrorLocItems ## Examples **Request** ```json {} ``` **Response** ```json { "guidance": { "domain": "string", "context": [ "string" ], "document": "string", "guidance_id": "string", "created_at": "2024-01-15T09:30:00Z", "updated_at": "2024-01-15T09:30:00Z" } } ```