Modify certificate

POSThttps:/api.openai.com/v1/organization/certificates/{certificate_id}

Modify a certificate. Note that only the name can be modified.

Request body

  • name
    string
    Required
    The updated name for the certificate

Response

The updated Certificate object.

Example request
1
curl -X POST https://api.openai.com/v1/organization/certificates/cert_abc \
2
-H "Authorization: Bearer $OPENAI_ADMIN_KEY" \
3
-H "Content-Type: application/json" \
4
-d '{
5
"name": "Renamed Certificate"
6
}'
Example response
1
{
2
"object": "certificate",
3
"id": "cert_abc",
4
"name": "Renamed Certificate",
5
"created_at": 1234567,
6
"certificate_details": {
7
"valid_at": 12345667,
8
"expires_at": 12345678
9
}
10
}
Built with