SafetyCulture · Schema

UpdatePlanRequest

The parameters for `UpdatePlan`

CompanyBusiness ApplicationsSafetyInspectionWorkplace OperationsEHSComplianceTrainingField Service ManagementWebhookAustralia

Properties

Name Type Description
plan object MaintenancePlan which replaces the one with matching identifier on the server.
update_mask string REQUIRED. The attributes (such as name, etc.) you want to update for the plan, specified in the parameters. For example, the update_mask=name parameter indicates that only the name will be updated in
View JSON Schema on GitHub

JSON Schema

safetyculture-s12-assets-v1-maintenance-service-update-plan-body-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/safetyculture/json-schema/safetyculture-s12-assets-v1-maintenance-service-update-plan-body-schema.json",
  "title": "UpdatePlanRequest",
  "description": "The parameters for `UpdatePlan`",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/safetyculture-assets-api-openapi.yml#/components/schemas/s12.assets.v1.MaintenanceService.UpdatePlanBody",
  "type": "object",
  "properties": {
    "plan": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the maintenance plan."
        },
        "intervals": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/$defs/s12.assets.v1.MaintenanceInterval"
          },
          "description": "The interval of the maintenance plan.",
          "readOnly": true
        },
        "description": {
          "type": "string",
          "description": "Description and extra information for a maintenance plan"
        },
        "update_status": {
          "$ref": "#/$defs/s12.assets.v1.MaintenancePlanUpdateStatus",
          "description": "The status of the maintenance plan update operation.",
          "readOnly": true
        },
        "triggers": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/$defs/s12.assets.v1.MaintenanceTrigger"
          },
          "description": "The list of maintenance triggers of a plan.",
          "readOnly": true
        }
      },
      "description": "MaintenancePlan which replaces the one with matching identifier on the server.",
      "title": "MaintenancePlan which replaces the one with matching identifier on the server."
    },
    "update_mask": {
      "type": "string",
      "description": "REQUIRED. The attributes (such as name, etc.) you\nwant to update for the plan, specified in the parameters. For example, the\nupdate_mask=name parameter indicates that only the name will be\nupdated in a request, any other attributes provided in your request body\nwill be ignored."
    }
  },
  "required": [
    "update_mask"
  ],
  "$defs": {
    "s12.assets.v1.MaintenanceInterval": {
      "type": "object",
      "properties": {
        "interval": {
          "allOf": [
            {
              "$ref": "#/$defs/s12.assets.v1.MaintenanceMetricValue"
            }
          ],
          "description": "Maintenance metric value"
        },
        "is_recurring": {
          "type": "boolean",
          "description": "Defines if interval is recurring (e.g. every 10000km if repeating or at 10000km if not)"
        },
        "due_soon": {
          "description": "Due-soon specifies when the status of the plan-asset should be changed to due-soon.",
          "allOf": [
            {
              "$ref": "#/$defs/s12.assets.v1.MaintenanceMetricValue"
            }
          ]
        },
        "type": {
          "description": "The type of the maintenance interval.",
          "allOf": [
            {
              "$ref": "#/$defs/s12.assets.v1.MaintenanceIntervalType"
            }
          ]
        }
      }
    },
    "s12.assets.v1.MaintenanceIntervalType": {
      "type": "string",
      "enum": [
        "MAINTENANCE_INTERVAL_TYPE_UNSPECIFIED",
        "MAINTENANCE_INTERVAL_TYPE_ODOMETER",
        "MAINTENANCE_INTERVAL_TYPE_RUNTIME",
        "MAINTENANCE_INTERVAL_TYPE_TIME"
      ],
      "default": "MAINTENANCE_INTERVAL_TYPE_UNSPECIFIED",
      "description": "MaintenanceIntervalType represents the type of maintenance interval.\n\n - MAINTENANCE_INTERVAL_TYPE_UNSPECIFIED: MAINTENANCE_INTERVAL_TYPE_UNSPECIFIED is an unknown maintenance interval type.\n - MAINTENANCE_INTERVAL_TYPE_ODOMETER: MAINTENANCE_INTERVAL_TYPE_ODOMETER is a maintenance interval type that is odometer based.\n - MAINTENANCE_INTERVAL_TYPE_RUNTIME: MAINTENANCE_INTERVAL_TYPE_RUNTIME is a maintenance interval type that is runtime based.\n - MAINTENANCE_INTERVAL_TYPE_TIME: MAINTENANCE_INTERVAL_TYPE_TIME is a maintenance interval type that is time based."
    },
    "s12.assets.v1.MaintenanceMetricValue": {
      "type": "object",
      "properties": {
        "unit_value": {
          "$ref": "#/$defs/s12.assets.v1.UnitValue"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "title": "The maintenance metric value (e.g. odometer, running time)"
    },
    "s12.assets.v1.MaintenancePlanUpdateStatus": {
      "type": "string",
      "enum": [
        "MAINTENANCE_PLAN_UPDATE_STATUS_UNSPECIFIED",
        "MAINTENANCE_PLAN_UPDATE_STATUS_IN_PROGRESS",
        "MAINTENANCE_PLAN_UPDATE_STATUS_COMPLETED",
        "MAINTENANCE_PLAN_UPDATE_STATUS_FAILED"
      ],
      "default": "MAINTENANCE_PLAN_UPDATE_STATUS_UNSPECIFIED",
      "description": "MaintenancePlanUpdateStatus represents the status of a maintenance plan update operation.\n\n - MAINTENANCE_PLAN_UPDATE_STATUS_UNSPECIFIED: MAINTENANCE_PLAN_UPDATE_STATUS_UNSPECIFIED is an unknown maintenance plan update status.\n - MAINTENANCE_PLAN_UPDATE_STATUS_IN_PROGRESS: MAINTENANCE_PLAN_UPDATE_STATUS_IN_PROGRESS indicates a plan update is currently in progress.\n - MAINTENANCE_PLAN_UPDATE_STATUS_COMPLETED: MAINTENANCE_PLAN_UPDATE_STATUS_COMPLETED indicates a plan update has been completed successfully.\n - MAINTENANCE_PLAN_UPDATE_STATUS_FAILED: MAINTENANCE_PLAN_UPDATE_STATUS_FAILED indicates a plan update has failed."
    },
    "s12.assets.v1.MaintenanceTrigger": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The identifier of the maintenance trigger."
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "description": "Time when maintenance trigger was created.",
          "readOnly": true
        },
        "modified_at": {
          "type": "string",
          "format": "date-time",
          "description": "Time when maintenance trigger was last modified.",
          "readOnly": true
        },
        "notification": {
          "description": "Notification trigger.",
          "allOf": [
            {
              "$ref": "#/$defs/s12.assets.v1.MaintenanceTriggerNotification"
            }
          ]
        }
      },
      "description": "The maintenance trigger associated with a plan."
    },
    "s12.assets.v1.MaintenanceTriggerNotification": {
      "type": "object",
      "properties": {
        "user_ids": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of user IDs that will receive the notification."
        },
        "group_ids": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of group IDs that will receive the notification."
        },
        "before": {
          "description": "Notification will be triggered when reading value reaches (LastService + Interval - before).",
          "allOf": [
            {
              "$ref": "#/$defs/s12.assets.v1.MaintenanceMetricValue"
            }
          ]
        }
      },
      "description": "The notification maintenance trigger."
    },
    "s12.assets.v1.UnitValue": {
      "type": "object",
      "properties": {
        "value": {
          "type": "number",
          "format": "double"
        },
        "unit": {
          "$ref": "#/$defs/s12.common.MeasurementUnitSymbol"
        }
      },
      "description": "The unit value represents a measurement value with a unit symbol.\nIt is used to represent a value with a unit symbol, such as 10 km or 5 hours."
    },
    "s12.common.MeasurementUnitSymbol": {
      "type": "string",
      "enum": [
        "MEASUREMENT_UNIT_SYMBOL_KILOMETERS",
        "MEASUREMENT_UNIT_SYMBOL_MILES",
        "MEASUREMENT_UNIT_SYMBOL_HOURS",
        "MEASUREMENT_UNIT_SYMBOL_MINUTES",
        "MEASUREMENT_UNIT_SYMBOL_INCHES",
        "MEASUREMENT_UNIT_SYMBOL_FOOT",
        "MEASUREMENT_UNIT_SYMBOL_MILLIMETERS",
        "MEASUREMENT_UNIT_SYMBOL_CENTIMETERS",
        "MEASUREMENT_UNIT_SYMBOL_METERS",
        "MEASUREMENT_UNIT_SYMBOL_MILLILITRES",
        "MEASUREMENT_UNIT_SYMBOL_LITRES",
        "MEASUREMENT_UNIT_SYMBOL_GALLONS",
        "MEASUREMENT_UNIT_SYMBOL_CUBIC_METERS",
        "MEASUREMENT_UNIT_SYMBOL_SECONDS",
        "MEASUREMENT_UNIT_SYMBOL_FAHRENHEIT",
        "MEASUREMENT_UNIT_SYMBOL_CELSIUS",
        "MEASUREMENT_UNIT_SYMBOL_KELVIN",
        "MEASUREMENT_UNIT_SYMBOL_OUNCE",
        "MEASUREMENT_UNIT_SYMBOL_POUNDS",
        "MEASUREMENT_UNIT_SYMBOL_TONNES",
        "MEASUREMENT_UNIT_SYMBOL_GRAMS",
        "MEASUREMENT_UNIT_SYMBOL_KILOGRAMS",
        "MEASUREMENT_UNIT_SYMBOL_AMPERES",
        "MEASUREMENT_UNIT_SYMBOL_HERTZ",
        "MEASUREMENT_UNIT_SYMBOL_OHM",
        "MEASUREMENT_UNIT_SYMBOL_VOLTS",
        "MEASUREMENT_UNIT_SYMBOL_WATTS",
        "MEASUREMENT_UNIT_SYMBOL_CANDELA",
        "MEASUREMENT_UNIT_SYMBOL_CYCLES",
        "MEASUREMENT_UNIT_SYMBOL_PERCENT",
        "MEASUREMENT_UNIT_SYMBOL_POUNDS_PER_SQUARE_INCH",
        "MEASUREMENT_UNIT_SYMBOL_MOLE",
        "MEASUREMENT_UNIT_SYMBOL_DAYS",
        "MEASUREMENT_UNIT_SYMBOL_WEEKS",
        "MEASUREMENT_UNIT_SYMBOL_MONTHS"
      ],
      "description": "Collection of symbols (km, mi, hr, etc) used in units of measurement.\n\n - MEASUREMENT_UNIT_SYMBOL_KILOMETERS: Measurement unit symbol for kilometers.\n - MEASUREMENT_UNIT_SYMBOL_MILES: Measurement unit symbol for miles.\n - MEASUREMENT_UNIT_SYMBOL_HOURS: Measurement unit symbol for hours.\n - MEASUREMENT_UNIT_SYMBOL_MINUTES: Measurement unit symbol for minutes.\n - MEASUREMENT_UNIT_SYMBOL_INCHES: Measurement unit symbol for inches.\n - MEASUREMENT_UNIT_SYMBOL_FOOT: Measurement unit symbol for foot.\n - MEASUREMENT_UNIT_SYMBOL_MILLIMETERS: Measurement unit symbol for Millimeters.\n - MEASUREMENT_UNIT_SYMBOL_CENTIMETERS: Measurement unit symbol for Centimeters.\n - MEASUREMENT_UNIT_SYMBOL_METERS: Measurement unit symbol for meters.\n - MEASUREMENT_UNIT_SYMBOL_MILLILITRES: Measurement unit symbol for millilitres.\n - MEASUREMENT_UNIT_SYMBOL_LITRES: Measurement unit symbol for litres.\n - MEASUREMENT_UNIT_SYMBOL_GALLONS: Measurement unit symbol for gallons.\n - MEASUREMENT_UNIT_SYMBOL_CUBIC_METERS: Measurement unit symbol for cubic meters.\n - MEASUREMENT_UNIT_SYMBOL_SECONDS: Measurement unit symbol for seconds.\n - MEASUREMENT_UNIT_SYMBOL_FAHRENHEIT: Measurement unit symbol for fahrenheit.\n - MEASUREMENT_UNIT_SYMBOL_CELSIUS: Measurement unit symbol for celsius.\n - MEASUREMENT_UNIT_SYMBOL_KELVIN: Measurement unit symbol for kelvin.\n - MEASUREMENT_UNIT_SYMBOL_OUNCE: Measurement unit symbol for ounce.\n - MEASUREMENT_UNIT_SYMBOL_POUNDS: Measurement unit symbol for pounds.\n - MEASUREMENT_UNIT_SYMBOL_TONNES: Measurement unit symbol for tonnes.\n - MEASUREMENT_UNIT_SYMBOL_GRAMS: Measurement unit symbol for grams.\n - MEASUREMENT_UNIT_SYMBOL_KILOGRAMS: Measurement unit symbol for kilograms.\n - MEASUREMENT_UNIT_SYMBOL_AMPERES: Measurement unit symbol for amperes.\n - MEASUREMENT_UNIT_SYMBOL_HERTZ: Measurement unit symbol for hertz.\n - MEASUREMENT_UNIT_SYMBOL_OHM: Measurement unit symbol for ohm.\n - MEASUREMENT_UNIT_SYMBOL_VOLTS: Measurement unit symbol for volts.\n - MEASUREMENT_UNIT_SYMBOL_WATTS: Measurement unit symbol for watts.\n - MEASUREMENT_UNIT_SYMBOL_CANDELA: Measurement unit symbol for candela.\n - MEASUREMENT_UNIT_SYMBOL_CYCLES: Measurement unit symbol for cycles.\n - MEASUREMENT_UNIT_SYMBOL_PERCENT: Measurement unit symbol for percent.\n - MEASUREMENT_UNIT_SYMBOL_POUNDS_PER_SQUARE_INCH: Measurement unit symbol for pounds per square inch.\n - MEASUREMENT_UNIT_SYMBOL_MOLE: Measurement unit symbol for mole.\n - MEASUREMENT_UNIT_SYMBOL_DAYS: Measurement unit symbol for days.\n - MEASUREMENT_UNIT_SYMBOL_WEEKS: Measurement unit symbol for weeks.\n - MEASUREMENT_UNIT_SYMBOL_MONTHS: Measurement unit symbol for months."
    }
  }
}

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-assets-v1-maintenance-service-update-plan-body"
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.