Activate challenge
curl --request PUT \
--url https://{host}/challenge/v3/cards/{id}/activate \
--header 'Authorization: <api-key>' \
--header 'memberId: <memberid>'import requests
url = "https://{host}/challenge/v3/cards/{id}/activate"
headers = {
"memberId": "<memberid>",
"Authorization": "<api-key>"
}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {memberId: '<memberid>', Authorization: '<api-key>'}};
fetch('https://{host}/challenge/v3/cards/{id}/activate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{host}/challenge/v3/cards/{id}/activate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"memberId: <memberid>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{host}/challenge/v3/cards/{id}/activate"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("memberId", "<memberid>")
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://{host}/challenge/v3/cards/{id}/activate")
.header("memberId", "<memberid>")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/challenge/v3/cards/{id}/activate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["memberId"] = '<memberid>'
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"hideInList": true,
"isActive": true,
"currentProgress": 123,
"cardsActivatedCount": 123,
"closedAt": "2023-11-07T05:31:56Z",
"cardId": "<string>",
"currentTier": 123,
"cardDetails": {
"campaignId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"activityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"requiredProgress": 123,
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"imageUrl": "<string>",
"details": "<string>",
"termsAndConditions": "<string>",
"activationLimit": 123,
"backgroundImageUrl": "<string>",
"chainIds": [
"<string>"
],
"storeIds": [
"<string>"
],
"rewardType": "Coupon",
"progressCalculationType": "ProductCount",
"isSinglePurchase": true,
"completionLabel": "<string>",
"completedCardsLabel": "<string>",
"completedCardsCount": 123,
"progressLabel": "<string>",
"unitOfMeasure": "Item",
"couponRewards": [
{
"offerId": "<string>"
}
],
"bonusRewards": [
{
"bonusAmount": 123
}
],
"customRewards": [
{
"name": "<string>"
}
],
"tags": [
"<string>"
]
}
}{
"name": "<string>",
"message": "<string>",
"details": null
}{
"name": "<string>",
"message": "<string>",
"details": null
}Activate challenge
PUT
/
v3
/
cards
/
{id}
/
activate
Activate challenge
curl --request PUT \
--url https://{host}/challenge/v3/cards/{id}/activate \
--header 'Authorization: <api-key>' \
--header 'memberId: <memberid>'import requests
url = "https://{host}/challenge/v3/cards/{id}/activate"
headers = {
"memberId": "<memberid>",
"Authorization": "<api-key>"
}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {memberId: '<memberid>', Authorization: '<api-key>'}};
fetch('https://{host}/challenge/v3/cards/{id}/activate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{host}/challenge/v3/cards/{id}/activate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"memberId: <memberid>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{host}/challenge/v3/cards/{id}/activate"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("memberId", "<memberid>")
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://{host}/challenge/v3/cards/{id}/activate")
.header("memberId", "<memberid>")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/challenge/v3/cards/{id}/activate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["memberId"] = '<memberid>'
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"hideInList": true,
"isActive": true,
"currentProgress": 123,
"cardsActivatedCount": 123,
"closedAt": "2023-11-07T05:31:56Z",
"cardId": "<string>",
"currentTier": 123,
"cardDetails": {
"campaignId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"activityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"requiredProgress": 123,
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"imageUrl": "<string>",
"details": "<string>",
"termsAndConditions": "<string>",
"activationLimit": 123,
"backgroundImageUrl": "<string>",
"chainIds": [
"<string>"
],
"storeIds": [
"<string>"
],
"rewardType": "Coupon",
"progressCalculationType": "ProductCount",
"isSinglePurchase": true,
"completionLabel": "<string>",
"completedCardsLabel": "<string>",
"completedCardsCount": 123,
"progressLabel": "<string>",
"unitOfMeasure": "Item",
"couponRewards": [
{
"offerId": "<string>"
}
],
"bonusRewards": [
{
"bonusAmount": 123
}
],
"customRewards": [
{
"name": "<string>"
}
],
"tags": [
"<string>"
]
}
}{
"name": "<string>",
"message": "<string>",
"details": null
}{
"name": "<string>",
"message": "<string>",
"details": null
}Authorizations
Response
OK
Last modified on August 10, 2026