Skip to content

Commit

Permalink
DEVDOCS-5839 [update]: Batch Metafields, add include_fields query par…
Browse files Browse the repository at this point in the history
…ameter (#245)
  • Loading branch information
bc-andreadao committed May 2, 2024
1 parent a9fd783 commit 5bdd902
Show file tree
Hide file tree
Showing 8 changed files with 176 additions and 0 deletions.
22 changes: 22 additions & 0 deletions reference/carts.v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1003,6 +1003,7 @@ paths:
- $ref: '#/components/parameters/MetafieldNamespaceParam'
- $ref: '#/components/parameters/MetafieldNamespaceInParam'
- $ref: '#/components/parameters/DirectionParam'
- $ref: '#/components/parameters/IncludeFieldsParamMetafields'
post:
summary: Create multiple Metafields
tags:
Expand Down Expand Up @@ -3700,6 +3701,27 @@ components:
enum:
- asc
- desc
IncludeFieldsParamMetafields:
name: include_fields
in: query
description: Fields to include, in a comma-separated list. The ID and the specified fields will be returned.
style: form
explode: false
schema:
type: array
items:
type: string
enum:
- resource_id
- key
- value
- namespace
- permission_set
- resource_type
- description
- owner_client_id
- date_created
- date_modified
securitySchemes:
X-Auth-Token:
name: X-Auth-Token
Expand Down
22 changes: 22 additions & 0 deletions reference/catalog/brands_catalog.v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1364,6 +1364,7 @@ paths:
- $ref: '#/components/parameters/MetafieldNamespaceParam'
- $ref: '#/components/parameters/MetafieldNamespaceInParam'
- $ref: '#/components/parameters/DirectionParam'
- $ref: '#/components/parameters/IncludeFieldsParamMetafields'
post:
summary: Create multiple metafields
tags:
Expand Down Expand Up @@ -2410,6 +2411,27 @@ components:
type: string
enum:
- name
IncludeFieldsParamMetafields:
name: include_fields
in: query
description: Fields to include, in a comma-separated list. The ID and the specified fields will be returned.
style: form
explode: false
schema:
type: array
items:
type: string
enum:
- resource_id
- key
- value
- namespace
- permission_set
- resource_type
- description
- owner_client_id
- date_created
- date_modified
responses:
General207Status:
description: Multi-status. Multiple operations have taken place and the status for each operation can be viewed in the body of the response. Typically indicates that a partial failure has occurred, such as when a `POST` or `PUT` request is successful, but saving the URL or inventory data has failed.
Expand Down
22 changes: 22 additions & 0 deletions reference/catalog/categories_catalog.v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1459,6 +1459,7 @@ paths:
- $ref: '#/components/parameters/MetafieldNamespaceParam'
- $ref: '#/components/parameters/MetafieldNamespaceInParam'
- $ref: '#/components/parameters/DirectionParam'
- $ref: '#/components/parameters/IncludeFieldsParamMetafields'
post:
summary: Create multiple Metafields
tags:
Expand Down Expand Up @@ -2667,6 +2668,27 @@ components:
type: array
items:
type: string
IncludeFieldsParamMetafields:
name: include_fields
in: query
description: Fields to include, in a comma-separated list. The ID and the specified fields will be returned.
style: form
explode: false
schema:
type: array
items:
type: string
enum:
- resource_id
- key
- value
- namespace
- permission_set
- resource_type
- description
- owner_client_id
- date_created
- date_modified
ExcludeFieldsParam:
name: exclude_fields
in: query
Expand Down
22 changes: 22 additions & 0 deletions reference/catalog/product-variants_catalog.v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1635,6 +1635,7 @@ paths:
- $ref: '#/components/parameters/MetafieldNamespaceParam'
- $ref: '#/components/parameters/MetafieldNamespaceInParam'
- $ref: '#/components/parameters/DirectionParam'
- $ref: '#/components/parameters/IncludeFieldsParamMetafields'
post:
summary: Create multiple Metafields
tags:
Expand Down Expand Up @@ -2939,6 +2940,27 @@ components:
type: array
items:
type: string
IncludeFieldsParamMetafields:
name: include_fields
in: query
description: Fields to include, in a comma-separated list. The ID and the specified fields will be returned.
style: form
explode: false
schema:
type: array
items:
type: string
enum:
- resource_id
- key
- value
- namespace
- permission_set
- resource_type
- description
- owner_client_id
- date_created
- date_modified
ExcludeFieldsParam:
name: exclude_fields
in: query
Expand Down
22 changes: 22 additions & 0 deletions reference/catalog/products_catalog.v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5196,6 +5196,7 @@ paths:
- $ref: '#/components/parameters/MetafieldNamespaceParam'
- $ref: '#/components/parameters/MetafieldNamespaceInParam'
- $ref: '#/components/parameters/DirectionParam'
- $ref: '#/components/parameters/IncludeFieldsParamMetafields'
post:
summary: Create multiple Metafields
tags:
Expand Down Expand Up @@ -8518,6 +8519,27 @@ components:
type: array
items:
type: string
IncludeFieldsParamMetafields:
name: include_fields
in: query
description: Fields to include, in a comma-separated list. The ID and the specified fields will be returned.
style: form
explode: false
schema:
type: array
items:
type: string
enum:
- resource_id
- key
- value
- namespace
- permission_set
- resource_type
- description
- owner_client_id
- date_created
- date_modified
IncludeFieldsEnumParam:
name: include_fields
in: query
Expand Down
22 changes: 22 additions & 0 deletions reference/channels.v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,7 @@ paths:
- $ref: '#/components/parameters/MetafieldNamespaceParam'
- $ref: '#/components/parameters/MetafieldNamespaceInParam'
- $ref: '#/components/parameters/DirectionParam'
- $ref: '#/components/parameters/IncludeFieldsParamMetafields'
post:
summary: Create multiple Metafields
tags:
Expand Down Expand Up @@ -974,6 +975,27 @@ components:
type: string
enum:
- currencies
IncludeFieldsParamMetafields:
name: include_fields
in: query
description: Fields to include, in a comma-separated list. The ID and the specified fields will be returned.
style: form
explode: false
schema:
type: array
items:
type: string
enum:
- resource_id
- key
- value
- namespace
- permission_set
- resource_type
- description
- owner_client_id
- date_created
- date_modified
available:
name: available
description: Filter items based on whether the channel is currently available for integration. Setting this query parameter to `true` will return channels with the status of `prelaunch`, `active` , `inactive`, and `connected`. Setting this query parameter to `false` will return channels with the status of `disconnected`, `archived`, `deleted`, and `terminated`.
Expand Down
22 changes: 22 additions & 0 deletions reference/customers.v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1812,6 +1812,7 @@ paths:
- $ref: '#/components/parameters/MetafieldNamespaceParam'
- $ref: '#/components/parameters/MetafieldNamespaceInParam'
- $ref: '#/components/parameters/DirectionParam'
- $ref: '#/components/parameters/IncludeFieldsParamMetafields'
post:
summary: Create Multiple Metafields
tags:
Expand Down Expand Up @@ -2001,6 +2002,27 @@ components:
enum:
- asc
- desc
IncludeFieldsParamMetafields:
name: include_fields
in: query
description: Fields to include, in a comma-separated list. The ID and the specified fields will be returned.
style: form
explode: false
schema:
type: array
items:
type: string
enum:
- resource_id
- key
- value
- namespace
- permission_set
- resource_type
- description
- owner_client_id
- date_created
- date_modified
responses:
CustomerCollectionResponse:
description: Customer Collection Response
Expand Down
22 changes: 22 additions & 0 deletions reference/orders.v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,7 @@ paths:
- $ref: '#/components/parameters/MetafieldNamespaceParam'
- $ref: '#/components/parameters/MetafieldNamespaceInParam'
- $ref: '#/components/parameters/DirectionParam'
- $ref: '#/components/parameters/IncludeFieldsParamMetafields'
post:
summary: Create multiple Metafields
tags:
Expand Down Expand Up @@ -3755,6 +3756,27 @@ components:
enum:
- asc
- desc
IncludeFieldsParamMetafields:
name: include_fields
in: query
description: Fields to include, in a comma-separated list. The ID and the specified fields will be returned.
style: form
explode: false
schema:
type: array
items:
type: string
enum:
- resource_id
- key
- value
- namespace
- permission_set
- resource_type
- description
- owner_client_id
- date_created
- date_modified
securitySchemes:
X-Auth-Token:
name: X-Auth-Token
Expand Down

0 comments on commit 5bdd902

Please sign in to comment.