POST
/manager/challenges
curl \
--request POST 'https://domain.tld/api/v2/manager/challenges' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"id":42,"start_date":"2025-05-04T09:42:00Z","end_date":"2025-05-04T09:42:00Z","active":true,"challengeable_type":"string","challengeable":{"order_attribution":"string","product_sku":"string"},"points":42,"proportional_points":true,"titles":[{"lang":"en_GB","content":"Hello"}],"images":[{"lang":"en_GB","content":"Hello"}],"descriptions":[{"lang":"en_GB","content":"Hello"}]}'
Request examples
{
"id": 42,
"start_date": "2025-05-04T09:42:00Z",
"end_date": "2025-05-04T09:42:00Z",
"active": true,
"challengeable_type": "string",
"challengeable": {
"order_attribution": "string",
"product_sku": "string"
},
"points": 42,
"proportional_points": true,
"titles": [
{
"lang": "en_GB",
"content": "Hello"
}
],
"images": [
{
"lang": "en_GB",
"content": "Hello"
}
],
"descriptions": [
{
"lang": "en_GB",
"content": "Hello"
}
]
}
Response examples (201)
{
"id": 42,
"start_date": "2025-05-04T09:42:00Z",
"end_date": "2025-05-04T09:42:00Z",
"active": true,
"challengeable_type": "string",
"challengeable": {
"order_attribution": "string",
"product_sku": "string"
},
"points": 42,
"proportional_points": true,
"titles": [
{
"id_i18n_content": 42,
"lang": "en_GB",
"content": "Hello"
}
],
"images": [
{
"id_i18n_content": 42,
"lang": "en_GB",
"content": "Hello"
}
],
"descriptions": [
{
"id_i18n_content": 42,
"lang": "en_GB",
"content": "Hello"
}
]
}
Response examples (401)
{
"message": "Unauthorized."
}
Response examples (422)
{
"message": "field is required! (and 3 more error)",
"errors": {
"field": [
"Error message details here"
],
"additionalProperty1": [
"Error message details here"
],
"additionalProperty2": [
"Error message details here"
]
}
}