SafetyCulture · Schema

Request to create a file in the specified folder

CompanyBusiness ApplicationsSafetyInspectionWorkplace OperationsEHSComplianceTrainingField Service ManagementWebhookAustralia

Properties

Name Type Description
path array An array of folder names that defines the path where the file will be stored. The `path` is relative to the `parent_id` if it is provided. If not, it starts from the root folder. The API will automati
name string The name of the file. Must be between 1-255 characters and exclude invalid characters.
file_type object The type of the file to be created. Please note that videos are currently not supported.
file_size integer The size of the file in bytes. Must not exceed 50MB. This field is required if `file_type` is provided.
parent_id string The ID of the folder where the file should be stored. Any folders defined in the `path` will be created inside the parent folder. If you don’t provide a parent_id, the file will be stored in the root
file_extension string The file extension of the uploaded blob (e.g. "pdf", "jpg"), without the leading dot. Used to populate the file's extension when the extension cannot be derived from `name` or the underlying media met
View JSON Schema on GitHub

JSON Schema

safetyculture-s12-documents-v1-create-file-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/safetyculture/json-schema/safetyculture-s12-documents-v1-create-file-request-schema.json",
  "title": "Request to create a file in the specified folder",
  "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.CreateFileRequest",
  "type": "object",
  "properties": {
    "path": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "An array of folder names that defines the path where the file will be stored.\nThe `path` is relative to the `parent_id` if it is provided. If not, it starts from the root folder.\nThe API will automatically create any folders in the path that don’t exist.\nEach folder name must be 1-255 characters and exclude invalid characters."
    },
    "name": {
      "type": "string",
      "description": "The name of the file.\nMust be between 1-255 characters and exclude invalid characters."
    },
    "file_type": {
      "description": "The type of the file to be created.\nPlease note that videos are currently not supported.",
      "allOf": [
        {
          "$ref": "#/$defs/s12.common.MediaType"
        }
      ]
    },
    "file_size": {
      "type": "integer",
      "format": "int64",
      "description": "The size of the file in bytes. Must not exceed 50MB.\nThis field is required if `file_type` is provided."
    },
    "parent_id": {
      "type": "string",
      "description": "The ID of the folder where the file should be stored.\nAny folders defined in the `path` will be created inside the parent folder.\nIf you don’t provide a parent_id, the file will be stored in the root folder.\nTo get the `parent_id`, open the folder in the SafetyCulture web app and copy the last part of the URL.\nFor example, in this link `https://app.safetyculture.com/documents/9dd76834-65ef-41d3-815c-964df32450e4`,\nthe parent ID is `9dd76834-65ef-41d3-815c-964df32450e4`."
    },
    "file_extension": {
      "type": "string",
      "description": "The file extension of the uploaded blob (e.g. \"pdf\", \"jpg\"), without the leading dot.\nUsed to populate the file's extension when the extension cannot be derived from `name`\nor the underlying media metadata is unavailable."
    }
  },
  "$defs": {
    "s12.common.MediaType": {
      "type": "string",
      "enum": [
        "MEDIA_TYPE_IMAGE",
        "MEDIA_TYPE_VIDEO",
        "MEDIA_TYPE_PDF",
        "MEDIA_TYPE_DOCX",
        "MEDIA_TYPE_XLSX",
        "MEDIA_TYPE_PPTX",
        "MEDIA_TYPE_CSV"
      ],
      "description": " - MEDIA_TYPE_IMAGE: An image file (GIF, JPG, PNG, WEBP).\n - MEDIA_TYPE_VIDEO: A video file (MP4, MOV).\n - MEDIA_TYPE_PDF: A PDF document.\n - MEDIA_TYPE_DOCX: A Microsoft Word document (DOCX, DOC).\n - MEDIA_TYPE_XLSX: A Microsoft Excel spreadsheet (XLSX, XLS).\n - MEDIA_TYPE_PPTX: A Microsoft PowerPoint presentation (PPTX, PPT).\n - MEDIA_TYPE_CSV: A CSV file."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/safetyculture-s12-documents-v1-create-file-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.