{"_id":"57690861af28ad0e006092e0","editedParams2":true,"__v":1,"user":"56caca84245b841300806def","category":{"_id":"56d51f2873dcd20b00fb87bb","pages":["56d5205e73dcd20b00fb87bc"],"project":"56cacb1bc675f50b00a4b619","version":"56cacb1cc675f50b00a4b61c","__v":1,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-03-01T04:48:40.957Z","from_sync":false,"order":9,"slug":"gamification-rest-api","title":"Gamification REST API"},"editedParams":true,"parentDoc":null,"project":"56cacb1bc675f50b00a4b619","version":{"_id":"56cacb1cc675f50b00a4b61c","project":"56cacb1bc675f50b00a4b619","__v":14,"createdAt":"2016-02-22T08:47:24.528Z","releaseDate":"2016-02-22T08:47:24.528Z","categories":["56cacb1dc675f50b00a4b61d","56cc10aaca43550b0028125a","56cc10b7b4cbcf0b004a5df9","56cc1bb2272aa4130002ccd2","56cc5834b4cbcf0b004a5f8b","56cda18bface161300dae13b","56d51f2873dcd20b00fb87bb","56fbe0610023171700b96105","57658310c176520e00ea9076","5772bdd48c48e00e00503638","577c1dfe87acf617003c3fcd","579525172979790e00771a15","582b4661cdfdc125000c8684","586365cedfe6cc3700a7be63"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-06-21T09:26:57.875Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"method":"put","results":{"codes":[{"code":"{\n  \"code\": 200,\n  \"status\": \"success\",\n  \"results\": {\n    \"action_id_1\": {\n      \"total\": number_of_achievements,\n      \"last_acheived\": timestamp\n    },\n    \"action_id_2\": {\n      \"total\": number_of_achievements,\n      \"last_acheived\": timestamp\n    }\n    ....\n  }\n}","language":"json","status":200,"name":""},{"name":"","code":"{\n  \"code\": err_code,\n  \"staus\":\"fail\",\n  \"message\": err_message\n}","language":"json","status":400}]},"settings":"","examples":{"codes":[]},"auth":"required","params":[{"_id":"56cc58ea8fa8b01b00b81ea3","ref":"","in":"body","required":true,"desc":"Customer ID","default":"","type":"string","name":"customer_id"},{"_id":"570cdf8253e7f824002a644c","ref":"","in":"body","required":true,"desc":"Action ID","default":"","type":"string","name":"action_id"},{"_id":"57746ba95b96cf0e00558e5e","ref":"","in":"body","required":false,"desc":"Category ID","default":"","type":"string","name":"id"}],"url":"/v:version/services/gamification/achievements"},"isReference":true,"order":2,"body":"","excerpt":"","slug":"add-achievements","type":"endpoint","title":"Add Achievements"}

putAdd Achievements


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

customer_id:
required
string
Customer ID
action_id:
required
string
Action ID
id:
string
Category ID

Result Format


User Information

Try It Out

put
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}