> ## 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.

# Create office

> Create an office in the company.

Version:
v4


## OpenAPI

````yaml openapi-v2.json POST /core/v4/offices
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:
    post:
      tags:
        - Offices
      summary: Create office
      description: Create an office in the company.
      operationId: CreateOffice
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateOfficeRequest'
      responses:
        '201':
          description: The identifier of the created office.
          content:
            application/json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/CreatedEntry'
                type: object
        '401':
          description: Missing or invalid API key
        '403':
          description: API consumer lacks permission over the requested resource
        '422':
          description: Validation error
components:
  schemas:
    CreateOfficeRequest:
      required:
        - name
      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. Without it the office has no 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
            omitted.
          type: integer
          maximum: 2147483647
          minimum: 1
          nullable: true
        defaultEmployeesDateTimeZone:
          description: PHP time zone identifier. Europe/Madrid when omitted.
          type: string
          example: Europe/Madrid
          nullable: true
      type: object
    CreatedEntry:
      properties:
        id:
          description: Identifier of the created resource.
          type: string
          format: uuid
      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.