{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eagle-eye-networks/json-schema/eagle-eye-networks-resource-grants-bulk-create-schema.json",
  "title": "ResourceGrantsBulkCreate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eagle-eye-networks-resource-grants-api-openapi.yml#/components/schemas/ResourceGrantsBulkCreate",
  "type": "array",
  "items": {
    "$ref": "#/$defs/ResourceGrantCreate"
  },
  "$defs": {
    "ResourceGrant": {
      "properties": {
        "id": {
          "type": "string",
          "readOnly": true
        },
        "resourceId": {
          "type": "string"
        },
        "userId": {
          "type": "string"
        },
        "resourceType": {
          "$ref": "#/$defs/ResourceType"
        },
        "createTimestamp": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "options": {
          "$ref": "#/$defs/ResourceGrantOptions"
        }
      }
    },
    "ResourceGrantCreate": {
      "allOf": [
        {
          "$ref": "#/$defs/ResourceGrant"
        }
      ],
      "required": [
        "resourceId",
        "userId",
        "resourceType"
      ]
    },
    "ResourceGrantOptions": {
      "type": "object",
      "properties": {
        "expirationTimestamp": {
          "type": "string",
          "format": "date-time",
          "description": "The date when access to resource ends. This can be only set for accounts."
        }
      }
    },
    "ResourceType": {
      "type": "string",
      "enum": [
        "layout",
        "camera",
        "location",
        "account",
        "speaker",
        "multiCamera"
      ]
    }
  }
}