Upload a reward’s codes

Add personalized codes to generate new instances of a reward. This is suitable for rewards that are not autogenerated and are limited.

Error cases

Reward external_id does not exist (404)

{
    "error_key": "",
    "error": "",
    "error_description": "reward_test not found"
}

Reward is auto-generated (400)

{
    "error_key": "",
    "error": "",
    "error_description": "reward must not have auto_generated option"
}

Missing codes data in payload (400)

{
    "status": 400,
    "errors": [
        {
            "error_key": "codes",
            "error": "is_blank",
            "error_description": "This value should not be blank."
        },
        {
            "error_key": "codes",
            "error": "is_blank",
            "error_description": "wrong_type"
        }
    ]
}
Language
Authorization
Bearer
JWT
URL
Click Try It! to start a request and see the response here!