Logo of FrontifyDeveloper portalArrow to the right
GraphQL reference
Mutation

setLibraryAssetTargets():SetLibraryAssetTargets
Beta

Sync target IDs on asset IDs (add missing, remove extra). Requires basic:write scope to be accessible and Asset edit permission.

Limitations: All assets must belong to the same library. Library must have the "Targets" setting enabled.

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 SetLibraryAssetTargetsInput
assetIds: [ID!]!
Beta

Asset Id. Limited to 100 Ids per request. Assets must belong to the same library.

targetIds: [ID!]!
Beta

Target Id. Limited to 100 Ids per request.

Fields of SetLibraryAssetTargets
assets:[Asset!]!
Beta

The assets affected by the mutation.