master_tokens
destroy
Changed onDestroy a master token and all of its read token children.
NOTE: Default tokens have their token value rotated when used with this API. All private repositories must have default master tokens.
Example request:
curl -X DELETE https://packagecloud.io/api/v1/repos/username/reponame/master_tokens/1
delete/api/v1/repos/{user_id}/{repo}/master_tokens/{id}
Request
- Base URLhttps://packagecloud.io
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
user_idstring required
The username to which the repo belongs.
repostring required
The name of the repo.
idinteger required
The id of the master token to be destroyed.
Response
Successful response
Changes
- breaking
removed the media type
application/jsonfor the response with the status
- breaking