curl --request POST \
--url https://api.openai.com/v1/organization/projects/{project_id}/certificates/activate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"certificate_ids": [
"cert_abc"
]
}'
{
"data": [
{
"object": "certificate",
"id": "<string>",
"name": "<string>",
"created_at": 123,
"certificate_details": {
"valid_at": 123,
"expires_at": 123,
"content": "<string>"
},
"active": true
}
],
"first_id": "cert_abc",
"last_id": "cert_abc",
"has_more": true,
"object": "list"
}
Activate certificates at the project level. You can atomically and idempotently activate up to 10 certificates at a time.
curl --request POST \
--url https://api.openai.com/v1/organization/projects/{project_id}/certificates/activate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"certificate_ids": [
"cert_abc"
]
}'
{
"data": [
{
"object": "certificate",
"id": "<string>",
"name": "<string>",
"created_at": 123,
"certificate_details": {
"valid_at": 123,
"expires_at": 123,
"content": "<string>"
},
"active": true
}
],
"first_id": "cert_abc",
"last_id": "cert_abc",
"has_more": true,
"object": "list"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The certificate activation payload.
The body is of type object
.
Certificates activated successfully.
The response is of type object
.
Was this page helpful?