Re-bind the application to another GitHub credential
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/repository-credential"
payload = { "credential_name": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({credential_name: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/applications/{application_id}/repository-credential', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PUT \
--url https://platform.ankra.app/api/v1/org/applications/{application_id}/repository-credential \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"credential_name": "<string>"
}
'{
"credential_name": "<string>",
"message": "<string>",
"resolved": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}applications
Re-bind the application to another GitHub credential
Move the application onto a GitHub credential of the organisation whose App installation reaches its repository. The credential must exist (400 otherwise); whether its installation reaches the repository is reported in the answer rather than refused. A browser session twin is mounted at the same path without the /api/v1 prefix (cookie authentication).
PUT
/
api
/
v1
/
org
/
applications
/
{application_id}
/
repository-credential
Re-bind the application to another GitHub credential
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/repository-credential"
payload = { "credential_name": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({credential_name: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/applications/{application_id}/repository-credential', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PUT \
--url https://platform.ankra.app/api/v1/org/applications/{application_id}/repository-credential \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"credential_name": "<string>"
}
'{
"credential_name": "<string>",
"message": "<string>",
"resolved": 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
Body
application/json
A GitHub credential of this organisation to bind the application to.