Skip to main content
POST

Headers

x-publisher-token
string
required

Publisher token, as displayed in the Publisher Dashboard.

Body

application/json

Creates a progress bar design.

offerUiType
enum<string>
required

Offer design type.

Available options:
ProgressBar
Example:

"ProgressBar"

name
string
required

Offer design name.

Example:

"Classic Progress Bar Design"

externalId
string
required

External identifier for the offer design.

Example:

"progress-bar-design-classic"

backgroundOpacity
number
required

Opacity of the progress bar frame's backgroundColor (0 to 100). If you use backgroundImageUrl for the frame background, this value has no effect but must still be passed.

Example:

100

frameRadius
number
required

Radius of the progress bar frame.

Example:

8

progressBar
object
required

Progress bar configuration.

backgroundImageUrl
string<url>

Background image URL of the progress bar frame. Required if backgroundColor isn't provided.

Example:

"https://media.appcharge.com/defaults/background.png"

backgroundColor
object

Background color of the progress bar frame. Required if backgroundImageUrl isn't provided.

To use a solid color, pass the same value for colorOne and colorTwo.

headerImageUrl
string<url>

Header image URL.

Example:

"https://cdn.example.com/header.png"

title
object

Progress bar title.

subtitle
object

Progress bar subtitle.

Response

Offer design created successfully.

id
string

Offer Design ID.

Example:

"6909e7684f11e8957afd5d53"

offerUiType
enum<string>

Offer design type.

Available options:
ProgressBar
Example:

"ProgressBar"

name
string

Offer design name.

Example:

"Classic Progress Bar Design"

externalId
string

External identifier for the offer design.

Example:

"progress-bar-design-classic"

backgroundImageUrl
string<url>

Background image URL of the progress bar frame.

Example:

"https://media.appcharge.com/defaults/background.png"

backgroundColor
object

Background color of the progress bar frame. Required if backgroundImageUrl isn't provided.

To use a solid color, pass the same value for colorOne and colorTwo.

backgroundOpacity
number

Opacity of the progress bar frame's backgroundColor (0 to 100).

Example:

100

frameRadius
number

Radius of the progress bar frame.

Example:

8

headerImageUrl
string<url>

Header image URL.

Example:

"https://cdn.example.com/header.png"

title
object

Progress bar title.

subtitle
object

Progress bar subtitle.

progressBar
object

Progress bar configuration.