Revoke the application's registry robot
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/registry-robot"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/applications/{application_id}/registry-robot', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/api/v1/org/applications/{application_id}/registry-robot \
--header 'Authorization: Bearer <token>'{
"changed": true,
"message": "<string>",
"needs_app_admin": true,
"robot": {
"created_at": "<string>",
"credential_name": "<string>",
"declared": true,
"host": "<string>",
"manageable": true,
"message": "<string>",
"password_secret_name": "<string>",
"project": "<string>",
"provisioned": true,
"robot_name": "<string>",
"rotated_at": "<string>",
"stale": true,
"username_secret_name": "<string>"
},
"secrets_written": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}applications
Revoke the application's registry robot
Delete the push robot Ankra minted for this application from its registry, drop the credential holding its login, and forget the record. The repository’s Actions secrets are left holding a login that no longer works, which is the point of a revoke. A browser session twin is mounted at the same path without the /api/v1 prefix (cookie authentication).
DELETE
/
api
/
v1
/
org
/
applications
/
{application_id}
/
registry-robot
Revoke the application's registry robot
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/registry-robot"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/applications/{application_id}/registry-robot', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/api/v1/org/applications/{application_id}/registry-robot \
--header 'Authorization: Bearer <token>'{
"changed": true,
"message": "<string>",
"needs_app_admin": true,
"robot": {
"created_at": "<string>",
"credential_name": "<string>",
"declared": true,
"host": "<string>",
"manageable": true,
"message": "<string>",
"password_secret_name": "<string>",
"project": "<string>",
"provisioned": true,
"robot_name": "<string>",
"rotated_at": "<string>",
"stale": true,
"username_secret_name": "<string>"
},
"secrets_written": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Response
Successful Response
A robot was minted, rotated or revoked in this call.
GitHub refused the secrets write because the Ankra GitHub App lacks the Secrets permission.
Show child attributes
Show child attributes
The repository's Actions secrets now carry the robot login.