Update a credential
curl --request PATCH \
--url https://api.byzantine.fi/v1/integrator/credentials/{pubkey} \
--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 '
{
"accessScope": "read_write",
"active": true,
"label": "<string>"
}
'import requests
url = "https://api.byzantine.fi/v1/integrator/credentials/{pubkey}"
payload = {
"accessScope": "read_write",
"active": True,
"label": "<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.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
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({accessScope: 'read_write', active: true, label: '<string>'})
};
fetch('https://api.byzantine.fi/v1/integrator/credentials/{pubkey}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"pubkey": "<string>",
"integratorId": "550e8400-e29b-41d4-a716-446655440000",
"accessScope": "read_write",
"active": true,
"createdAt": "2023-11-07T05:31:56Z",
"label": "<string>"
}Integrator key management
Update a credential
Partially updates a credential owned by the authenticated integrator: label, active, and
accessScope can each be changed independently; omitted fields are left untouched. The
credential signing the current request can only change its own label, not its own active
status or access scope, so an integrator always keeps one working read-write credential.
Requires a read-write credential.
PATCH
/
v1
/
integrator
/
credentials
/
{pubkey}
Update a credential
curl --request PATCH \
--url https://api.byzantine.fi/v1/integrator/credentials/{pubkey} \
--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 '
{
"accessScope": "read_write",
"active": true,
"label": "<string>"
}
'import requests
url = "https://api.byzantine.fi/v1/integrator/credentials/{pubkey}"
payload = {
"accessScope": "read_write",
"active": True,
"label": "<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.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
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({accessScope: 'read_write', active: true, label: '<string>'})
};
fetch('https://api.byzantine.fi/v1/integrator/credentials/{pubkey}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"pubkey": "<string>",
"integratorId": "550e8400-e29b-41d4-a716-446655440000",
"accessScope": "read_write",
"active": true,
"createdAt": "2023-11-07T05:31:56Z",
"label": "<string>"
}Headers
Body
application/json
Response
Credential updated

