---
title: "Create Linked Services"
method: POST
path: "/setup/v1/resources/{id}/services"
tags: ["Resources"]
---

# Create Linked Services

`POST /setup/v1/resources/{id}/services`

Use this endpoint to explicitly **Link Services** to a Resource. A valid **resource id** is required.

**Note:** By default, the services array is empty which signifies that all services are provided by the resource. Linking services here will add to the linked service(s) array available to this resource. This will limit the services available to the resource.

You cannot post services that already exist in the array, you can only add new ones. Use the _PUT ​/setup​/v1​/resources​/{id}​/services_ endpoint to update the entire list.

## Path parameters

- `id` string, required

## Request body

- string[]

## Response `200`

Success

- ResourceViewModel
  - `object` string, nullable
  - `id` string, nullable
  - `locationId` string, nullable
  - `name` string, nullable
  - `email` string, nullable
  - `groupId` integer, nullable
  - `description` string, nullable
  - `imageUrl` string, nullable
  - `deletedStatus` boolean
  - `deletedTime` string, date-time, nullable
  - `notificationType` integer
  - `bookingNotification` integer
  - `googleCalendarId` string, nullable
  - `googleCalendarAuthorized` boolean
  - `googleCalendarAuthUrl` string, nullable
  - `outlookCalendarId` string, nullable
  - `outlookCalendarAuthUrl` string, nullable
  - `outlookCalendarAuthorized` boolean
  - `ignoreBusinessHours` boolean
  - `gender` string, nullable
  - `recurringAvailability` boolean, nullable
  - `hourly` number, double, nullable
  - `calendarAvailability` integer
  - `sortKey` integer
  - `skypeName` string, nullable
  - `bioLink` string, nullable
  - `timezoneOffset` integer, nullable
  - `timezoneId` string, nullable
  - `timezoneIana` string, nullable
  - `effectiveDate` string, date-time, nullable
  - `contact` ContactViewModel
    - `phoneType` string, nullable
    - `homePhone` string, nullable
    - `mobilePhone` string, nullable
    - `businessPhone` string, nullable
    - `businessPhoneExt` string, nullable
    - `skypeUsername` string, nullable
    - `conferenceInfo` string, nullable
  - `phone` PhoneViewModel
    - `phoneType` string, nullable
    - `homePhone` string, nullable
    - `mobilePhone` string, nullable
    - `businessPhone` string, nullable
    - `businessPhoneExt` string, nullable
  - `address` AddressViewModel
    - `addressLine1` string, nullable
    - `addressLine2` string, nullable
    - `city` string, nullable
    - `state` string, nullable
    - `country` string, nullable
    - `postalCode` string, nullable
  - `availability` ResourceHoursViewModel
    - `mon` ResourceHourViewModel
      - `startTime` integer
      - `endTime` integer
    - `tue` ResourceHourViewModel
      - `startTime` integer
      - `endTime` integer
    - `wed` ResourceHourViewModel
      - `startTime` integer
      - `endTime` integer
    - `thu` ResourceHourViewModel
      - `startTime` integer
      - `endTime` integer
    - `fri` ResourceHourViewModel
      - `startTime` integer
      - `endTime` integer
    - `sat` ResourceHourViewModel
      - `startTime` integer
      - `endTime` integer
    - `sun` ResourceHourViewModel
      - `startTime` integer
      - `endTime` integer
  - `options` ResourceOptionsInputModel — Options for the new resource
    - `effectiveDate` string, date-time, nullable
    - `notificationType` integer, nullable — 0 = None, 1=Online Bookings 2=All Bookings.
    - `displayColor` string, nullable
    - `googleCalendarId` string, nullable
    - `outlookCalendarId` string, nullable
    - `ignoreBusinessHours` boolean, nullable
    - `gender` string, nullable
    - `hourly` number, double, nullable
    - `calendarAvailability` integer, nullable — 0 = OnSched Availability, 1 = Google Calendar, 2 = Outlook Calendar
    - `bookingNotification` integer, nullable
    - `sortKey` integer, nullable
    - `bioLink` string, nullable
  - `services` ResourceServiceViewModel[], nullable
    - `object` string, nullable
    - `serviceId` integer
    - `serviceName` string, nullable
  - `customFields` CustomFieldInputModel
    - `field1` string, nullable
    - `field2` string, nullable
    - `field3` string, nullable
    - `field4` string, nullable
    - `field5` string, nullable
    - `field6` string, nullable
    - `field7` string, nullable
    - `field8` string, nullable
    - `field9` string, nullable
    - `field10` 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)
