Resource information
URL | https://api.softnetsportstatscore.com/v2/booked-events/delete |
---|---|
XSD | |
{event_id} | |
Method | POSTDELETE |
Description | Returns a single event with details including participants, partial results, stats, lineups and important incidents for the event |
Cache | 15 seconds |
Delete reservations for event in product for user from token | |
Authorization required | Yes |
...
Method parameters
Name | Data type | Description |
---|---|---|
event_id | xsd:int | REQUIRED. The The requested event identifier of previously booked event. The complete list of previously booked event can be retrieved using the API resource: booked-events.index |
Parameters
Name | Data type | Description |
---|---|---|
product | xsd:string | REQUIRED. The requested product name identifier
|
token | xsd:string | REQUIRED. More information concerning authorization in API introduction section |
Output elements
.data | |
---|---|
message | Response info message. |
status | Response code. |
Response Code
...
Code
...
Posssible output messages
Status | Message | Note |
---|---|---|
200 | Event successfully removed | |
400 | You can order\refuse only events with the status Not started | |
400 | Booking not Exist | |
400 | The selected product is invalid. | When requested product is not valid |
403 | Invalid credentials. Either the username, password or token you provided is incorrect | |
404 | The requested resource was not found | When requested event does not exist |
Sample curl call
Request | Parameters |
---|---|
curl -XPOST XDELETE 'https://api.softnetsportstatscore.com/v2/booked-events/delete?token=YOUR_TOKEN&{event_id=EVENT_ID}?token=token&product=PRODUCT_NAMEproduct' YOUR_TOKEN EVENT_ID | PRODUCT_NAMEtoken, event_id, product |