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

# Update shift

> Update an existing shift (Roster) in Deputy.



## OpenAPI

````yaml api-reference/v1/openapi.yaml put /v1/scheduling/shifts/{id}
openapi: 3.1.0
info:
  title: Goods API
  version: 1.0.0
  description: >-
    API for Goods grocery operations - scanner app, admin dashboard, and
    customer features
  contact:
    name: Goods Team
    url: https://goods.app
servers:
  - url: http://localhost:3000
    description: Local development
  - url: https://dev.api.switchyard.run
    description: Development
  - url: https://api.switchyard.run
    description: Production
security: []
tags:
  - name: v1
    description: API v1 - unified domain-based endpoints
  - name: Scanner
    description: Scanner app endpoints for drivers and pickers
  - name: Sweeps
    description: Sweep management - retail store pickup operations
  - name: RFC Picks
    description: Ready-for-checkout picking operations
  - name: Inventory
    description: Inventory management and barcode lookup
  - name: Admin
    description: Admin dashboard endpoints
  - name: Orders
    description: Order management
  - name: Products
    description: Product catalog management
  - name: Notifications
    description: Push, email, SMS, and Slack notification management
paths:
  /v1/scheduling/shifts/{id}:
    put:
      tags:
        - Scheduling
      summary: Update shift
      description: Update an existing shift (Roster) in Deputy.
      parameters:
        - schema:
            type: integer
            nullable: true
            description: Shift (Roster) ID in Deputy
            example: 12345
          required: false
          name: id
          in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                employeeId:
                  type: integer
                  description: Deputy employee ID
                date:
                  type: string
                  description: Shift date (YYYY-MM-DD)
                startHour:
                  type: integer
                  minimum: 0
                  maximum: 23
                  description: Start hour (0-23)
                startMinute:
                  type: integer
                  minimum: 0
                  maximum: 59
                  description: Start minute (0-59)
                endHour:
                  type: integer
                  minimum: 0
                  maximum: 23
                  description: End hour (0-23)
                endMinute:
                  type: integer
                  minimum: 0
                  maximum: 59
                  description: End minute (0-59)
                area:
                  type: string
                  description: Operational unit name
                publish:
                  type: boolean
                  description: Publish shift
              description: Update shift body
      responses:
        '200':
          description: Shift updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
                  shift:
                    type: object
                    properties:
                      id:
                        type: number
                      employeeId:
                        type: number
                      startTime:
                        type: string
                      endTime:
                        type: string
                    required:
                      - id
                      - employeeId
                      - startTime
                      - endTime
                required:
                  - success
                  - message
                description: Shift create/update/delete response
        '404':
          description: Shift not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message
                required:
                  - error
                description: Error response
        '500':
          description: Server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message
                required:
                  - error
                description: Error response

````