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

# Update an event type

> Partially update an event type. Any field omitted is left unchanged. Emits `calendar.event_type.updated`.



## OpenAPI

````yaml https://api.sapt.ai/openapi.json patch /projects/{projectId}/calendar/event-types/{eventTypeId}
openapi: 3.1.0
info:
  title: Sapt Platform API
  version: 1.0.0
  description: >-
    API for Sapt platform - project management, authentication, and email
    services
servers:
  - url: https://api.sapt.ai
    description: Production
  - url: http://localhost:8787
    description: Local development
security: []
tags:
  - name: Accounts
    description: >-
      The social accounts connected to a project. Start here — the `id` of an
      account is the `socialAccountId` that every posting, scheduling and
      analytics call takes.
  - name: Actions
  - name: Ads
  - name: Agents
  - name: Analytics
    description: >-
      Account- and post-level organic performance for connected Instagram and
      Facebook accounts.
  - name: Assets
  - name: Auth
  - name: CMS
  - name: CRM
  - name: Calendar
  - name: Comments
    description: >-
      Read, reply to, hide and delete comments on published Instagram and
      Facebook posts.
  - name: Content Calendar
    description: >-
      Create, schedule, update and publish organic posts, and stage the media
      they carry. Publishing a post whose status is `failed` retries it.
  - name: Contracts
  - name: Conversions
    description: >-
      Meta server-side Conversions API (CAPI): discover pixels, connect a pixel
      + CAPI token, and send deduped server-side conversions.
  - name: Dashboard Sidebar
  - name: Emails
  - name: Engagement
    description: >-
      Act as the Page or account on published posts: comment, like, unlike, and
      delete a published post.
  - name: Geo
  - name: Google Ads
  - name: Google Analytics
  - name: Google Business
  - name: Integrations
    description: >-
      Connect third-party providers (Meta, Gmail, Google Business Profile, …).
      List providers, mint OAuth connect links, and poll connection status.
  - name: Invitations
  - name: Memory
  - name: OAuth Clients
  - name: Project Roles
  - name: Project Templates
  - name: Projects
  - name: Schedules
  - name: Service Accounts
  - name: Socials
    description: >-
      Organic social: the connected accounts, the content calendar, media
      staging, publishing, comments and engagement across Instagram, Facebook,
      TikTok, YouTube and Google Business Profile.
  - name: Team
  - name: Users
  - name: Web Analytics
  - name: Workflows
paths:
  /projects/{projectId}/calendar/event-types/{eventTypeId}:
    patch:
      tags:
        - Calendar
      summary: Update an event type
      description: >-
        Partially update an event type. Any field omitted is left unchanged.
        Emits `calendar.event_type.updated`.
      operationId: updateCalendarEventType
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: projectId
          in: path
        - schema:
            type: integer
            exclusiveMinimum: 0
          required: true
          name: eventTypeId
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                title:
                  type: string
                  minLength: 1
                slug:
                  type: string
                  minLength: 1
                lengthInMinutes:
                  type: integer
                  exclusiveMinimum: 0
                description:
                  type: string
                locations:
                  type: array
                  items:
                    oneOf:
                      - type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - integration
                          integration:
                            type: string
                        required:
                          - type
                          - integration
                      - type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - address
                          address:
                            type: string
                          public:
                            type: boolean
                        required:
                          - type
                          - address
                      - type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - link
                          link:
                            type: string
                            format: uri
                          public:
                            type: boolean
                        required:
                          - type
                          - link
                      - type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - phone
                          phone:
                            type: string
                          public:
                            type: boolean
                        required:
                          - type
                          - phone
                      - type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - attendeePhone
                        required:
                          - type
                      - type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - attendeeAddress
                        required:
                          - type
                      - type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - attendeeDefined
                        required:
                          - type
                bookingFields:
                  type: array
                  items:
                    type: object
                    properties:
                      type:
                        type: string
                      slug:
                        type: string
                        minLength: 1
                      label:
                        type: string
                      required:
                        type: boolean
                      placeholder:
                        type: string
                      options:
                        type: array
                        items:
                          type: string
                      hidden:
                        type: boolean
                      disableOnPrefill:
                        type: boolean
                    required:
                      - type
                      - slug
                disableGuests:
                  type: boolean
                slotInterval:
                  type:
                    - integer
                    - 'null'
                minimumBookingNotice:
                  type: integer
                  minimum: 0
                beforeEventBuffer:
                  type: integer
                  minimum: 0
                afterEventBuffer:
                  type: integer
                  minimum: 0
                scheduleId:
                  type: integer
                  exclusiveMinimum: 0
                hidden:
                  type: boolean
                requiresConfirmation:
                  type: boolean
                successRedirectUrl:
                  type: string
                  format: uri
                customName:
                  type: string
                lengthInMinutesOptions:
                  type: array
                  items:
                    type: integer
                    exclusiveMinimum: 0
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  eventType:
                    type: object
                    properties:
                      id:
                        type: integer
                      slug:
                        type: string
                      title:
                        type: string
                      description:
                        type:
                          - string
                          - 'null'
                      lengthInMinutes:
                        type: integer
                        minimum: 0
                      lengthInMinutesOptions:
                        type:
                          - array
                          - 'null'
                        items:
                          type: integer
                      hidden:
                        type: boolean
                      locations:
                        type: array
                        items:
                          oneOf:
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - integration
                                integration:
                                  type: string
                              required:
                                - type
                                - integration
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - address
                                address:
                                  type: string
                                public:
                                  type: boolean
                              required:
                                - type
                                - address
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - link
                                link:
                                  type: string
                                  format: uri
                                public:
                                  type: boolean
                              required:
                                - type
                                - link
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - phone
                                phone:
                                  type: string
                                public:
                                  type: boolean
                              required:
                                - type
                                - phone
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - attendeePhone
                              required:
                                - type
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - attendeeAddress
                              required:
                                - type
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - attendeeDefined
                              required:
                                - type
                      bookingFields:
                        type: array
                        items:
                          type: object
                          properties:
                            type:
                              type: string
                            slug:
                              type: string
                              minLength: 1
                            label:
                              type: string
                            required:
                              type: boolean
                            placeholder:
                              type: string
                            options:
                              type: array
                              items:
                                type: string
                            hidden:
                              type: boolean
                            disableOnPrefill:
                              type: boolean
                          required:
                            - type
                            - slug
                      disableGuests:
                        type:
                          - boolean
                          - 'null'
                      slotInterval:
                        type:
                          - integer
                          - 'null'
                      minimumBookingNotice:
                        type:
                          - integer
                          - 'null'
                      beforeEventBuffer:
                        type:
                          - integer
                          - 'null'
                      afterEventBuffer:
                        type:
                          - integer
                          - 'null'
                      scheduleId:
                        type:
                          - integer
                          - 'null'
                      requiresConfirmation:
                        type:
                          - boolean
                          - 'null'
                      successRedirectUrl:
                        type:
                          - string
                          - 'null'
                      customName:
                        type:
                          - string
                          - 'null'
                    required:
                      - id
                      - slug
                      - title
                      - description
                      - lengthInMinutes
                      - lengthInMinutesOptions
                      - hidden
                      - locations
                      - bookingFields
                      - disableGuests
                      - slotInterval
                      - minimumBookingNotice
                      - beforeEventBuffer
                      - afterEventBuffer
                      - scheduleId
                      - requiresConfirmation
                      - successRedirectUrl
                      - customName
                required:
                  - eventType
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error message
                  code:
                    type: string
                    description: Error code for programmatic handling
                required:
                  - message
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error message
                  code:
                    type: string
                    description: Error code for programmatic handling
                required:
                  - message
        '404':
          description: Not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error message
                  code:
                    type: string
                    description: Error code for programmatic handling
                required:
                  - message
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error message
                  code:
                    type: string
                    description: Error code for programmatic handling
                required:
                  - message
        '412':
          description: Precondition failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error message
                  code:
                    type: string
                    description: Error code for programmatic handling
                required:
                  - message
        '422':
          description: Unprocessable content
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error message
                  code:
                    type: string
                    description: Error code for programmatic handling
                required:
                  - message
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error message
                  code:
                    type: string
                    description: Error code for programmatic handling
                required:
                  - message
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error message
                  code:
                    type: string
                    description: Error code for programmatic handling
                required:
                  - message
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT token obtained from /api/auth/token endpoint. Token is verified
        using JWKS and must include a valid user identifier.

````