curl --request PATCH \
--url https://backend.swap.coffee/v1/cashback/{id} \
--header 'Content-Type: application/json' \
--data '{
"title": "<string>",
"description": "<string>",
"distributor": "EQCZ_pV6EJNSr6XpvPaa-IVkT6ImqkiPftRMOICJP1B_75wZ",
"reward_token": "EQCZ_pV6EJNSr6XpvPaa-IVkT6ImqkiPftRMOICJP1B_75wZ",
"conditions": [
{
"type": "unique",
"args": [
"<string>"
]
}
],
"distribute": 123,
"distributed": 123,
"start_time_seconds": 123,
"end_time_seconds": 123,
"reward_denominator": 123,
"is_hidden": true,
"limits": [
{
"limit_id": 123,
"interval_duration_seconds": 123,
"max_distribute_at_interval": 123
}
],
"image_url": "<string>",
"references": [
{
"ref_name": "<string>",
"ref_url": "<string>"
}
]
}'
{
"id": 123,
"title": "<string>",
"description": "<string>",
"distributor": "EQCZ_pV6EJNSr6XpvPaa-IVkT6ImqkiPftRMOICJP1B_75wZ",
"reward_token": "EQCZ_pV6EJNSr6XpvPaa-IVkT6ImqkiPftRMOICJP1B_75wZ",
"conditions": [
{
"type": "unique",
"args": [
"<string>"
]
}
],
"distribute": 123,
"distributed": 123,
"start_time_seconds": 123,
"end_time_seconds": 123,
"reward_denominator": 123,
"is_active": true,
"limits": [
{
"limit_id": 123,
"interval_duration_seconds": 123,
"max_distribute_at_interval": 123
}
],
"image_url": "<string>",
"references": [
{
"ref_name": "<string>",
"ref_url": "<string>"
}
],
"is_hidden": true
}
curl --request PATCH \
--url https://backend.swap.coffee/v1/cashback/{id} \
--header 'Content-Type: application/json' \
--data '{
"title": "<string>",
"description": "<string>",
"distributor": "EQCZ_pV6EJNSr6XpvPaa-IVkT6ImqkiPftRMOICJP1B_75wZ",
"reward_token": "EQCZ_pV6EJNSr6XpvPaa-IVkT6ImqkiPftRMOICJP1B_75wZ",
"conditions": [
{
"type": "unique",
"args": [
"<string>"
]
}
],
"distribute": 123,
"distributed": 123,
"start_time_seconds": 123,
"end_time_seconds": 123,
"reward_denominator": 123,
"is_hidden": true,
"limits": [
{
"limit_id": 123,
"interval_duration_seconds": 123,
"max_distribute_at_interval": 123
}
],
"image_url": "<string>",
"references": [
{
"ref_name": "<string>",
"ref_url": "<string>"
}
]
}'
{
"id": 123,
"title": "<string>",
"description": "<string>",
"distributor": "EQCZ_pV6EJNSr6XpvPaa-IVkT6ImqkiPftRMOICJP1B_75wZ",
"reward_token": "EQCZ_pV6EJNSr6XpvPaa-IVkT6ImqkiPftRMOICJP1B_75wZ",
"conditions": [
{
"type": "unique",
"args": [
"<string>"
]
}
],
"distribute": 123,
"distributed": 123,
"start_time_seconds": 123,
"end_time_seconds": 123,
"reward_denominator": 123,
"is_active": true,
"limits": [
{
"limit_id": 123,
"interval_duration_seconds": 123,
"max_distribute_at_interval": 123
}
],
"image_url": "<string>",
"references": [
{
"ref_name": "<string>",
"ref_url": "<string>"
}
],
"is_hidden": true
}
Created cashback
The response is of type object
.