{"_id":"591f17b521d2ff0f00cf5a79","category":{"_id":"591f17af21d2ff0f00cf5a48","__v":0,"project":"547cd7662eaee50800ed1089","version":"591f17ae21d2ff0f00cf5a3f","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-09-25T10:22:16.805Z","from_sync":false,"order":8,"slug":"public-api","title":"Public API"},"parentDoc":null,"version":{"_id":"591f17ae21d2ff0f00cf5a3f","__v":1,"project":"547cd7662eaee50800ed1089","createdAt":"2017-05-19T16:05:02.775Z","releaseDate":"2017-05-19T16:05:02.775Z","categories":["591f17af21d2ff0f00cf5a40","591f17af21d2ff0f00cf5a41","591f17af21d2ff0f00cf5a42","591f17af21d2ff0f00cf5a43","591f17af21d2ff0f00cf5a44","591f17af21d2ff0f00cf5a45","591f17af21d2ff0f00cf5a46","591f17af21d2ff0f00cf5a47","591f17af21d2ff0f00cf5a48"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.1","version":"1.0.1"},"user":"573dd709b3f88f0e00dcae1f","__v":0,"project":"547cd7662eaee50800ed1089","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-05-25T08:59:08.039Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"language":"curl","code":"curl -H \"Authorization:Token b98f08d1c44cd5259dd70dc295e61187af45bffd23036f909919e608bdd8a592\" -i -X POST \"https://public-api.devmate.com/v2/licenses/id154489775644odr/reset_first_activation\"","name":""}]},"method":"post","results":{"codes":[{"status":200,"name":"License reset","code":"HTTP/1.1 200 OK\nServer: nginx\n\n\n","language":"json"},{"name":"Wrong customer ID","code":"HTTP/1.1 404 Not Found\nServer: nginx\n\n{\"errors\":[{\"title\":\"Server error.\",\"detail\":\"Resource with provided key \\\"id15448977564odr\\\" does not exist.\"}]}\n","language":"json","status":404},{"status":405,"language":"text","code":"HTTP/1.1 405 Method Not Allowed\nServer: nginx\n"},{"status":401,"language":"text","code":"{\n    \"errors\": [\n        {\n            \"title\": \"Unauthorized\"\n        }\n    ]\n}\n"}]},"settings":"","auth":"required","params":[{"_id":"560a8c36f6994b0d0023bc3f","ref":"","in":"body","required":false,"desc":"The activaiton number to reset","default":"","type":"string","name":"<Activation_Number>"}],"url":"/licenses/<activation_number>/reset_first_activation"},"isReference":false,"order":53,"body":"This method is used to reset the oldest activation record for the activation number assigned to the specific customer. There's no need to pass the Customer ID or any details other than his activation number.\n\n````\nhttps://public-api.devmate.com/v2/licenses/id154489775644odr/reset_first_activation\n````\nThis request will reset the oldest activation record for the specified activation number.\n\nOriginal license with all records: \n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/KMHXLJvQdWNaKfbqywWR_Activation_reset1.png\",\n        \"Activation_reset1.png\",\n        \"418\",\n        \"636\",\n        \"\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nUpdated number without the oldest record:\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/E2a0fsyKT7O6LfmqQwpg_Activation_reset2.png\",\n        \"Activation_reset2.png\",\n        \"415\",\n        \"585\",\n        \"#4f5458\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n#Response Codes\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"`200`\",\n    \"0-1\": \"Reset was successful\",\n    \"1-0\": \"`404`\",\n    \"1-1\": \"Activation code not found\",\n    \"2-0\": \"`405`\",\n    \"2-1\": \"Authorization failed\",\n    \"3-0\": \"`500`\",\n    \"3-1\": \"Server error\"\n  },\n  \"cols\": 2,\n  \"rows\": 4\n}\n[/block]","excerpt":"","slug":"reset-activaiton-number","type":"endpoint","title":"Reset Activation Number"}

postReset Activation Number


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

Activation_Number:
string
The activaiton number to reset

Examples


Result Format


Documentation

This method is used to reset the oldest activation record for the activation number assigned to the specific customer. There's no need to pass the Customer ID or any details other than his activation number. ```` https://public-api.devmate.com/v2/licenses/id154489775644odr/reset_first_activation ```` This request will reset the oldest activation record for the specified activation number. Original license with all records: [block:image] { "images": [ { "image": [ "https://files.readme.io/KMHXLJvQdWNaKfbqywWR_Activation_reset1.png", "Activation_reset1.png", "418", "636", "", "" ] } ] } [/block] Updated number without the oldest record: [block:image] { "images": [ { "image": [ "https://files.readme.io/E2a0fsyKT7O6LfmqQwpg_Activation_reset2.png", "Activation_reset2.png", "415", "585", "#4f5458", "" ] } ] } [/block] #Response Codes [block:parameters] { "data": { "0-0": "`200`", "0-1": "Reset was successful", "1-0": "`404`", "1-1": "Activation code not found", "2-0": "`405`", "2-1": "Authorization failed", "3-0": "`500`", "3-1": "Server error" }, "cols": 2, "rows": 4 } [/block]

User Information

Try It Out

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