Create a new ProductGroup
POST/ticket/:guid/groups
Create a new ProductGroup which gets attached to this Ticket Type.
ProductGroups can be used to force some desired behaviour of a Ticket Type, like having to choose exactly 1 option out of some available ones, e.g. which color mug you want to purchase.
Request
Path Parameters
The guid of the Ticket Type.
- application/json
Body
Input data
Possible values: <= 255 characters
The name of the ProductGroup.
Possible values: <= 65536 characters
The description of the ProductGroup.
Possible values: <= 100000000
The lower bound, i.e. the minimal amount of Product Types which have to be ordered to satisfy the ProductGroup.
Possible values: <= 100000000
The upper bound, i.e. the maximum amount of Product Types which have to be ordered to satisfy the ProductGroup.
Possible values: <= 100000000
The amount of duplicates per Product Type which is maximally allowed.
The Product Type guids which should belong to this ProductGroup.
Responses
- 200
- 403
- 404
- 406
ProductGroup created.
- application/json
- Schema
- Example (from schema)
Schema
The guid of the ProductGroup.
Possible values: <= 255 characters
The name of the ProductGroup.
Possible values: <= 65536 characters
The description of the ProductGroup.
Possible values: <= 100000000
The lower bound, i.e. the minimal amount of Product Types which have to be ordered to satisfy the ProductGroup.
Possible values: <= 100000000
The upper bound, i.e. the maximum amount of Product Types which have to be ordered to satisfy the ProductGroup.
Possible values: <= 100000000
The amount of duplicates per Product Type which is maximally allowed.
The Ticket Type the ProductGroup belongs to
Is deprecated, is replaced by the numerator and denominator; Depicts the preceded_by.
Numerator, used for ordering.
Demoninator, used for ordering.
Array of Product Type guids which the ProductGroup belongs to.
{
"guid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"description": "string",
"min_bound": 0,
"max_bound": 0,
"uniqueness": 0,
"ticket_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"numerator": 0,
"denominator": 0,
"members": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
]
}
Unauthorized. You do not have permission to manage the Ticket Type.
- application/json
- Schema
- Example (from schema)
Schema
The general error code.
The exact reason of failure.
{
"error_code": "string",
"error_description": "string"
}
Product Types or Ticket Type not found.
- application/json
- Schema
- Example (from schema)
Schema
The general error code.
The exact reason of failure.
{
"error_code": "string",
"error_description": "string"
}
Request is invalid, see error context for validation errors.
- application/json
- Schema
- Example (from schema)
Schema
The general error code.
The exact reason of failure.
{
"error_code": "string",
"error_description": "string"
}