Logo of FrontifyDeveloper PortalArrow to the right
GraphQL Reference
Mutation

setLibraryAssetTargets():SetLibraryAssetTargets
Beta

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

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

targetIds: [ID!]!
Beta

BETA Target Id. Limited to 100 Ids per request.

Fields of SetLibraryAssetTargets
assets:[Asset!]!
Beta

BETA The assets affected by the mutation.