Skip to content

Commit 82bca33

Browse files
committed
Updated API from documentation release
1 parent 0323605 commit 82bca33

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

api-specs/import/types/error.raml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,16 @@ types:
220220
GenericError:
221221
type: ErrorObject
222222
discriminatorValue: Generic
223+
NewMasterVariantAdditionNotAllowedError:
224+
description: |
225+
Returned when attempting to create a ProductVariant and set it as the Master Variant in the same [ProductVariantImport](ctp:import:type:ProductVariantImport).
226+
type: ErrorObject
227+
discriminatorValue: NewMasterVariantAdditionNotAllowed
228+
properties:
229+
message:
230+
type: string
231+
description: |
232+
`"Adding a new variant as master variant is not allowed."`
223233
ReferencedResourceNotFound:
224234
type: ErrorObject
225235
displayName: ReferencedResourceNotFoundError

api-specs/import/types/product-variant-import.raml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ types:
218218
type: string
219219
isMasterVariant:
220220
description: |
221-
Maps to `ProductVariant.isMasterVariant`.
221+
- When creating a new ProductVariant, set to `false`; otherwise, the import operation will fail with a [NewMasterVariantAdditionNotAllowed](/error#newmastervariantadditionnotallowederror) error.
222+
- Set to `true` if the ProductVariant exists and you want to set this ProductVariant as the Master Variant.
222223
type: boolean
223224
attributes?:
224225
description: |

0 commit comments

Comments
 (0)