Skip to content

Commit

Permalink
Updated API from documentation release
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-sdks[bot] committed Apr 3, 2024
1 parent c4849fa commit 9194bac
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api-specs/api/types/product/ProductDraft.raml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ properties:
type: string
description: |
User-defined unique identifier for the Product.
To update a Product using the [Import API](/../import-export/product), the Product `key` must match the pattern `^[A-Za-z0-9_-]{2,256}$`.
description?:
type: LocalizedString
description: |
Expand Down
2 changes: 2 additions & 0 deletions api-specs/api/types/product/updates/ProductSetKeyAction.raml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ properties:
type: string
description: |
Value to set. If empty, any existing value will be removed.
To update a Product using the [Import API](/../import-export/product), the Product `key` must match the pattern `^[A-Za-z0-9_-]{2,256}$`.
3 changes: 3 additions & 0 deletions api-specs/importapi/types/category-import.raml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ types:
key:
type: string
description: User-defined unique identifier. If a [Category](/../api/projects/categories#category) with this `key` exists, it will be updated with the imported data.
pattern: ^[A-Za-z0-9_-]+$
minLength: 2
maxLength: 256
name:
description: |
Maps to `Category.name`.
Expand Down
3 changes: 3 additions & 0 deletions api-specs/importapi/types/customer-import.raml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ types:
key:
type: string
description: User-defined unique identifier. If a [Customer](/../api/projects/customers#customer) with this `key` exists, it will be updated with the imported data.
pattern: ^[A-Za-z0-9_-]+$
minLength: 2
maxLength: 256
customerNumber?:
description: |
Maps to `Customer.customerNumber`.
Expand Down
3 changes: 3 additions & 0 deletions api-specs/importapi/types/inventory-import.raml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ types:
key:
type: string
description: User-defined unique identifier. If an [InventoryEntry](/../api/projects/inventory#inventoryentry) with this `key` exists, it will be updated with the imported data.
pattern: ^[A-Za-z0-9_-]+$
minLength: 2
maxLength: 256
sku:
type: string
description: |
Expand Down
3 changes: 3 additions & 0 deletions api-specs/importapi/types/product-draft-import.raml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ types:
key:
type: string
description: User-defined unique identifier. If a [Product](/../api/projects/products#product) with this `key` exists, it will be updated with the imported data.
pattern: ^[A-Za-z0-9_-]+$
minLength: 2
maxLength: 256
productType:
description: |
The `productType` of a [Product](/../api/projects/products#product).
Expand Down
3 changes: 3 additions & 0 deletions api-specs/importapi/types/product-import.raml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ types:
key:
type: string
description: User-defined unique identifier. If a [Product](/../api/projects/products#product) with this `key` exists, it will be updated with the imported data.
pattern: ^[A-Za-z0-9_-]+$
minLength: 2
maxLength: 256
name:
description: |
Maps to `Product.name`.
Expand Down
3 changes: 3 additions & 0 deletions api-specs/importapi/types/product-type-import.raml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ types:
properties:
key:
type: string
pattern: ^[A-Za-z0-9_-]+$
minLength: 2
maxLength: 256
description: User-defined unique identifier. If a [ProductType](/../api/projects/productTypes#producttype) with this `key` exists, it will be updated with the imported data.
name:
description: |
Expand Down

0 comments on commit 9194bac

Please sign in to comment.