Reject a stack profile suggestion
import requests
url = "https://platform.ankra.app/api/v1/org/stack-profiles/{profile_id}/suggestions/{suggestion_id}/reject"
payload = { "note": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({note: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/stack-profiles/{profile_id}/suggestions/{suggestion_id}/reject', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/stack-profiles/{profile_id}/suggestions/{suggestion_id}/reject \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"note": "<string>"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"proposer_organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"proposer_organisation_name": "<string>",
"proposer_organisation_slug": "<string>",
"created_by_user_id": "<string>",
"title": "<string>",
"description": "<string>",
"base_version": 123,
"status": "open",
"resolution_note": "<string>",
"resolved_by_user_id": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"applied_version": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"is_proposer": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Stack Profiles
Reject a stack profile suggestion
Closes an open suggestion on a profile your organisation owns without publishing it, optionally with a note for the proposer.
POST
/
api
/
v1
/
org
/
stack-profiles
/
{profile_id}
/
suggestions
/
{suggestion_id}
/
reject
Reject a stack profile suggestion
import requests
url = "https://platform.ankra.app/api/v1/org/stack-profiles/{profile_id}/suggestions/{suggestion_id}/reject"
payload = { "note": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({note: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/stack-profiles/{profile_id}/suggestions/{suggestion_id}/reject', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/stack-profiles/{profile_id}/suggestions/{suggestion_id}/reject \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"note": "<string>"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"proposer_organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"proposer_organisation_name": "<string>",
"proposer_organisation_slug": "<string>",
"created_by_user_id": "<string>",
"title": "<string>",
"description": "<string>",
"base_version": 123,
"status": "open",
"resolution_note": "<string>",
"resolved_by_user_id": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"applied_version": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"is_proposer": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Optional note back to the proposer.
Response
Suggestion rejected
A change to a profile proposed by another organisation.
Available options:
open, approved, rejected, withdrawn True when the caller's organisation submitted it.