Logo of FrontifyDeveloper portalArrow to the right
GraphQL reference
Mutation

updateAssets():UpdateAssets
Beta

Update many Assets in one call, where each asset carries its own values. Changes apply independently: assets and fields that cannot be updated fail individually without rolling back the rest.

All mutations have exactly one input field called input with a unique input and return type. This is useful to write mutations with variables, so there is always one single variable per mutation. This makes it easier to use and reuse them.

Input fields of UpdateAssetsInput
projectId: ID!
Beta

Project Id containing the Assets to update.

Beta

Per-Asset changes. Each entry names only the fields it updates; omitted fields are left untouched.

Fields of UpdateAssets
status:UpdateAssetsStatus!
Beta

Outcome of the bulk update. Changes apply independently per asset and per field; a partial failure does not roll back applied changes.

failedAssets:[FailedAssetUpdate!]!
Beta

Failures only: an Asset absent from this list had every requested change applied in full.

updatedAssets:[Asset!]!
Beta

Assets touched by this mutation, reflecting their state after whatever changes succeeded. Includes assets with field errors, since those were still partially updated; excludes assets present in failedAssets with a non-null code, since those were not touched at all.