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

# Update Location

> Update a location's properties.



## OpenAPI

````yaml https://api.selcor.ai/v1/openapi.json patch /v1/workspaces/{workspaceId}/locations/{locationId}
openapi: 3.1.0
info:
  title: Selcor Partner API
  version: 0.1.0
  description: API for managing workspaces, locations, voice agents, and relay executions.
servers:
  - url: https://api.selcor.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/workspaces/{workspaceId}/locations/{locationId}:
    patch:
      tags:
        - Locations
      summary: Update Location
      description: Update a location's properties.
      parameters:
        - schema:
            type: string
          required: true
          name: locationId
          in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 200
                timezone:
                  type: string
                phone_number:
                  type: string
                address:
                  type: string
                website_url:
                  type: string
                  format: uri
                activated:
                  type: boolean
                booking_enabled:
                  type: boolean
                provider_selection_mode:
                  type: string
                  enum:
                    - REQUIRED
                    - OPTIONAL
                    - NONE
      responses:
        '200':
          description: Updated location
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Location'
                  request_id:
                    type: string
                required:
                  - data
                  - request_id
      security:
        - bearerAuth: []
components:
  schemas:
    Location:
      type: object
      properties:
        id:
          type: string
        workspace_id:
          type: string
        name:
          type: string
        timezone:
          type: string
        phone_number:
          type: string
          nullable: true
        address:
          type: string
          nullable: true
        website_url:
          type: string
          nullable: true
        activated:
          type: boolean
        booking_enabled:
          type: boolean
        provider_selection_mode:
          type: string
        agent_setup_status:
          type: string
          nullable: true
        voice_agent_id:
          type: string
          nullable: true
        created_at:
          type: string
        updated_at:
          type: string
      required:
        - id
        - workspace_id
        - name
        - timezone
        - phone_number
        - address
        - website_url
        - activated
        - booking_enabled
        - provider_selection_mode
        - agent_setup_status
        - voice_agent_id
        - created_at
        - updated_at
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'API key in format: sk_live_...'

````