Upsert a Key
Create or Update Key using ID or name.
Request body
Example request
{
"id": "d958f66b-8e99-44d2-b0b4-edd5bbf24658",
"jwk": "{\"alg\":\"RSA\", \"kid\": \"42\", ...}",
"kid": "42",
"name": "a-key",
"pem": {
"private_key": "-----BEGIN",
"public_key": "-----BEGIN"
},
"set": {
"id": "b86b331c-dcd0-4b3e-97ce-47c5a9543031"
}
}Response
Successfully upserted Key
Example response
{
"id": "d958f66b-8e99-44d2-b0b4-edd5bbf24658",
"jwk": "{\"alg\":\"RSA\", \"kid\": \"42\", ...}",
"kid": "42",
"name": "a-key",
"pem": {
"private_key": "-----BEGIN",
"public_key": "-----BEGIN"
},
"set": {
"id": "b86b331c-dcd0-4b3e-97ce-47c5a9543031"
}
}Changes
Changed in 5 of the 52 revisions of this API.1320
- ▲
the response property
pem/private_keybecame nullable for the status200response-property-became-nullable
- ▲
the response property
pem/public_keybecame nullable for the status200response-property-became-nullable
- ○
the request property
pem/private_keybecame nullablerequest-property-became-nullable
- ○
the request property
pem/public_keybecame nullablerequest-property-became-nullable
This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
the response property
tagsbecame nullable for the status200response-property-became-nullable
- ○
the request property
tagsbecame nullablerequest-property-became-nullable
- ▲
- ▲
the response property
created_atbecame nullable for the status200response-property-became-nullable
- ▲
the response property
updated_atbecame nullable for the status200response-property-became-nullable
- ○
added the new optional request property
x5tnew-optional-request-property
- ○
the request optional property
created_atbecame not read-onlyrequest-optional-property-became-not-read-only
- ○
the request optional property
updated_atbecame not read-onlyrequest-optional-property-became-not-read-only
- ○
the request property
created_atbecame nullablerequest-property-became-nullable
- ○
the request property
updated_atbecame nullablerequest-property-became-nullable
- ○
added the optional property
x5tto the response with the200statusresponse-optional-property-added
- ○
the response optional property
created_atbecame not read-only for the status200response-optional-property-became-not-read-only
- ○
the response optional property
updated_atbecame not read-only for the status200response-optional-property-became-not-read-only
This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
the request property
tagsbecame not nullablerequest-property-became-not-nullable
- ▲
- ▲
the request property
kidbecame requiredrequest-property-became-required
- ▲
the response property
idbecame nullable for the status200response-property-became-nullable
- ▲
the response property
jwkbecame nullable for the status200response-property-became-nullable
- ▲
the response property
namebecame nullable for the status200response-property-became-nullable
- ▲
the response property
pembecame nullable for the status200response-property-became-nullable
- ▲
the response property
setbecame nullable for the status200response-property-became-nullable
- ▲
the response property
tagsbecame nullable for the status200response-property-became-nullable
- ○
the request optional property
idbecame not read-onlyrequest-optional-property-became-not-read-only
- ○
the request property
idbecame nullablerequest-property-became-nullable
- ○
the request property
jwkbecame nullablerequest-property-became-nullable
- ○
the request property
namebecame nullablerequest-property-became-nullable
- ○
the request property
pembecame nullablerequest-property-became-nullable
- ○
the request property
setbecame nullablerequest-property-became-nullable
- ○
the request property
tagsbecame nullablerequest-property-became-nullable
- ○
the response optional property
idbecame not read-only for the status200response-optional-property-became-not-read-only
- ○
the response property
kidbecame required for the status200response-property-became-required
This revision also has 88 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲