Reconcile a Cloud workspace organisation and membership
import requests
url = "https://platform.ankra.app/api/v1/cloud/workspaces/sync"
payload = {
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 2,
"name": "<string>",
"valid_until": "2023-11-07T05:31:56Z",
"members": [
{
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "[email protected]",
"token_hash": "<string>"
}
]
}
headers = {
"X-Ankra-Cloud-Token": "<x-ankra-cloud-token>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Ankra-Cloud-Token': '<x-ankra-cloud-token>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
workspace_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
revision: 2,
name: '<string>',
valid_until: '2023-11-07T05:31:56Z',
members: [
{
user_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
name: '<string>',
email: '[email protected]',
token_hash: '<string>'
}
]
})
};
fetch('https://platform.ankra.app/api/v1/cloud/workspaces/sync', 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/cloud/workspaces/sync \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Ankra-Cloud-Token: <x-ankra-cloud-token>' \
--data '
{
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 2,
"name": "<string>",
"valid_until": "2023-11-07T05:31:56Z",
"members": [
{
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "[email protected]",
"token_hash": "<string>"
}
]
}
'{
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123,
"members": {}
}Organisation IAM
Reconcile a Cloud workspace organisation and membership
Dedicated Cloud machine authentication. Target organisations are created once or adopted through server-managed configuration. Complete monotonic snapshots own member names, roles, and revocations; no organisation ID is accepted from the caller.
POST
/
api
/
v1
/
cloud
/
workspaces
/
sync
Reconcile a Cloud workspace organisation and membership
import requests
url = "https://platform.ankra.app/api/v1/cloud/workspaces/sync"
payload = {
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 2,
"name": "<string>",
"valid_until": "2023-11-07T05:31:56Z",
"members": [
{
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "[email protected]",
"token_hash": "<string>"
}
]
}
headers = {
"X-Ankra-Cloud-Token": "<x-ankra-cloud-token>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Ankra-Cloud-Token': '<x-ankra-cloud-token>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
workspace_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
revision: 2,
name: '<string>',
valid_until: '2023-11-07T05:31:56Z',
members: [
{
user_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
name: '<string>',
email: '[email protected]',
token_hash: '<string>'
}
]
})
};
fetch('https://platform.ankra.app/api/v1/cloud/workspaces/sync', 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/cloud/workspaces/sync \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Ankra-Cloud-Token: <x-ankra-cloud-token>' \
--data '
{
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 2,
"name": "<string>",
"valid_until": "2023-11-07T05:31:56Z",
"members": [
{
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "[email protected]",
"token_hash": "<string>"
}
]
}
'{
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123,
"members": {}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Body
application/json