---
title: "Creates bulk demand for a given period"
method: POST
path: "/api/serviceattendance/processes/demand/bulkCreate"
tags: ["demands"]
---

# Creates bulk demand for a given period

`POST /api/serviceattendance/processes/demand/bulkCreate`

## Request

- Base URL: `https://services.fountain.com`
- URL: `https://services.fountain.com/api/serviceattendance/processes/demand/bulkCreate`
- Auth: HTTP bearer

## Request body

- object
  - `externalId` string: Id of the demand from an external service
  - `name` string: Name of the demand
  - `locationUuid` string, uuid, required: Location unique identifier
  - `jobUuid` string, uuid, required: Job unique identifier
  - `startDate` string, date, required: Date to start creating demand
  - `endDate` string, date, required: Date to stop creating demand
  - `daysOfWeek` integer[], required
  - `headcountChanges` object[], required
    - `startTime` string, date-time, required: Time when the headcount change takes place
    - `endTime` string, date-time: Time when the headcount change ends
    - `minimumHeadcount` number, required: Minimum headcount for the headcount change
    - `maximumHeadcount` number: Maximum headcount for the headcount change

## Response `200`

The list of pending worker demand created for the given period

- object
  - `data` object[], required
    - `uuid` string, uuid
    - `createdAt` string, date-time
    - `createdBy` string, uuid
    - `lastUpdatedAt` string, date-time
    - `lastUpdatedBy` string, uuid
    - `lastUpdatedByAudience` string
    - `lastUpdatedByAudienceUuid` string, uuid
    - `lastUpdatedByImpersonatedBy` string, uuid
    - `lastUpdatedByCompanyUuid` string, uuid
    - `lastUpdatedByEnterpriseUuid` string, uuid
    - `externalId` string
    - `companyUuid` string, uuid
    - `name` string
    - `locationUuid` string, uuid
    - `jobUuid` string, uuid
    - `date` string
    - `headcountChanges` object[]
      - `startTime` string, date-time
      - `endTime` string, date-time
      - `minimumHeadcount` number
      - `maximumHeadcount` number
  - `meta` ResponsesPartMeta, required
    - `timestamp` string, date-time, required
    - `verb` 'OPTION' | 'GET' | 'PUT' | 'POST' | 'PATCH' | 'DELETE'
    - `path` string
    - `jti` string
    - `rid` string
    - `count` number
    - `capped` boolean: The server lowered filter[limit] to its ceiling. Page with filter[skip] to read past it.
    - `status` string
    - `duration` number
    - `size` number

## Other responses

- `400`: default error response
- `500`: default error response

---

[API](https://skmtc.dev/fountain/apis/worker-experience-public-api.md) - [All operations](https://skmtc.dev/fountain/apis/worker-experience-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fountain/apis/worker-experience-public-api/revisions/6b9a31f79e22?raw)
