{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/safetyculture/json-schema/safetyculture-s12-documents-v1-bulk-add-file-owners-request-schema.json",
  "title": "s12.documents.v1.BulkAddFileOwnersRequest",
  "description": "Request to add owners to multiple files without removing existing owners.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/safetyculture-documents-api-openapi.yml#/components/schemas/s12.documents.v1.BulkAddFileOwnersRequest",
  "type": "object",
  "properties": {
    "file_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The IDs of the files you want to add owners to.\nTo get the `file_id`, open the file in the SafetyCulture web app and copy the last part of the URL.\nFor example, in this link `https://app.safetyculture.com/documents/document/765aa2e6-69cb-43b5-8ab4-48ab26e2a094`,\nthe file ID is `765aa2e6-69cb-43b5-8ab4-48ab26e2a094`."
    },
    "user_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The IDs of the users you want to add as owners.\nTo get the `user_id`, open the user in the SafetyCulture web app and copy the last part of the URL before /profile\nFor example, in this link `https://app.safetyculture.com/organisation/role_d7b113c0c6774a59b8cfdea1ab1da89a/users/user_7a7cddac38ac4dd197304ba0d05b981a/profile`,\nthe user ID is `user_7a7cddac38ac4dd197304ba0d05b981a`."
    },
    "group_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The IDs of the groups you want to add as owners.\nTo get the `group_id`, open the group in the SafetyCulture web app and copy the last part of the URL before /users.\nFor example, in this link `https://app.safetyculture.com/organisation/role_d7b113c0c6774a59b8cfdea1ab1da89a/groups/role_1ebbbca147644b5aa4ea646429f941e7/users`,\nthe group ID is `role_1ebbbca147644b5aa4ea646429f941e7`."
    }
  },
  "required": [
    "file_ids"
  ]
}