> ## Documentation Index
> Fetch the complete documentation index at: https://docs.surnex.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Update GEO topic

> Update a GEO topic's properties (active status, location, language).



## OpenAPI

````yaml https://api.surnex.io/openapi.json patch /v1/projects/{project_id}/geo/topics/{topic_id}
openapi: 3.1.0
info:
  title: Surnex API
  description: |-
    Surnex SEO Platform API — api.surnex.io

    Provides the complete backend for the Surnex SEO dashboard including:
    - Multi-tenant organization management
    - Project tracking (domains)
    - Keyword rank tracking (Phase 1+)
    - Backlink analysis (Phase 3+)
    - Site auditing (Phase 4+)
    - Stripe billing integration
    - MCP endpoint for AI agents at /mcp
  version: 0.1.0
servers: []
security: []
paths:
  /v1/projects/{project_id}/geo/topics/{topic_id}:
    patch:
      tags:
        - GEO / AI Visibility
      summary: Update GEO topic
      description: Update a GEO topic's properties (active status, location, language).
      operationId: update_topic_v1_projects__project_id__geo_topics__topic_id__patch
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Project Id
        - name: topic_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Topic Id
        - name: X-API-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateGeoTopicRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponse_GeoTopicResponse_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    UpdateGeoTopicRequest:
      properties:
        is_active:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Active
        location_code:
          anyOf:
            - type: integer
            - type: 'null'
          title: Location Code
        language_code:
          anyOf:
            - type: string
              maxLength: 10
            - type: 'null'
          title: Language Code
      type: object
      title: UpdateGeoTopicRequest
      description: Request body for updating a GEO topic.
    APIResponse_GeoTopicResponse_:
      properties:
        success:
          type: boolean
          title: Success
          default: true
        data:
          anyOf:
            - $ref: '#/components/schemas/GeoTopicResponse'
            - type: 'null'
      type: object
      title: APIResponse[GeoTopicResponse]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    GeoTopicResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        project_id:
          type: string
          format: uuid
          title: Project Id
        keyword:
          type: string
          title: Keyword
        location_code:
          type: integer
          title: Location Code
        language_code:
          type: string
          title: Language Code
        is_active:
          type: boolean
          title: Is Active
        ai_search_volume:
          anyOf:
            - type: integer
            - type: 'null'
          title: Ai Search Volume
          description: Estimated monthly AI search volume for this keyword.
        last_snapshot_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Snapshot At
          description: Timestamp of the most recent AI mention snapshot.
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - project_id
        - keyword
        - location_code
        - language_code
        - is_active
        - created_at
      title: GeoTopicResponse
      description: Serialised representation of a GeoTopic ORM record.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````