Parameter | Description | Type |
---|---|---|
id | Game ID | int |
component | component ID | ID obtained by schema |
component_id | object ID | ID of obtained object |
Type | Description | List | Single | Add | Update | Delete |
---|---|---|---|---|---|---|
Object | Returns single object | - | GET | POST | PUT | - |
Array | Returns objects collection | GET | - | POST | PUT | DELETE |
Type | Description |
---|---|
file | On file upload, expects "file_identifier" under "id" key |
offer_picker | On coupon pick, expects coupon id under "id" key |
Example
{
"fields": [
{
"id": "symbol_image",
"name": "Symbol",
"type": "file",
"file_identifier": "background_image",
"required": true
},
{
"id": "coupon_id",
"name": "Offer",
"type": "offer_picker",
"required": false
}
]
}
{
"symbol_image": "background_image",
"coupon_id": 1
}
{}
curl --location --request DELETE 'https://api.mpc.dev.placewise.com/v1/games-admin/1//1' \
--header 'X-User-Agent;' \
--header 'X-Product-Name;' \
--header 'X-Loyalty-Club-Slug;' \
--header 'X-Customer;' \
--header 'Authorization: Bearer ' \
--header 'X-Client-Authorization: '
{}