curl --request PATCH \
--url https://app.infisical.com/api/v1/pki/ca/{caId} \
--header 'Content-Type: application/json' \
--data '{
"status": "active"
}'
{
"ca": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"parentCaId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "<string>",
"type": "<string>",
"status": "<string>",
"friendlyName": "<string>",
"organization": "<string>",
"ou": "<string>",
"country": "<string>",
"province": "<string>",
"locality": "<string>",
"commonName": "<string>",
"dn": "<string>",
"serialNumber": "<string>",
"maxPathLength": 123,
"keyAlgorithm": "<string>",
"notBefore": "2023-11-07T05:31:56Z",
"notAfter": "2023-11-07T05:31:56Z"
}
}
Update CA
curl --request PATCH \
--url https://app.infisical.com/api/v1/pki/ca/{caId} \
--header 'Content-Type: application/json' \
--data '{
"status": "active"
}'
{
"ca": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"parentCaId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "<string>",
"type": "<string>",
"status": "<string>",
"friendlyName": "<string>",
"organization": "<string>",
"ou": "<string>",
"country": "<string>",
"province": "<string>",
"locality": "<string>",
"commonName": "<string>",
"dn": "<string>",
"serialNumber": "<string>",
"maxPathLength": 123,
"keyAlgorithm": "<string>",
"notBefore": "2023-11-07T05:31:56Z",
"notAfter": "2023-11-07T05:31:56Z"
}
}
The ID of the CA to update
Default Response
The response is of type object
.
Was this page helpful?