---
title: "Create Allocations Bulk"
method: POST
path: "/setup/v1/services/{id}/allocations/bulk"
tags: ["Services"]
---

# Create Allocations Bulk

`POST /setup/v1/services/{id}/allocations/bulk`

Use this endpoint to **Create** bulk service allocations. A valid **service id** is required. Use this endpoint only if you need to POST multiple service allocations in one transaction. For details refer to: [Post Service Allocation](<POST ​/setup​/v1​/services​/{id}​/allocations>)

## Path parameters

- `id` string, required

## Request body

- ServiceAllocationsInputModel
  - `serviceAllocations` ServiceAllocationInputModel[], nullable
    - `locationId` string, nullable
    - `resourceId` string, nullable
    - `startDate` string, date, nullable
    - `endDate` string, date, nullable
    - `startTime` integer, nullable
    - `endTime` integer, nullable
    - `reason` string, nullable
    - `bookingLimit` integer
    - `repeats` boolean, nullable
    - `repeat` RepeatInputModel
      - `frequency` string, nullable
      - `interval` integer, nullable
      - `weekdays` string, nullable
      - `monthDay` integer, nullable
      - `monthType` string, nullable

## Response `200`

Success

- ServiceAllocationViewModel[]
  - `object` string, nullable
  - `id` string, nullable
  - `locationId` string, nullable
  - `timezoneOffset` integer, nullable
  - `timezoneName` string, nullable
  - `serviceId` string, nullable
  - `serviceName` string, nullable
  - `serviceDescription` string, nullable
  - `serviceImageUrl` string, nullable
  - `serviceDuration` integer
  - `reason` string, nullable
  - `bookingLimit` integer
  - `bookingCount` integer
  - `startDate` string, nullable
  - `endDate` string, nullable
  - `startTime` integer
  - `endTime` integer
  - `repeats` boolean
  - `repeat` RepeatViewModel
    - `frequency` string, nullable
    - `interval` integer
    - `weekdays` string, nullable
    - `monthDay` string, nullable
    - `monthType` string, nullable
  - `deletedStatus` boolean
  - `deletedTime` string, nullable
  - `resourceId` string, nullable
  - `resourceName` string, nullable
  - `resourceDescription` string, nullable
  - `resourceImageUrl` string, nullable
  - `resourcePhone` PhoneViewModel
    - `phoneType` string, nullable
    - `homePhone` string, nullable
    - `mobilePhone` string, nullable
    - `businessPhone` string, nullable
    - `businessPhoneExt` string, nullable
  - `resourceAddress` AddressViewModel
    - `addressLine1` string, nullable
    - `addressLine2` string, nullable
    - `city` string, nullable
    - `state` string, nullable
    - `country` string, nullable
    - `postalCode` 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/revisions/c5c023458a2f/schema)
