71 lines
1.8 KiB
YAML
71 lines
1.8 KiB
YAML
get:
|
|
operationId: GetCustomerGroups
|
|
summary: List Customer Groups
|
|
description: >-
|
|
Retrieve a list of customer groups. The customer groups can be filtered by
|
|
fields such as `id`. The customer groups can also be sorted or paginated.
|
|
x-authenticated: true
|
|
parameters: []
|
|
security:
|
|
- api_token: []
|
|
- cookie_auth: []
|
|
- jwt_token: []
|
|
x-codeSamples:
|
|
- lang: Shell
|
|
label: cURL
|
|
source:
|
|
$ref: ../code_samples/Shell/admin_customer-groups/get.sh
|
|
tags:
|
|
- Customer Groups
|
|
responses:
|
|
'400':
|
|
$ref: ../components/responses/400_error.yaml
|
|
'401':
|
|
$ref: ../components/responses/unauthorized.yaml
|
|
'404':
|
|
$ref: ../components/responses/not_found_error.yaml
|
|
'409':
|
|
$ref: ../components/responses/invalid_state_error.yaml
|
|
'422':
|
|
$ref: ../components/responses/invalid_request_error.yaml
|
|
'500':
|
|
$ref: ../components/responses/500_error.yaml
|
|
requestBody:
|
|
content:
|
|
application/json:
|
|
schema: {}
|
|
post:
|
|
operationId: PostCustomerGroups
|
|
summary: Create Customer Group
|
|
description: Create a customer group.
|
|
x-authenticated: true
|
|
parameters: []
|
|
security:
|
|
- api_token: []
|
|
- cookie_auth: []
|
|
- jwt_token: []
|
|
x-codeSamples:
|
|
- lang: Shell
|
|
label: cURL
|
|
source:
|
|
$ref: ../code_samples/Shell/admin_customer-groups/post.sh
|
|
tags:
|
|
- Customer Groups
|
|
responses:
|
|
'400':
|
|
$ref: ../components/responses/400_error.yaml
|
|
'401':
|
|
$ref: ../components/responses/unauthorized.yaml
|
|
'404':
|
|
$ref: ../components/responses/not_found_error.yaml
|
|
'409':
|
|
$ref: ../components/responses/invalid_state_error.yaml
|
|
'422':
|
|
$ref: ../components/responses/invalid_request_error.yaml
|
|
'500':
|
|
$ref: ../components/responses/500_error.yaml
|
|
requestBody:
|
|
content:
|
|
application/json:
|
|
schema: {}
|