- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
upsertRegions - Region Module Reference
This documentation provides a reference to the upsertRegions
method. This belongs to the Region Module.
Note: You should only use this methods when implementing complex customizations. For common cases, check out available workflows instead.
upsertRegions(data, sharedContext?): Promise<RegionDTO[]>#
This method updates or creates regions if they don't exist.
Example#
Parameters#
data
UpsertRegionDTO[]The attributes in the regions to be created or updated.
data
UpsertRegionDTO[]Returns#
Promise
Promise<RegionDTO[]>The created or updated regions.
Promise
Promise<RegionDTO[]>upsertRegions(data, sharedContext?): Promise<RegionDTO>#
This method updates or creates a region if it doesn't exist.
Example#
Parameters#
data
UpsertRegionDTOThe attributes in the region to be created or updated.
data
UpsertRegionDTOReturns#
Promise
Promise<RegionDTO>The created or updated region.
Promise
Promise<RegionDTO>Was this page helpful?