Create key quorum update intent
curl --request PATCH \
--url https://api.privy.io/v1/intents/key_quorums/{key_quorum_id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'privy-app-id: <privy-app-id>' \
--data '
{
"public_keys": [
"<string>"
],
"authorization_threshold": 123,
"display_name": "<string>",
"user_ids": [
"<string>"
],
"key_quorum_ids": [
"<string>"
]
}
'HttpResponse<String> response = Unirest.patch("https://api.privy.io/v1/intents/key_quorums/{key_quorum_id}")
.header("privy-app-id", "<privy-app-id>")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"public_keys\": [\n \"<string>\"\n ],\n \"authorization_threshold\": 123,\n \"display_name\": \"<string>\",\n \"user_ids\": [\n \"<string>\"\n ],\n \"key_quorum_ids\": [\n \"<string>\"\n ]\n}")
.asString();const options = {
method: 'PATCH',
headers: {
'privy-app-id': '<privy-app-id>',
Authorization: 'Basic <encoded-value>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
public_keys: ['<string>'],
authorization_threshold: 123,
display_name: '<string>',
user_ids: ['<string>'],
key_quorum_ids: ['<string>']
})
};
fetch('https://api.privy.io/v1/intents/key_quorums/{key_quorum_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.privy.io/v1/intents/key_quorums/{key_quorum_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'public_keys' => [
'<string>'
],
'authorization_threshold' => 123,
'display_name' => '<string>',
'user_ids' => [
'<string>'
],
'key_quorum_ids' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json",
"privy-app-id: <privy-app-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.privy.io/v1/intents/key_quorums/{key_quorum_id}"
payload := strings.NewReader("{\n \"public_keys\": [\n \"<string>\"\n ],\n \"authorization_threshold\": 123,\n \"display_name\": \"<string>\",\n \"user_ids\": [\n \"<string>\"\n ],\n \"key_quorum_ids\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("privy-app-id", "<privy-app-id>")
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"intent_id": "<string>",
"created_by_display_name": "<string>",
"created_at": 123,
"resource_id": "<string>",
"authorization_details": [
{
"members": [
{
"type": "user",
"user_id": "<string>",
"signed_at": 123
}
],
"threshold": 123,
"display_name": "<string>"
}
],
"status": "pending",
"custom_expiry": true,
"expires_at": 123,
"intent_type": "KEY_QUORUM",
"request_details": {
"method": "PATCH",
"url": "<string>",
"body": {
"public_keys": [
"<string>"
],
"authorization_threshold": 123,
"display_name": "<string>",
"user_ids": [
"<string>"
],
"key_quorum_ids": [
"<string>"
]
}
},
"created_by_id": "<string>",
"rejected_at": 123,
"dismissed_at": 123,
"dismissal_reason": "<string>",
"current_resource_data": {
"id": "tb54eps4z44ed0jepousxi4n",
"display_name": "Prod key quorum",
"authorization_threshold": 1,
"authorization_keys": [
{
"public_key": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEx4aoeD72yykviK+f/ckqE2CItVIG\n1rCnvC3/XZ1HgpOcMEMialRmTrqIK4oZlYd1RfxU3za/C9yjhboIuoPD3g==",
"display_name": null
},
{
"public_key": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAErzZtQr/bMIh3Y8f9ZqseB9i/AfjQ\nhu+agbNqXcJy/TfoNqvc/Y3Mh7gIZ8ZLXQEykycx4mYSpqrxp1lBKqsZDQ==",
"display_name": null
}
],
"user_ids": null
},
"action_result": {
"status_code": 123,
"executed_at": 123,
"response_body": {
"id": "tb54eps4z44ed0jepousxi4n",
"display_name": "Prod key quorum",
"authorization_threshold": 1,
"authorization_keys": [
{
"public_key": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEx4aoeD72yykviK+f/ckqE2CItVIG\n1rCnvC3/XZ1HgpOcMEMialRmTrqIK4oZlYd1RfxU3za/C9yjhboIuoPD3g==",
"display_name": null
},
{
"public_key": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAErzZtQr/bMIh3Y8f9ZqseB9i/AfjQ\nhu+agbNqXcJy/TfoNqvc/Y3Mh7gIZ8ZLXQEykycx4mYSpqrxp1lBKqsZDQ==",
"display_name": null
}
],
"user_ids": null
},
"prior_state": {
"id": "tb54eps4z44ed0jepousxi4n",
"display_name": "Prod key quorum",
"authorization_threshold": 1,
"authorization_keys": [
{
"public_key": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEx4aoeD72yykviK+f/ckqE2CItVIG\n1rCnvC3/XZ1HgpOcMEMialRmTrqIK4oZlYd1RfxU3za/C9yjhboIuoPD3g==",
"display_name": null
},
{
"public_key": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAErzZtQr/bMIh3Y8f9ZqseB9i/AfjQ\nhu+agbNqXcJy/TfoNqvc/Y3Mh7gIZ8ZLXQEykycx4mYSpqrxp1lBKqsZDQ==",
"display_name": null
}
],
"user_ids": null
},
"authorized_by_display_name": "<string>",
"authorized_by_id": "<string>"
}
}Resource update intents
Update key quorum
Create an intent to update a key quorum. The intent must be authorized by the key quorum members before it can be executed.
PATCH
/
v1
/
intents
/
key_quorums
/
{key_quorum_id}
Create key quorum update intent
curl --request PATCH \
--url https://api.privy.io/v1/intents/key_quorums/{key_quorum_id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'privy-app-id: <privy-app-id>' \
--data '
{
"public_keys": [
"<string>"
],
"authorization_threshold": 123,
"display_name": "<string>",
"user_ids": [
"<string>"
],
"key_quorum_ids": [
"<string>"
]
}
'HttpResponse<String> response = Unirest.patch("https://api.privy.io/v1/intents/key_quorums/{key_quorum_id}")
.header("privy-app-id", "<privy-app-id>")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"public_keys\": [\n \"<string>\"\n ],\n \"authorization_threshold\": 123,\n \"display_name\": \"<string>\",\n \"user_ids\": [\n \"<string>\"\n ],\n \"key_quorum_ids\": [\n \"<string>\"\n ]\n}")
.asString();const options = {
method: 'PATCH',
headers: {
'privy-app-id': '<privy-app-id>',
Authorization: 'Basic <encoded-value>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
public_keys: ['<string>'],
authorization_threshold: 123,
display_name: '<string>',
user_ids: ['<string>'],
key_quorum_ids: ['<string>']
})
};
fetch('https://api.privy.io/v1/intents/key_quorums/{key_quorum_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.privy.io/v1/intents/key_quorums/{key_quorum_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'public_keys' => [
'<string>'
],
'authorization_threshold' => 123,
'display_name' => '<string>',
'user_ids' => [
'<string>'
],
'key_quorum_ids' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json",
"privy-app-id: <privy-app-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.privy.io/v1/intents/key_quorums/{key_quorum_id}"
payload := strings.NewReader("{\n \"public_keys\": [\n \"<string>\"\n ],\n \"authorization_threshold\": 123,\n \"display_name\": \"<string>\",\n \"user_ids\": [\n \"<string>\"\n ],\n \"key_quorum_ids\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("privy-app-id", "<privy-app-id>")
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"intent_id": "<string>",
"created_by_display_name": "<string>",
"created_at": 123,
"resource_id": "<string>",
"authorization_details": [
{
"members": [
{
"type": "user",
"user_id": "<string>",
"signed_at": 123
}
],
"threshold": 123,
"display_name": "<string>"
}
],
"status": "pending",
"custom_expiry": true,
"expires_at": 123,
"intent_type": "KEY_QUORUM",
"request_details": {
"method": "PATCH",
"url": "<string>",
"body": {
"public_keys": [
"<string>"
],
"authorization_threshold": 123,
"display_name": "<string>",
"user_ids": [
"<string>"
],
"key_quorum_ids": [
"<string>"
]
}
},
"created_by_id": "<string>",
"rejected_at": 123,
"dismissed_at": 123,
"dismissal_reason": "<string>",
"current_resource_data": {
"id": "tb54eps4z44ed0jepousxi4n",
"display_name": "Prod key quorum",
"authorization_threshold": 1,
"authorization_keys": [
{
"public_key": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEx4aoeD72yykviK+f/ckqE2CItVIG\n1rCnvC3/XZ1HgpOcMEMialRmTrqIK4oZlYd1RfxU3za/C9yjhboIuoPD3g==",
"display_name": null
},
{
"public_key": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAErzZtQr/bMIh3Y8f9ZqseB9i/AfjQ\nhu+agbNqXcJy/TfoNqvc/Y3Mh7gIZ8ZLXQEykycx4mYSpqrxp1lBKqsZDQ==",
"display_name": null
}
],
"user_ids": null
},
"action_result": {
"status_code": 123,
"executed_at": 123,
"response_body": {
"id": "tb54eps4z44ed0jepousxi4n",
"display_name": "Prod key quorum",
"authorization_threshold": 1,
"authorization_keys": [
{
"public_key": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEx4aoeD72yykviK+f/ckqE2CItVIG\n1rCnvC3/XZ1HgpOcMEMialRmTrqIK4oZlYd1RfxU3za/C9yjhboIuoPD3g==",
"display_name": null
},
{
"public_key": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAErzZtQr/bMIh3Y8f9ZqseB9i/AfjQ\nhu+agbNqXcJy/TfoNqvc/Y3Mh7gIZ8ZLXQEykycx4mYSpqrxp1lBKqsZDQ==",
"display_name": null
}
],
"user_ids": null
},
"prior_state": {
"id": "tb54eps4z44ed0jepousxi4n",
"display_name": "Prod key quorum",
"authorization_threshold": 1,
"authorization_keys": [
{
"public_key": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEx4aoeD72yykviK+f/ckqE2CItVIG\n1rCnvC3/XZ1HgpOcMEMialRmTrqIK4oZlYd1RfxU3za/C9yjhboIuoPD3g==",
"display_name": null
},
{
"public_key": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAErzZtQr/bMIh3Y8f9ZqseB9i/AfjQ\nhu+agbNqXcJy/TfoNqvc/Y3Mh7gIZ8ZLXQEykycx4mYSpqrxp1lBKqsZDQ==",
"display_name": null
}
],
"user_ids": null
},
"authorized_by_display_name": "<string>",
"authorized_by_id": "<string>"
}
}Authorizations
Headers
Body
application/json
Request input for updating an existing key quorum. At least one field must be provided.
Response
200 - application/json
Created key quorum update intent.
Response for a key quorum update intent
Current state of the key quorum before any changes. If undefined, the resource was deleted and no longer exists
Show child attributes
Show child attributes
Example:
{
"id": "tb54eps4z44ed0jepousxi4n",
"display_name": "Prod key quorum",
"authorization_threshold": 1,
"authorization_keys": [
{
"public_key": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEx4aoeD72yykviK+f/ckqE2CItVIG\n1rCnvC3/XZ1HgpOcMEMialRmTrqIK4oZlYd1RfxU3za/C9yjhboIuoPD3g==",
"display_name": null
},
{
"public_key": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAErzZtQr/bMIh3Y8f9ZqseB9i/AfjQ\nhu+agbNqXcJy/TfoNqvc/Y3Mh7gIZ8ZLXQEykycx4mYSpqrxp1lBKqsZDQ==",
"display_name": null
}
],
"user_ids": null
}
Was this page helpful?

