Update a certificate
/workspaces/{workspace}/certificates/{certificate}Changes only the fields you send. Status is worked out again from the dates on every save.
Authentication
Send an API token as a bearer token. This endpoint needs a read and write token, made by an editor, admin or owner. Create one in My account → API tokens; see scopes and roles.
Authorization: Bearer 42|bynh_pat_•••••••HeaderPath parameters
workspacestringRequiredYour workspace slug, e.g. dokan.
certificateintegerRequiredCertificate id.
Request body
application/jsonnamestringmax 120The standard. Error: “Enter the standard, like ISO/IEC 27001:2022.”
issuerstringmax 120Who issued it. Error: “Enter who issued it, like BSI Group.”
descriptionstring, nullablemax 160Short line under the name.
certificate_numberstring, nullablemax 64Number on the certificate.
issued_onstring, nullableYYYY-MM-DDOn or before today.
valid_untilstring, nullableYYYY-MM-DDOn or after issued_on.
scopestring, nullablemax 2000Scope statement.
in_auditbooleantrue marks it in audit; false returns it to date-derived status.
notestring, nullablemax 120Short note.
show_badgebooleanShow a badge on the trust center.
allow_downloadbooleanLet visitors download it.
share_soa_after_ndabooleanShare the SoA after an NDA.
publishbooleantrue publishes it (sets published_at if not already), false unpublishes. Compared with
=== true, so send a JSON boolean, not "1".
Response
200 OKThe updated certificate with documents.
idintegerCertificate id.namestringThe standard, e.g. ISO/IEC 27001:2022.descriptionstring|nullShort line under the name.issuerstringWho issued it.certificate_numberstring|nullThe number on the certificate.statusenumDerived from valid_until on every save: expired after the date, renewing within 30 days of it, otherwise valid. in_audit is the only status you set (with in_audit: true). One ofvalid,renewing,in_audit,expired.issued_onstring|nullYYYY-MM-DD.valid_untilstring|nullYYYY-MM-DD.days_leftinteger|nullDays from today to valid_until; negative once expired.scopestring|nullScope statement.notestring|nullShort note.show_badgebooleanShow a badge on the trust center.allow_downloadbooleanLet visitors download the certificate.share_soa_after_ndabooleanShare the Statement of Applicability after an NDA.publishedbooleanShown on the trust center.documentsarray<Document>Present on show, create and update only (omitted from the list). Newest first on show.
Rate limits
This endpoint counts toward your general limit of 120 requests a minute. When you go over, wait for the number of seconds in Retry-After.
Errors
Every error is JSON with a message. See Errors.