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

# Revise the group activity calendar

> Versioned native calendar authoring with effective ranges, recurrence and exceptions, target people or assignments, reason, expected revision and exact-body request key. Does not publish or alter dated schedules.



## OpenAPI

````yaml /api-reference/workforce/openapi.json post /api/v1/workforce/scheduling-groups/{groupId}/calendar
openapi: 3.1.0
info:
  title: Atlas workforce API
  version: 2026-10-preview
  description: >-
    Authenticated workforce staffing-to-draft operations. Released together with
    matching MCP operations. Deploy the reviewed native guard migrations before
    enabling this feature.
servers:
  - url: /
security:
  - AtlasIntegrationBearer: []
paths:
  /api/v1/workforce/scheduling-groups/{groupId}/calendar:
    post:
      summary: Revise the group activity calendar
      description: >-
        Versioned native calendar authoring with effective ranges, recurrence
        and exceptions, target people or assignments, reason, expected revision
        and exact-body request key. Does not publish or alter dated schedules.
      operationId: save_group_activity_calendar
      parameters:
        - name: X-Workspace-Id
          in: header
          required: true
          schema:
            type: string
            format: uuid
          description: >-
            Selector within saved grants and current issuer authority; never
            grants authority.
        - name: groupId
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            format: uuid
          description: >-
            Retain this exact operation key and body. Inspect uncertain outcomes
            before retrying.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WorkforceGroupCalendar'
      responses:
        '200':
          description: Native typed result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkforcePlanningResult'
        '400':
          description: Missing or malformed transport fields
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing, invalid or expired bearer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Saved grant or current authority denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Scoped resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Stale source/revision or conflicting request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: Body exceeds 64 KiB
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '415':
          description: Content-Type must be application/json
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Invalid or unsupported input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Concurrent compute limit; retry after 5 seconds
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Required evidence or service unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    WorkforceGroupCalendar:
      type: object
      properties:
        expected_revision:
          type: integer
          minimum: 0
          maximum: 9007199254740991
        entries:
          maxItems: 200
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
                pattern: >-
                  ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
              name:
                type: string
                minLength: 1
                maxLength: 120
              activityTypeSlug:
                type: string
                pattern: ^[a-z0-9][a-z0-9_]{0,99}$
              startTime:
                type: string
              durationMinutes:
                type: integer
                minimum: 5
                maximum: 720
              validFrom:
                type: string
              validTo:
                default: null
                anyOf:
                  - type: string
                  - type: 'null'
              recurrence:
                oneOf:
                  - type: object
                    properties:
                      kind:
                        type: string
                        const: once
                    required:
                      - kind
                    additionalProperties: false
                  - type: object
                    properties:
                      kind:
                        type: string
                        const: weekly
                      days:
                        minItems: 1
                        maxItems: 7
                        type: array
                        items:
                          type: string
                          enum:
                            - sun
                            - mon
                            - tue
                            - wed
                            - thu
                            - fri
                            - sat
                    required:
                      - kind
                      - days
                    additionalProperties: false
                  - type: object
                    properties:
                      kind:
                        type: string
                        const: every_n_weeks
                      everyWeeks:
                        type: integer
                        minimum: 2
                        maximum: 52
                      anchorWeekStart:
                        type: string
                      days:
                        minItems: 1
                        maxItems: 7
                        type: array
                        items:
                          type: string
                          enum:
                            - sun
                            - mon
                            - tue
                            - wed
                            - thu
                            - fri
                            - sat
                    required:
                      - kind
                      - everyWeeks
                      - anchorWeekStart
                      - days
                    additionalProperties: false
              excludedDates:
                default: []
                maxItems: 200
                type: array
                items:
                  type: string
              target:
                oneOf:
                  - type: object
                    properties:
                      kind:
                        type: string
                        const: group
                    required:
                      - kind
                    additionalProperties: false
                  - type: object
                    properties:
                      kind:
                        type: string
                        const: people
                      ids:
                        minItems: 1
                        maxItems: 200
                        type: array
                        items:
                          type: string
                          format: uuid
                          pattern: >-
                            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                    required:
                      - kind
                      - ids
                    additionalProperties: false
                  - type: object
                    properties:
                      kind:
                        type: string
                        const: assignments
                      ids:
                        minItems: 1
                        maxItems: 200
                        type: array
                        items:
                          type: string
                          format: uuid
                          pattern: >-
                            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                    required:
                      - kind
                      - ids
                    additionalProperties: false
              movement:
                default: protected
                type: string
                const: protected
            required:
              - id
              - name
              - activityTypeSlug
              - startTime
              - durationMinutes
              - validFrom
              - recurrence
              - target
            additionalProperties: false
        reason:
          type: string
          minLength: 1
          maxLength: 2000
      required:
        - expected_revision
        - entries
        - reason
      additionalProperties: false
    WorkforcePlanningResult:
      type: object
      description: >-
        Native typed outcome. Depending on the operation: records and effective
        revisions, `issues` with code, field path, severity and source
        references, applied constraints, soft preference effects, affected
        drafts and future published commitments with `complete`, missing or
        unsupported evidence, `replayed` for an exact retry and verified effect
        references. Authored availability, preference and pattern bodies
        round-trip unchanged.
      additionalProperties: true
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            details: {}
          required:
            - code
            - message
          additionalProperties: false
      required:
        - error
      additionalProperties: false
  securitySchemes:
    AtlasIntegrationBearer:
      type: http
      scheme: bearer
      bearerFormat: atlas_mcp_
      description: >-
        Existing Atlas integration connection with explicit api:connect plus
        appropriate native domain grants. atlas_ingest_ and browser cookies are
        not accepted.

````

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