Replace repository workspace profiles
import requests
url = "https://platform.ankra.app/api/v1/org/pipeline-repositories/{repository_id}/workspace-profiles"
payload = { "profiles": {} }
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({profiles: {}})
};
fetch('https://platform.ankra.app/api/v1/org/pipeline-repositories/{repository_id}/workspace-profiles', 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/pipeline-repositories/{repository_id}/workspace-profiles \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"profiles": {}
}'{
"profiles": {},
"repository_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Workspaces
Replace repository workspace profiles
Bearer PAT authentication; RBAC permission workspaces.manage. Replaces the repository’s workspace profiles; null or {} clears them. Every profile is validated as a workspace would be rendered from it. A running workspace picks the change up at its owner’s next bring-up, which replaces it.
PUT
/
api
/
v1
/
org
/
pipeline-repositories
/
{repository_id}
/
workspace-profiles
Replace repository workspace profiles
import requests
url = "https://platform.ankra.app/api/v1/org/pipeline-repositories/{repository_id}/workspace-profiles"
payload = { "profiles": {} }
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({profiles: {}})
};
fetch('https://platform.ankra.app/api/v1/org/pipeline-repositories/{repository_id}/workspace-profiles', 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/pipeline-repositories/{repository_id}/workspace-profiles \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"profiles": {}
}'{
"profiles": {},
"repository_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
PAT organisation override.
Path Parameters
The connected pipeline repository.
Body
application/json
The profiles keyed by kind; null or {} clears them.
Show child attributes
Show child attributes