Promotions

Endpoint to return all promoted rewards for a program using the current JWT

get
Authorizations
X-API-KeystringRequired
Responses
200

Successful response

application/json
get
/v2/admin/promotions
200

Successful response

Endpoint to create a promotion.

post
Authorizations
X-API-KeystringRequired
Body
start_datenumberRequired

When the promotion becomes active, in epoch seconds.

titlestringRequired

Title of the promotion.

descriptionstringOptional

Description of the reward.

end_datenumberOptional

When the promotion is no longer active, in epoch seconds.

image_urlstringOptional

URL of the promotion image.

Responses
200

Successful response

application/json
post
/v2/admin/promotions
200

Successful response

Endpoint to update a promotion.

patch
Authorizations
X-API-KeystringRequired
Path parameters
promotion_idnumberRequired
Body
start_datenumberRequired

When the promotion becomes active, in epoch seconds.

titlestringRequired

Title of the promotion.

descriptionstringOptional

Description of the reward.

end_datenumberOptional

When the promotion is no longer active, in epoch seconds.

image_urlstringOptional

URL of the promotion image.

Responses
200

Successful response

application/json
patch
/v2/admin/promotions/{promotion_id}
200

Successful response