Magidoc

setLineAttributes
Mutation

Set dynamic and mapped attributes on a selection line. If quantity is less than the line's quantity, the line will be split based on checksum:

  • Original line quantity is reduced
  • Items are added to a line matching the new checksum (created if none exists) Lines with identical attributes will be merged automatically via checksum matching. Required operating mode : SHARED_SECRET

Arguments

#

lineId

Non-null

quantity

Number of items to apply attributes to. If less than line quantity, line will be split. Defaults to entire line quantity.

dynamicAttributes

mappedAttributes

Response

#

Returns SelectionMutationPayload !.

Example

#