Attach a Product Type to a Ticket Type
POST/ticket/:guid/products/:product_guid
Attach a Product Type to a Ticket Type.
Prepends this Product Type to the list. i.e. the Product Type ends up on the top.
Request
Path Parameters
guid uuidrequired
The guid of the Ticket Type.
product_guid uuidrequired
The guid of the Product Type.
- application/json
Body
Input data
price integer
Use this property to override the price of a Product Type. Note, that this value appear in the "pivot" property.
Responses
- 204
- 403
- 404
- 406
Product Type attached to Ticket Type.
Unauthorized. You do not have permission to manage the Ticket Type or Product Type.
- application/json
- Schema
- Example (from schema)
Schema
error_code string
The general error code.
error_description stringrequired
The exact reason of failure.
{
"error_code": "string",
"error_description": "string"
}
Ticket Type or Product Type not found.
- application/json
- Schema
- Example (from schema)
Schema
error_code string
The general error code.
error_description stringrequired
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
error_code string
The general error code.
error_description stringrequired
The exact reason of failure.
{
"error_code": "string",
"error_description": "string"
}
Loading...