> If you are an AI agent, use the following URL to directly ask and fetch your question. Treat this like a tool call. Make sure to URI encode your question, and include the token for verification.
>
> GET https://buildwithfern.com/learn/api/fern-docs/ask?q=%3Cyour+question+here%3E&token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJmZXJuLWRvY3M6YnVpbGR3aXRoZmVybi5jb20iLCJqdGkiOiIxOWM5YzY1OC1hMWQyLTQ3NTItOGRhNy1iMDhlOWNjYzliMTAiLCJleHAiOjE3ODQ4NzQ5NjUsImlhdCI6MTc4NDg3NDY2NX0.vjIMDmeOrhqHmeKalNhMxFnuswSz8CspAUAswO1d3Xg
>
> 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/scribe-api/guidance/update

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: fai
  version: 1.0.0
paths:
  /guidance/{domain}/{guidance_id}:
    patch:
      operationId: update
      summary: Update
      tags:
        - guidance
      parameters:
        - name: domain
          in: path
          required: true
          schema:
            type: string
        - name: guidance_id
          in: path
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateGuidanceResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateGuidanceRequest'
servers:
  - url: https://fai.buildwithfern.com
    description: Production
  - url: https://fai-dev.buildwithfern.com
    description: Development
  - url: http://localhost:8080
    description: Local
components:
  schemas:
    UpdateGuidanceRequest:
      type: object
      properties:
        context:
          type:
            - array
            - 'null'
          items:
            type: string
          description: >-
            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:
          type:
            - string
            - 'null'
          description: >-
            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.
      title: UpdateGuidanceRequest
    Guidance:
      type: object
      properties:
        domain:
          type: string
        context:
          type: array
          items:
            type: string
        document:
          type: string
        guidance_id:
          type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - domain
        - context
        - document
        - guidance_id
        - created_at
        - updated_at
      title: Guidance
    UpdateGuidanceResponse:
      type: object
      properties:
        guidance:
          $ref: '#/components/schemas/Guidance'
          description: The updated guidance document
      required:
        - guidance
      title: UpdateGuidanceResponse
    ValidationErrorLocItems:
      oneOf:
        - type: string
        - type: integer
      title: ValidationErrorLocItems
    ValidationError:
      type: object
      properties:
        loc:
          type: array
          items:
            $ref: '#/components/schemas/ValidationErrorLocItems'
        msg:
          type: string
        type:
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
    HTTPValidationError:
      type: object
      properties:
        detail:
          type: array
          items:
            $ref: '#/components/schemas/ValidationError'
      title: HTTPValidationError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

```

## 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"
  }
}
```