I cannot understand why I am refused access to the debug mode.
curl -s -X POST -H "Content-Type: application/json" -H "Travis-API-Version: 3" -H "Authorization: token **************" -H "Accept: application/json" https://api.travis-ci.com/job/409019778/restart
–> works, answer is:
{
"@type": "pending",
"job": {
"@type": "job",
"@href": "/job/409019778",
"@representation": "minimal",
"id": 409019778
},
"state_change": "restart",
"resource_type": "job"
}
curl -s -X POST -H "Content-Type: application/json" -H "Travis-API-Version: 3" -H "Authorization: token *********************" -H "Accept: application/json" https://api.travis-ci.com/job/409019778/debug
–> fails, answer is:
{
"@type": "error",
"error_type": "wrong_credentials",
"error_message": "access denied"
}
How can my credentials be fine for relaunching a job but not enough to launch a debug?