curl -X DELETE \
'https://api.appcharge.com/components/v1/offer-design/progress-bar-design-classic' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-publisher-token: <x-publisher-token>'
curl -X DELETE \
'https://api.appcharge.com/components/v1/offer-design/progress-bar-design-milestones' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-publisher-token: <x-publisher-token>'
{
"id": "6909e7684f11e8957afd5d53",
"offerUiType": "ProgressBar",
"name": "Classic Progress Bar Design",
"externalId": "progress-bar-design-classic",
"backgroundImageUrl": "https://media.appcharge.com/defaults/background.png",
"backgroundColor": {
"colorOne": "#1a1a1a",
"colorTwo": "#1a1a1a",
"gradientDirection": "to right"
},
"backgroundOpacity": 100,
"frameRadius": 8,
"headerImageUrl": "https://example.com/header.png",
"title": {
"text": "Classic Progress Bar",
"fontColor": "#FFD700",
"fontSize": 10,
"fontWeight": "bold"
},
"subtitle": {
"text": "Collect rewards along the way",
"fontColor": "#FFD700",
"fontSize": 8,
"fontWeight": "medium"
},
"progressBar": {
"barFillColor": {
"colorOne": "#FFD700",
"colorTwo": "#FFA500",
"gradientDirection": "to right"
},
"borderColor": {
"colorOne": "#1a1a1a",
"colorTwo": "#3a3a3a",
"gradientDirection": "to right"
},
"borderWidth": 3,
"barRadius": 4,
"backgroundColor": {
"colorOne": "#1a1a1a",
"colorTwo": "#111111",
"gradientDirection": "to bottom"
},
"textColor": "#FFD700",
"accumulatedItem": {
"imageUrl": "https://example.com/item.png",
"ribbonImageUrl": "https://example.com/ribbon.png"
},
"type": "classic",
"milestones": null
}
}
{
"id": "6909e7684f11e8957afd5d54",
"offerUiType": "ProgressBar",
"name": "Milestone Progress Bar Design",
"externalId": "progress-bar-design-milestones",
"backgroundImageUrl": "https://media.appcharge.com/defaults/background.png",
"backgroundColor": {
"colorOne": "#1a1a1a",
"colorTwo": "#1a1a1a",
"gradientDirection": "to right"
},
"backgroundOpacity": 100,
"frameRadius": 8,
"headerImageUrl": "https://example.com/header.png",
"title": {
"text": "Reach Every Milestone",
"fontColor": "#FFD700",
"fontSize": 10,
"fontWeight": "bold"
},
"subtitle": {
"text": "Collect rewards along the way",
"fontColor": "#FFD700",
"fontSize": 8,
"fontWeight": "medium"
},
"progressBar": {
"barFillColor": {
"colorOne": "#FFD700",
"colorTwo": "#FFA500",
"gradientDirection": "to right"
},
"borderColor": {
"colorOne": "#1a1a1a",
"colorTwo": "#3a3a3a",
"gradientDirection": "to right"
},
"borderWidth": 3,
"barRadius": 4,
"backgroundColor": {
"colorOne": "#1a1a1a",
"colorTwo": "#111111",
"gradientDirection": "to bottom"
},
"textColor": "#FFD700",
"accumulatedItem": {
"imageUrl": "https://example.com/item.png",
"ribbonImageUrl": "https://example.com/ribbon.png"
},
"type": "milestones",
"milestones": {
"milestoneCompletedIconUrl": "https://example.com/checkmark.png",
"tooltipBackgroundColor": "#1f9eec"
}
}
}
Progress Bars
Delete Progress Bar Design
Deletes a progress bar design.
DELETE
/
components
/
v1
/
offer-design
/
{externalId}
curl -X DELETE \
'https://api.appcharge.com/components/v1/offer-design/progress-bar-design-classic' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-publisher-token: <x-publisher-token>'
curl -X DELETE \
'https://api.appcharge.com/components/v1/offer-design/progress-bar-design-milestones' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-publisher-token: <x-publisher-token>'
{
"id": "6909e7684f11e8957afd5d53",
"offerUiType": "ProgressBar",
"name": "Classic Progress Bar Design",
"externalId": "progress-bar-design-classic",
"backgroundImageUrl": "https://media.appcharge.com/defaults/background.png",
"backgroundColor": {
"colorOne": "#1a1a1a",
"colorTwo": "#1a1a1a",
"gradientDirection": "to right"
},
"backgroundOpacity": 100,
"frameRadius": 8,
"headerImageUrl": "https://example.com/header.png",
"title": {
"text": "Classic Progress Bar",
"fontColor": "#FFD700",
"fontSize": 10,
"fontWeight": "bold"
},
"subtitle": {
"text": "Collect rewards along the way",
"fontColor": "#FFD700",
"fontSize": 8,
"fontWeight": "medium"
},
"progressBar": {
"barFillColor": {
"colorOne": "#FFD700",
"colorTwo": "#FFA500",
"gradientDirection": "to right"
},
"borderColor": {
"colorOne": "#1a1a1a",
"colorTwo": "#3a3a3a",
"gradientDirection": "to right"
},
"borderWidth": 3,
"barRadius": 4,
"backgroundColor": {
"colorOne": "#1a1a1a",
"colorTwo": "#111111",
"gradientDirection": "to bottom"
},
"textColor": "#FFD700",
"accumulatedItem": {
"imageUrl": "https://example.com/item.png",
"ribbonImageUrl": "https://example.com/ribbon.png"
},
"type": "classic",
"milestones": null
}
}
{
"id": "6909e7684f11e8957afd5d54",
"offerUiType": "ProgressBar",
"name": "Milestone Progress Bar Design",
"externalId": "progress-bar-design-milestones",
"backgroundImageUrl": "https://media.appcharge.com/defaults/background.png",
"backgroundColor": {
"colorOne": "#1a1a1a",
"colorTwo": "#1a1a1a",
"gradientDirection": "to right"
},
"backgroundOpacity": 100,
"frameRadius": 8,
"headerImageUrl": "https://example.com/header.png",
"title": {
"text": "Reach Every Milestone",
"fontColor": "#FFD700",
"fontSize": 10,
"fontWeight": "bold"
},
"subtitle": {
"text": "Collect rewards along the way",
"fontColor": "#FFD700",
"fontSize": 8,
"fontWeight": "medium"
},
"progressBar": {
"barFillColor": {
"colorOne": "#FFD700",
"colorTwo": "#FFA500",
"gradientDirection": "to right"
},
"borderColor": {
"colorOne": "#1a1a1a",
"colorTwo": "#3a3a3a",
"gradientDirection": "to right"
},
"borderWidth": 3,
"barRadius": 4,
"backgroundColor": {
"colorOne": "#1a1a1a",
"colorTwo": "#111111",
"gradientDirection": "to bottom"
},
"textColor": "#FFD700",
"accumulatedItem": {
"imageUrl": "https://example.com/item.png",
"ribbonImageUrl": "https://example.com/ribbon.png"
},
"type": "milestones",
"milestones": {
"milestoneCompletedIconUrl": "https://example.com/checkmark.png",
"tooltipBackgroundColor": "#1f9eec"
}
}
}
curl -X DELETE \
'https://api.appcharge.com/components/v1/offer-design/progress-bar-design-classic' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-publisher-token: <x-publisher-token>'
curl -X DELETE \
'https://api.appcharge.com/components/v1/offer-design/progress-bar-design-milestones' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-publisher-token: <x-publisher-token>'
{
"id": "6909e7684f11e8957afd5d53",
"offerUiType": "ProgressBar",
"name": "Classic Progress Bar Design",
"externalId": "progress-bar-design-classic",
"backgroundImageUrl": "https://media.appcharge.com/defaults/background.png",
"backgroundColor": {
"colorOne": "#1a1a1a",
"colorTwo": "#1a1a1a",
"gradientDirection": "to right"
},
"backgroundOpacity": 100,
"frameRadius": 8,
"headerImageUrl": "https://example.com/header.png",
"title": {
"text": "Classic Progress Bar",
"fontColor": "#FFD700",
"fontSize": 10,
"fontWeight": "bold"
},
"subtitle": {
"text": "Collect rewards along the way",
"fontColor": "#FFD700",
"fontSize": 8,
"fontWeight": "medium"
},
"progressBar": {
"barFillColor": {
"colorOne": "#FFD700",
"colorTwo": "#FFA500",
"gradientDirection": "to right"
},
"borderColor": {
"colorOne": "#1a1a1a",
"colorTwo": "#3a3a3a",
"gradientDirection": "to right"
},
"borderWidth": 3,
"barRadius": 4,
"backgroundColor": {
"colorOne": "#1a1a1a",
"colorTwo": "#111111",
"gradientDirection": "to bottom"
},
"textColor": "#FFD700",
"accumulatedItem": {
"imageUrl": "https://example.com/item.png",
"ribbonImageUrl": "https://example.com/ribbon.png"
},
"type": "classic",
"milestones": null
}
}
{
"id": "6909e7684f11e8957afd5d54",
"offerUiType": "ProgressBar",
"name": "Milestone Progress Bar Design",
"externalId": "progress-bar-design-milestones",
"backgroundImageUrl": "https://media.appcharge.com/defaults/background.png",
"backgroundColor": {
"colorOne": "#1a1a1a",
"colorTwo": "#1a1a1a",
"gradientDirection": "to right"
},
"backgroundOpacity": 100,
"frameRadius": 8,
"headerImageUrl": "https://example.com/header.png",
"title": {
"text": "Reach Every Milestone",
"fontColor": "#FFD700",
"fontSize": 10,
"fontWeight": "bold"
},
"subtitle": {
"text": "Collect rewards along the way",
"fontColor": "#FFD700",
"fontSize": 8,
"fontWeight": "medium"
},
"progressBar": {
"barFillColor": {
"colorOne": "#FFD700",
"colorTwo": "#FFA500",
"gradientDirection": "to right"
},
"borderColor": {
"colorOne": "#1a1a1a",
"colorTwo": "#3a3a3a",
"gradientDirection": "to right"
},
"borderWidth": 3,
"barRadius": 4,
"backgroundColor": {
"colorOne": "#1a1a1a",
"colorTwo": "#111111",
"gradientDirection": "to bottom"
},
"textColor": "#FFD700",
"accumulatedItem": {
"imageUrl": "https://example.com/item.png",
"ribbonImageUrl": "https://example.com/ribbon.png"
},
"type": "milestones",
"milestones": {
"milestoneCompletedIconUrl": "https://example.com/checkmark.png",
"tooltipBackgroundColor": "#1f9eec"
}
}
}
Response
Progress bar design deleted successfully.
Was this page helpful?
