Step 2 Update users role (passkey)
curl --request POST \
--url https://api.byzantine.fi/v1/submit/update-users-role \
--header 'Content-Type: application/json' \
--header 'X-Pubkey: <x-pubkey>' \
--header 'X-Pubkey, X-Timestamp, X-Signature: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"signedBody": {
"type": "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM",
"timestampMs": "<string>",
"organizationId": "d107c1e1-766a-4091-802c-de61a3973e91",
"parameters": {
"threshold": 1,
"userIds": [
"<string>"
]
}
},
"webAuthnStamp": "<string>"
}
'import requests
url = "https://api.byzantine.fi/v1/submit/update-users-role"
payload = {
"signedBody": {
"type": "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM",
"timestampMs": "<string>",
"organizationId": "d107c1e1-766a-4091-802c-de61a3973e91",
"parameters": {
"threshold": 1,
"userIds": ["<string>"]
}
},
"webAuthnStamp": "<string>"
}
headers = {
"X-Pubkey": "<x-pubkey>",
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>",
"X-Pubkey, X-Timestamp, X-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Pubkey': '<x-pubkey>',
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>',
'X-Pubkey, X-Timestamp, X-Signature': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
signedBody: {
type: 'ACTIVITY_TYPE_UPDATE_ROOT_QUORUM',
timestampMs: '<string>',
organizationId: 'd107c1e1-766a-4091-802c-de61a3973e91',
parameters: {threshold: 1, userIds: ['<string>']}
},
webAuthnStamp: '<string>'
})
};
fetch('https://api.byzantine.fi/v1/submit/update-users-role', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"accountId": "550e8400-e29b-41d4-a716-446655440000",
"threshold": 1,
"rootUserIds": [
"<string>"
]
}User roles
Step 2 Update users role (passkey)
Update the roles of users of a Byzantine account. This action must be approved by the current root quorum.
POST
/
v1
/
submit
/
update-users-role
Step 2 Update users role (passkey)
curl --request POST \
--url https://api.byzantine.fi/v1/submit/update-users-role \
--header 'Content-Type: application/json' \
--header 'X-Pubkey: <x-pubkey>' \
--header 'X-Pubkey, X-Timestamp, X-Signature: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"signedBody": {
"type": "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM",
"timestampMs": "<string>",
"organizationId": "d107c1e1-766a-4091-802c-de61a3973e91",
"parameters": {
"threshold": 1,
"userIds": [
"<string>"
]
}
},
"webAuthnStamp": "<string>"
}
'import requests
url = "https://api.byzantine.fi/v1/submit/update-users-role"
payload = {
"signedBody": {
"type": "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM",
"timestampMs": "<string>",
"organizationId": "d107c1e1-766a-4091-802c-de61a3973e91",
"parameters": {
"threshold": 1,
"userIds": ["<string>"]
}
},
"webAuthnStamp": "<string>"
}
headers = {
"X-Pubkey": "<x-pubkey>",
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>",
"X-Pubkey, X-Timestamp, X-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Pubkey': '<x-pubkey>',
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>',
'X-Pubkey, X-Timestamp, X-Signature': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
signedBody: {
type: 'ACTIVITY_TYPE_UPDATE_ROOT_QUORUM',
timestampMs: '<string>',
organizationId: 'd107c1e1-766a-4091-802c-de61a3973e91',
parameters: {threshold: 1, userIds: ['<string>']}
},
webAuthnStamp: '<string>'
})
};
fetch('https://api.byzantine.fi/v1/submit/update-users-role', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"accountId": "550e8400-e29b-41d4-a716-446655440000",
"threshold": 1,
"rootUserIds": [
"<string>"
]
}Headers
Body
application/json
Body to update the root quorum of a Byzantine account
Cryptographically passkey signed (stamped). For more info, see authentication methods.
Response
Users' roles updated successfully
Response body when users' roles are successfully updated

