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

# Update office

> Replace every field of an office of the company. All keys are required; send null to empty address, description or coordinates, and a null radius means 100. A null defaultEmployeesDateTimeZone keeps the current one.

Version:
v4


## OpenAPI

````yaml openapi-v2.json PUT /core/v4/offices/{officeId}
openapi: 3.0.0
info:
  title: Sesame Public API v2
  description: >-
    Public API v2 — additive surface `/public/{context}/v{N}`,
    endpoint-versioned from v4
  version: 1.0.0
servers:
  - url: https://api.sesamehr.com
    description: Production
security:
  - Bearer: []
paths:
  /core/v4/offices/{officeId}:
    put:
      tags:
        - Offices
      summary: Update office
      description: >-
        Replace every field of an office of the company. All keys are required;
        send null to empty address, description or coordinates, and a null
        radius means 100. A null defaultEmployeesDateTimeZone keeps the current
        one.
      operationId: UpdateOffice
      parameters:
        - name: officeId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateOfficeRequest'
      responses:
        '204':
          description: The office was updated.
        '401':
          description: Missing or invalid API key
        '403':
          description: API consumer lacks permission over the requested resource
        '422':
          description: Validation error
components:
  schemas:
    UpdateOfficeRequest:
      required:
        - name
        - address
        - description
        - coordinates
        - radius
        - defaultEmployeesDateTimeZone
      properties:
        name:
          description: Unique among the company offices.
          type: string
          maxLength: 255
        address:
          type: string
          maxLength: 255
          nullable: true
        description:
          type: string
          maxLength: 255
          nullable: true
        coordinates:
          description: Geofence center. Null removes the geofence.
          nullable: true
          allOf:
            - $ref: '#/components/schemas/CoordinatesInput'
          oneOf:
            - $ref: '#/components/schemas/CoordinatesInput'
        radius:
          description: >-
            Geofence radius in meters. Only used with `coordinates`; 100 when
            null.
          type: integer
          maximum: 2147483647
          minimum: 1
          nullable: true
        defaultEmployeesDateTimeZone:
          description: PHP time zone identifier. Null keeps the current one.
          type: string
          example: Europe/Madrid
          nullable: true
      type: object
    CoordinatesInput:
      required:
        - latitude
        - longitude
      properties:
        latitude:
          description: From -90 to 90.
          type: number
          format: double
          maximum: 90
          minimum: -90
        longitude:
          description: From -180 to 180.
          type: number
          format: double
          maximum: 180
          minimum: -180
      type: object
  securitySchemes:
    Bearer:
      type: http
      description: 'Sesame Public API consumer token (Authorization: Bearer <token>)'
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.