upsert - Sales Channel Module Reference
This documentation provides a reference to the upsert
method. This belongs to the Sales Channel Module.
upsert(data, sharedContext?): Promise<SalesChannelDTO>
This method updates or creates a sales channel if it doesn't exist.
Example
Parameters
The attributes in the sales channel to be created or updated.
Returns
The created or updated sales channel.
upsert(data, sharedContext?): Promise<SalesChannelDTO[]>
This method updates or creates sales channels if they don't exist.
Example
Parameters
The attributes in the sales channels to be created or updated.
Returns
The created or updated sales channels.
Was this section helpful?