PUT reward/{rewardId}

Related

Create or update a reward.

Example

PUT /api/v1/reward/3ad449b9-ee9f-4558-a547-e85943d99e8f HTTP/1.1
Authorization: Bearer ...
Content-Type: application/json

{
  "name": "Test 01 Reward A",
  "description": "Get this by achieving Test 01",
  "kind": "emblem",
  "data": {
    "image": "protected/us-west-2:5f40aa7b-817d-4a9d-a92f-5cbfad3e6dc2/ec9fbd31-d78a-44ac-8566-3500cd1953bc.jpg",
    "color": "#00ff00"
  },
  "achievementKey": "test-01"
}
----------------------------------------
HTTP/1.1 204 No Content

Security

Authentication is required and access is limited to admins.

URL Parameters

NameDescriptionValue
rewardIdthe ID of the reward to create or update, as a GUID with dashesstring

Query Parameters

NONE

Request Body

NameDescriptionValue
namethe name of the rewardstring
descriptionthe description of the rewardstring
kinda type discriminator for this rewardstring
datatype-specific data for this rewardobject
achievementKeythe key of the achievement with which this reward is associatedstring

Response

Successful responses are code 204. Error responses are standard.

Response Body

NONE