POST
/
organization
/
certificates
/
{certificate_id}
Modify certificate
curl --request POST \
  --url https://api.openai.com/v1/organization/certificates/{certificate_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>"
}'
{
  "object": "certificate",
  "id": "<string>",
  "name": "<string>",
  "created_at": 123,
  "certificate_details": {
    "valid_at": 123,
    "expires_at": 123,
    "content": "<string>"
  },
  "active": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

The certificate modification payload.

name
string
required

The updated name for the certificate

Response

200 - application/json

Certificate modified successfully.

Represents an individual certificate uploaded to the organization.

object
enum<string>
required

The object type.

  • If creating, updating, or getting a specific certificate, the object type is certificate.
  • If listing, activating, or deactivating certificates for the organization, the object type is organization.certificate.
  • If listing, activating, or deactivating certificates for a project, the object type is organization.project.certificate.
Available options:
certificate,
organization.certificate,
organization.project.certificate
id
string
required

The identifier, which can be referenced in API endpoints

name
string
required

The name of the certificate.

created_at
integer
required

The Unix timestamp (in seconds) of when the certificate was uploaded.

certificate_details
object
required
active
boolean

Whether the certificate is currently active at the specified scope. Not returned when getting details for a specific certificate.