POST api/ticketPackage/Add
Request Information
URI Parameters
None.
Body Parameters
TicketPackageAddReq| Name | Description | Type | Additional information |
|---|---|---|---|
| type | integer |
None. |
|
| id | string |
None. |
|
| name | string |
None. |
|
| qty | integer |
None. |
|
| giveQty | integer |
None. |
|
| price | decimal number |
None. |
|
| enabled | integer |
None. |
|
| remark | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"type": 1,
"id": "sample string 2",
"name": "sample string 3",
"qty": 4,
"giveQty": 5,
"price": 6.0,
"enabled": 7,
"remark": "sample string 8"
}
application/xml, text/xml
Sample:
<TicketPackageAddReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Football.ManagerApi.Controllers"> <enabled>7</enabled> <giveQty>5</giveQty> <id>sample string 2</id> <name>sample string 3</name> <price>6</price> <qty>4</qty> <remark>sample string 8</remark> <type>1</type> </TicketPackageAddReq>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/plain
Sample:
Sample not available.
Response Information
Resource Description
ResultMsg| Name | Description | Type | Additional information |
|---|---|---|---|
| success | boolean |
None. |
|
| message | string |
None. |
|
| code | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"message": "sample string 2",
"code": 3
}
application/xml, text/xml
Sample:
<ResultMsg xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Football.Model"> <Code>3</Code> <Message>sample string 2</Message> <Success>true</Success> </ResultMsg>