SafetyCulture · Schema

BulkUpdateAssetsResponse

Result returned from `BulkUpdateAssets`

CompanyBusiness ApplicationsSafetyInspectionWorkplace OperationsEHSComplianceTrainingField Service ManagementWebhookAustralia

Properties

Name Type Description
updated_assets array List of assets successfully updated.
failed_assets array List of assets failed to update.
operation_id string Deprecated: only a subset of `updated_assets` triggers an asynchronous hierarchy operation (any `site` or `code` change, or where an updated asset is the parent of other assets), so a single identifie
hierarchy_operations array Assets from `updated_assets` whose change was hierarchy-affecting and triggered an asynchronous operation, each paired with that operation's identifier. Empty if no asset in the request triggered one.
View JSON Schema on GitHub

JSON Schema

safetyculture-s12-assets-v1-bulk-update-assets-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/safetyculture/json-schema/safetyculture-s12-assets-v1-bulk-update-assets-response-schema.json",
  "title": "BulkUpdateAssetsResponse",
  "description": "Result returned from `BulkUpdateAssets`",
  "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.BulkUpdateAssetsResponse",
  "type": "object",
  "properties": {
    "updated_assets": {
      "type": "array",
      "items": {
        "type": "object",
        "$ref": "#/$defs/s12.assets.v1.BulkUpdateAssetsResponse.UpdatedAsset"
      },
      "description": "List of assets successfully updated."
    },
    "failed_assets": {
      "type": "array",
      "items": {
        "type": "object",
        "$ref": "#/$defs/s12.assets.v1.BulkUpdateAssetsResponse.FailedAsset"
      },
      "description": "List of assets failed to update."
    },
    "operation_id": {
      "type": "string",
      "description": "Deprecated: only a subset of `updated_assets` triggers an asynchronous\nhierarchy operation (any `site` or `code` change, or where an updated\nasset is the parent of other assets), so a single identifier cannot\nrepresent every operation this request created. Reflects only the last\nsuch asset's operation id when more than one is triggered. Use\n`hierarchy_operations` instead.",
      "readOnly": true
    },
    "hierarchy_operations": {
      "type": "array",
      "items": {
        "type": "object",
        "$ref": "#/$defs/s12.assets.v1.BulkUpdateAssetsResponse.HierarchyOperation"
      },
      "description": "Assets from `updated_assets` whose change was hierarchy-affecting and\ntriggered an asynchronous operation, each paired with that operation's\nidentifier. Empty if no asset in the request triggered one."
    }
  },
  "$defs": {
    "google.protobuf.Any": {
      "type": "object",
      "properties": {
        "@type": {
          "type": "string",
          "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n  value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n  URL, or have them precompiled into a binary to avoid any\n  lookup. Therefore, binary compatibility needs to be preserved\n  on changes to types. (Use versioned type names to manage\n  breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics."
        }
      },
      "additionalProperties": {},
      "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n    Foo foo = ...;\n    Any any;\n    any.PackFrom(foo);\n    ...\n    if (any.UnpackTo(&foo)) {\n      ...\n    }\n\nExample 2: Pack and unpack a message in Java.\n\n    Foo foo = ...;\n    Any any = Any.pack(foo);\n    ...\n    if (any.is(Foo.class)) {\n      foo = any.unpack(Foo.class);\n    }\n\n Example 3: Pack and unpack a message in Python.\n\n    foo = Foo(...)\n    any = Any()\n    any.Pack(foo)\n    ...\n    if any.Is(Foo.DESCRIPTOR):\n      any.Unpack(foo)\n      ...\n\n Example 4: Pack and unpack a message in Go\n\n     foo := &pb.Foo{...}\n     any, err := ptypes.MarshalAny(foo)\n     ...\n     foo := &pb.Foo{}\n     if err := ptypes.UnmarshalAny(any, foo); err != nil {\n       ...\n     }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n    package google.profile;\n    message Person {\n      string first_name = 1;\n      string last_name = 2;\n    }\n\n    {\n      \"@type\": \"type.googleapis.com/google.profile.Person\",\n      \"firstName\": <string>,\n      \"lastName\": <string>\n    }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n    {\n      \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n      \"value\": \"1.212s\"\n    }"
    },
    "s12.assets.v1.BulkUpdateAssetsResponse.FailedAsset": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The identifier of the updated asset."
        },
        "code": {
          "type": "string",
          "description": "The user-defined unique identifier of an asset. This ID is user-generated."
        },
        "status": {
          "description": "Status contains three pieces of data: error code, error message and\nerror details.",
          "allOf": [
            {
              "$ref": "#/$defs/s12.common.Status"
            }
          ]
        }
      },
      "description": "The asset that has failed to update."
    },
    "s12.assets.v1.BulkUpdateAssetsResponse.HierarchyOperation": {
      "type": "object",
      "properties": {
        "asset_id": {
          "type": "string",
          "description": "Identifier of the updated asset that triggered this operation."
        },
        "operation_id": {
          "type": "string",
          "description": "Identifier of the asset hierarchy operation processing this asset's\nhierarchy-affecting change. Use `ListAssetHierarchyOperations` or\n`SubscribeAssetHierarchyOperations` to track completion.",
          "readOnly": true
        }
      },
      "description": "An updated asset whose change was hierarchy-affecting and triggered an\nasynchronous hierarchy operation."
    },
    "s12.assets.v1.BulkUpdateAssetsResponse.UpdatedAsset": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The identifier of the updated asset."
        },
        "code": {
          "type": "string",
          "description": "The user-defined unique identifier of an asset. This ID is user-generated."
        }
      },
      "description": "The asset that has been successfully updated."
    },
    "s12.common.Status": {
      "type": "object",
      "properties": {
        "code": {
          "type": "integer",
          "format": "int32",
          "description": "The status code, which should be an enum value of the predefined codes in\nhttps://github.com/grpc/grpc/blob/master/doc/statuscodes.md"
        },
        "message": {
          "type": "string",
          "description": "A developer-facing error message, which should be in English."
        },
        "details": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/$defs/google.protobuf.Any"
          },
          "description": "A list of messages that carry the error details."
        }
      },
      "description": "The `Status` type defines a logical error model and is based on the richer\nerror model as described in the guide - https://grpc.io/docs/guides/error/ A\n`Status` message contains three pieces of data: error code, error message and\nerror details. The `Status.details` can be a collection of `Any` proto\nmessage. Each proto message can describe an error type."
    }
  }
}

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-bulk-update-assets-response"
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.