---
title: "Reassign Resource"
method: PUT
path: "/setup/v1/resources/{id}/reassign/appointments/{resourceId}"
tags: ["Resources"]
---

# Reassign Resource

`PUT /setup/v1/resources/{id}/reassign/appointments/{resourceId}`

Use this endpoint to **Reassign** appointments from one resource to another. If the startDate is not supplied, the default is today's date + 1 day; If the endDate is not supplied, all future appointments from the start date will be reassigned. If the calendar id is not supplied the default is the primary calendar of the location.

## Path parameters

- `id` string, required
- `resourceId` string, required

## Query parameters

- `startDate` string, date-time
- `endDate` string, date-time
- `calendarId` string

## Response `200`

Success

- AppointmentViewModel[]
  - `object` string, nullable
  - `id` string, nullable
  - `locationId` string, nullable
  - `businessName` string, nullable
  - `calendarId` string, nullable
  - `serviceId` string, nullable
  - `serviceName` string, nullable
  - `serviceImageUrl` string, nullable
  - `resourceId` string, nullable
  - `resourceName` string, nullable
  - `resourceGroupId` string, nullable
  - `resourceGroupName` string, nullable
  - `resourceImageUrl` string, nullable
  - `resourceEmail` string, nullable
  - `customerId` string, nullable
  - `serviceAllocationId` string, nullable
  - `rescheduledId` string, nullable
  - `createDate` string, nullable
  - `startDateTime` string, nullable
  - `endDateTime` string, nullable
  - `dateInternational` string, nullable
  - `date` string, nullable
  - `time` integer
  - `duration` integer
  - `timezone` integer, nullable
  - `timezoneId` string, nullable
  - `timezoneIana` string, nullable
  - `ipAddress` string, nullable
  - `status` string, nullable
  - `confirmationNumber` string, nullable
  - `downloadIcsUrl` string, nullable
  - `bookedBy` string, nullable
  - `onlineBooking` boolean, nullable
  - `confirmed` boolean
  - `email` string, nullable
  - `name` string, nullable
  - `lastname` string, nullable
  - `firstname` string, nullable
  - `phone` string, nullable
  - `phoneType` string, nullable
  - `phoneExt` string, nullable
  - `customerMessage` string, nullable
  - `notes` string, nullable
  - `groupSize` integer, nullable
  - `lastModifiedOn` string, nullable
  - `lastModifiedBy` string, nullable
  - `emailConfirmationSent` string, nullable
  - `emailReminderSent` string, nullable
  - `smsConfirmationSent` string, nullable
  - `smsReminderSent` string, nullable
  - `location` string, nullable
  - `latitude` string, nullable
  - `longitude` string, nullable
  - `stripeChargeId` string, nullable
  - `stripeRefundId` string, nullable
  - `paymentStatus` integer
  - `resources` AppointmentResourceViewModel[], nullable
    - `appointmentId` string, nullable
    - `resourceId` string, nullable
    - `resourceName` string, nullable
    - `resourceGroupId` string, nullable
    - `resourceEmail` string, nullable
    - `resourceImageUrl` string, nullable
  - `customers` AppointmentCustomerViewModel[], nullable
    - `appointmentId` string, nullable
    - `customerId` string, nullable
  - `customFields` object, nullable
  - `auditTrail` AppointmentAuditViewModel[], nullable
    - `id` string, nullable
    - `appointmentId` string, nullable
    - `modifiedOn` string, nullable
    - `modifiedBy` string, nullable
    - `modificationType` string, nullable
    - `statusBefore` string, nullable
    - `statusAfter` string, nullable
    - `notesBefore` string, nullable
    - `notesAfter` string, nullable

---

[API](https://skmtc.net/onsched/apis/onsched-setup-api.md) · [All operations](https://skmtc.net/onsched/apis/onsched-setup-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/onsched/onsched-setup-api/versions/c5c023458a2f/schema)
