{"__v":0,"_id":"571140c68b22bc0e00330584","category":{"__v":0,"_id":"5705b12221cfed0e00e8c580","project":"56abbf55f25f160d00e17f4e","version":"56abbf55f25f160d00e17f51","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-04-07T01:00:18.230Z","from_sync":false,"order":4,"slug":"server-side-api","title":"Server Side API"},"editedParams":true,"editedParams2":true,"parentDoc":null,"project":"56abbf55f25f160d00e17f4e","user":"56abbec30b9e0b0d00616274","version":{"__v":12,"_id":"56abbf55f25f160d00e17f51","project":"56abbf55f25f160d00e17f4e","createdAt":"2016-01-29T19:36:53.665Z","releaseDate":"2016-01-29T19:36:53.665Z","categories":["56abbf56f25f160d00e17f52","56abca6bf9757e0d007c6650","56acddfa0ab3c00d00ce3332","56af65da9d32e30d0006d30f","56af66cab34d210d003d9ad0","56af6afcd21e9c0d00b628d1","56af6d6ecc4cbd0d00ce2c88","5705b12221cfed0e00e8c580","570a5676ade45d0e00c1ad33","570d7d25d1e4b82000d9e385","570eac3c3160d10e0041df0e","575709000fd6a3200010dded"],"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-04-15T19:28:06.985Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"5707e879cfc0992200c2a419","results":{"codes":[{"name":"Destroy a Shared Link","code":"{\n  \"success\": true\n}","language":"json","status":200}]},"examples":{"codes":[{"code":"curl -XPOST -H \"Content-type: application/json\" -d '{\n  \"api_key\": \"GAMEAPIKEY\",\n  \"game_auth_token\": \"GAMEAUTHTOKEN\",\n  \"user_id\": 32\n}' 'https://api.kongregate.com/api/shared_links/MySharedLink/destroy.json'","language":"curl","name":"Destroy a Shared Link"}]},"auth":"required","params":[{"_id":"571127ebade1470e008463e5","ref":"","in":"body","required":true,"desc":"Your private API key","default":"","type":"string","name":"api_key"},{"_id":"571127ebade1470e008463e4","ref":"","in":"body","required":true,"desc":"The game_auth_token for the game/user combination","default":"","type":"string","name":"game_auth_token"},{"_id":"571127ebade1470e008463e3","ref":"","in":"body","required":true,"desc":"User id of the user","default":"","type":"int","name":"user_id"},{"_id":"571127ebade1470e008463e2","ref":"","in":"path","required":true,"desc":"Unique identifier of the link in your system","default":"","type":"string","name":"id"}],"url":"/shared_links/:id/destroy.json"},"isReference":true,"order":15,"body":"If you wish to destroy a shared link (for example, a raid is completed prior to the end time, or the shared gold has been redeemed the maximum number of times), you can do this with a call to `destroy`. Simply include the ID in the URL after `shared_links` and it will be removed from the listing. Please note that validation of links is still your responsibility - destroying a shared link simply removes it from our listing.","excerpt":"Destroy a shared link","slug":"server-api-destroy-shared-link","type":"post","title":"Shared Links - Destroy"}

postShared Links - Destroy

Destroy a shared link

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

id:
required
string
Unique identifier of the link in your system

Body Params

api_key:
required
string
Your private API key
game_auth_token:
required
string
The game_auth_token for the game/user combination
user_id:
required
integer
User id of the user

Examples


Result Format


Documentation

If you wish to destroy a shared link (for example, a raid is completed prior to the end time, or the shared gold has been redeemed the maximum number of times), you can do this with a call to `destroy`. Simply include the ID in the URL after `shared_links` and it will be removed from the listing. Please note that validation of links is still your responsibility - destroying a shared link simply removes it from our listing.

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 }}