curl -X POST \
'https://api.appcharge.com/components/v1/offer-design' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
--data '{
"offerUiType": "PopUp",
"offerUiSubType": "DailyBonus",
"name": "Daily Bonus Design",
"externalId": "daily-bonus-design",
"backgroundImageUrl": "https://media.appcharge.com/media/65cb7861ec8924a6b69a0f59/background.png",
"title": {
"text": "Your daily bonus!",
"fontColor": "#FFFFFF",
"fontSize": 20,
"fontWeight": "normal"
}
}'
{
"id": "68cbf09967ba5ab776c2745e",
"offerUiType": "PopUp",
"offerUiSubType": "DailyBonus",
"name": "Daily Bonus Design",
"externalId": "daily-bonus-design",
"backgroundImageUrl": "https://media.appcharge.com/media/65cb7861ec8924a6b69a0f59/background.png",
"title": {
"text": "Your daily bonus!",
"fontColor": "#FFFFFF",
"fontSize": 20,
"fontWeight": "normal"
}
}
Create Daily Bonus Design
Creates a daily bonus design.
curl -X POST \
'https://api.appcharge.com/components/v1/offer-design' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
--data '{
"offerUiType": "PopUp",
"offerUiSubType": "DailyBonus",
"name": "Daily Bonus Design",
"externalId": "daily-bonus-design",
"backgroundImageUrl": "https://media.appcharge.com/media/65cb7861ec8924a6b69a0f59/background.png",
"title": {
"text": "Your daily bonus!",
"fontColor": "#FFFFFF",
"fontSize": 20,
"fontWeight": "normal"
}
}'
{
"id": "68cbf09967ba5ab776c2745e",
"offerUiType": "PopUp",
"offerUiSubType": "DailyBonus",
"name": "Daily Bonus Design",
"externalId": "daily-bonus-design",
"backgroundImageUrl": "https://media.appcharge.com/media/65cb7861ec8924a6b69a0f59/background.png",
"title": {
"text": "Your daily bonus!",
"fontColor": "#FFFFFF",
"fontSize": 20,
"fontWeight": "normal"
}
}
curl -X POST \
'https://api.appcharge.com/components/v1/offer-design' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
--data '{
"offerUiType": "PopUp",
"offerUiSubType": "DailyBonus",
"name": "Daily Bonus Design",
"externalId": "daily-bonus-design",
"backgroundImageUrl": "https://media.appcharge.com/media/65cb7861ec8924a6b69a0f59/background.png",
"title": {
"text": "Your daily bonus!",
"fontColor": "#FFFFFF",
"fontSize": 20,
"fontWeight": "normal"
}
}'
{
"id": "68cbf09967ba5ab776c2745e",
"offerUiType": "PopUp",
"offerUiSubType": "DailyBonus",
"name": "Daily Bonus Design",
"externalId": "daily-bonus-design",
"backgroundImageUrl": "https://media.appcharge.com/media/65cb7861ec8924a6b69a0f59/background.png",
"title": {
"text": "Your daily bonus!",
"fontColor": "#FFFFFF",
"fontSize": 20,
"fontWeight": "normal"
}
}
Headers
Publisher token, as displayed in the Publisher Dashboard.
Body
Creates a daily bonus design.
Type of offer design.
PopUp "PopUp"
Offer design name.
"Daily Bonus Design"
Design ID that you define.
"daily-bonus-design"
Background image URL in PNG or JPEG format.
For uploaded files, this is the Appcharge-hosted CDN URL. For external image URLs, this is the original image URL served from the provided URL. External image URLs are saved and used as-is, and Appcharge doesn't download, copy, upload, or host them. Images must remain available at the provided URLs.
We recommend uploading image files instead of using external URLs when possible.
"https://media.appcharge.com/media/65cb7861ec8924a6b69a0f59/background.png"
Show child attributes
Show child attributes
Popup design subtype.
DailyBonus "DailyBonus"
Response
Offer design created successfully.
Design ID.
"68cbf09967ba5ab776c2745e"
Type of offer design.
PopUp "PopUp"
Offer design name.
"Daily Bonus Design Updated"
Design ID that you defined.
"daily-bonus-design"
Background image URL. For uploaded files, this is the Appcharge-hosted CDN URL. For external image URLs, this is the original image URL served from the provided URL.
"https://media.appcharge.com/media/65cb7861ec8924a6b69a0f59/background-v2.png"
Show child attributes
Show child attributes
Original background image URL when the design uses an external image URL. This URL is used as provided to serve the image.
"https://cdn.example.com/assets/background.png"
Popup design subtype.
DailyBonus "DailyBonus"
Was this page helpful?
