Logo of FrontifyDeveloper PortalArrow to the right
GraphQL Reference
Mutation

addAssetRelations():AddAssetRelations

Relate existing Assets. The relatedAssetIds input field list is limited to 100 ids per request and cannot contain the same assetId input field value. Requires basic:write scope to be accessible and Asset permission level EDIT.

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 AddAssetRelationsInput
assetId: ID!

Asset Id.

relatedAssetIds: [ID]!

Related Asset Id list.

Fields of AddAssetRelations
asset:Asset!

Asset details.

relatedAssets:[Asset]

Related Assets details.