Edit on GitHub

Update Resource

A schema that is used to validate a part of Laboperator workflow templates.

An action to update the value of custom attributes of a resource, as well as the title of a Workflow Run, or the name of a Device.

Update Resource
property name*
object or (object or object or object)
Examples:
update_resource:
  id: balance.id
  type: device
  attributes:
    name: deviceField.name
update_resource:
  id: workflow_run.data.id
  type: workflow_run
  attributes:
    title: sampleField.name
update_resource:
  id: balance.id
  type: device
  attributes:
    custom_attributes: |
      {
        HASH(
          "name","DeviceInUse",
          "type", "boolean",
          "value", true
        ),
        HASH(
          "name","WorkflowID",
          "type", "string",
          "value", workflow_run.data.id
        )
      }
Where is this used?
Other schemas that have a reference ($ref) to this schema.

No references found.