{"__v":0,"_id":"5745695ca488e817005417d7","category":{"__v":7,"_id":"56052058e266000d008971c7","pages":["5605215df6b86e0d00284ab5","56052995d5c3900d0003e83d","56056243e266000d0089720e","56056496f6b86e0d00284b09","56094876c5cff70d007d016a","5609493a31beb60d001b65d9","56094af131beb60d001b65db"],"project":"547cd7662eaee50800ed1089","version":"547cd7662eaee50800ed108c","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-09-25T10:22:16.805Z","from_sync":false,"order":8,"slug":"public-api","title":"Public API"},"editedParams":true,"editedParams2":true,"parentDoc":null,"project":"547cd7662eaee50800ed1089","user":"573dd709b3f88f0e00dcae1f","version":{"__v":9,"_id":"547cd7662eaee50800ed108c","project":"547cd7662eaee50800ed1089","createdAt":"2014-12-01T21:02:30.851Z","releaseDate":"2014-12-01T21:02:30.851Z","categories":["547cd7672eaee50800ed108d","54c8f8ae0174630d00efa874","54c8f8bd7a11f60d0022a832","54c8f8c60174630d00efa876","54c8f8f10174630d00efa877","55155826bc466623002afe83","551558324c7c1e39003735a0","56052058e266000d008971c7","57909a453b845d0e006a37d5"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-05-25T08:59:08.039Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"name":"","code":"curl -H \"Authorization:Token b98f08d1c44cd5259dd70dc295e61187af45bffd23036f909919e608bdd8a592\" -i -X POST \"https://public-api.devmate.com/v2/licenses/id154489775644odr/reset_first_activation\"","language":"curl"}]},"results":{"codes":[{"status":200,"language":"json","code":"HTTP/1.1 200 OK\nServer: nginx\n\n\n","name":"License reset"},{"status":404,"language":"json","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","name":"Wrong customer ID"},{"code":"HTTP/1.1 405 Method Not Allowed\nServer: nginx\n","language":"text","status":405},{"code":"{\n    \"errors\": [\n        {\n            \"title\": \"Unauthorized\"\n        }\n    ]\n}\n","language":"text","status":401}]},"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":5,"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":"post","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 }}