---
title: "Manager approves a shift swap awaiting approval (performs the actual shift reassignment)"
method: POST
path: "/ShiftSwaps/{id}/approve"
tags: ["ShiftSwaps"]
---

# Manager approves a shift swap awaiting approval (performs the actual shift reassignment)

`POST /ShiftSwaps/{id}/approve`

## Request

- Base URL: `https://api.clinicos.vet/backend/business`
- URL: `https://api.clinicos.vet/backend/business/ShiftSwaps/{id}/approve`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/docs/ShiftSwaps/:id/approve/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, required

## Response `200`

OK

- ShiftSwapResponseDto
  - `id` string
  - `shiftId` string
  - `shift` ShiftSummaryDto
    - `id` string
    - `locationId` string, nullable
    - `locationName` string, nullable
    - `shiftDate` string
    - `startTime` string, nullable
    - `endTime` string, nullable
    - `income` string, nullable
    - `status` string
    - `cancelBy` string, nullable
    - `userId` string
  - `fromUserId` string
  - `fromUser` UserSummaryDto
    - `id` string
    - `email` string
    - `firstName` string, nullable
    - `lastName` string, nullable
    - `displayName` string, nullable
    - `type` string
    - `roleId` string, nullable
    - `roleName` string, nullable
  - `toUserId` string, nullable
  - `toUser` UserSummaryDto
    - `id` string
    - `email` string
    - `firstName` string, nullable
    - `lastName` string, nullable
    - `displayName` string, nullable
    - `type` string
    - `roleId` string, nullable
    - `roleName` string, nullable
  - `notes` string, nullable
  - `status` integer
  - `resolvedByUserId` string, nullable
  - `resolvedByUser` UserSummaryDto
    - `id` string
    - `email` string
    - `firstName` string, nullable
    - `lastName` string, nullable
    - `displayName` string, nullable
    - `type` string
    - `roleId` string, nullable
    - `roleName` string, nullable
  - `resolvedAt` string, date-time, nullable
  - `expiresAt` string, date-time, nullable
  - `createdAt` string, date-time
  - `updatedAt` string, date-time

## Other responses

- `400`: Bad Request
- `404`: Not Found

---

[API](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1.md) - [All operations](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/revisions/099cf36186e0?raw)
