I’ve taken the token from my profile. I have push access to the repository. The repository is public. When I hit the endpoint for restart
curl -s -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Travis-API-Version: 3" \
-H "Authorization: token ****" \
https://api.travis-ci.org/job/{jobID}/restart
it starts the job but when I try to run the job in debug mode
curl -s -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Travis-API-Version: 3" \
-H "Authorization: token ****" \
https://api.travis-ci.org/job/{jobID}/debug
it returns with
{
"@type": "error",
"error_type": "wrong_credentials",
"error_message": "access denied"
}
Any help on this would be appreciated.