---
title: "POST /resourceGrants:bulkCreate"
method: POST
path: "/resourceGrants:bulkCreate"
tags: ["Resource Grants"]
---

# POST /resourceGrants:bulkCreate

`POST /resourceGrants:bulkCreate`

This endpoint allows you to create multiple resource grants in one request.

## Request body

- ResourceGrantCreate[]
  - `id` string
  - `resourceId` string
  - `userId` string
  - `resourceType` 'layout' | 'camera' | 'location' | 'account' | 'speaker' | 'multiCamera'
  - `createTimestamp` string, date-time
  - `options` ResourceGrantOptions
    - `expirationTimestamp` string, date-time — The date when access to resource ends. This can be only set for accounts.

## Response `200`

Operations performed successfully

- BulkResponseItem[]
  - `resourceId` string, required
  - `userId` string, required
  - `resourceType` 'layout' | 'camera' | 'location' | 'account' | 'speaker' | 'multiCamera', required
  - `status` integer, required

## Other responses

- `400` — The supplied object is invalid. Error detail will contain the validation error.
- `401` — You are not authenticated. Please authenticate and try again.
- `403` — You have no permission to access the specified resource.
- `500` — Something went wrong in the server. Please try again.

---

[API](https://skmtc.net/eagleeyenetworks/apis/devices.md) · [All operations](https://skmtc.net/eagleeyenetworks/apis/devices/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/eagleeyenetworks/devices/revisions/df57313de545/schema)
