Update a certificate request.
Key information:
The certificate request's state determines the set of allowed changes.
Our CDN is not a certificate authority. We have partnered with the Digicert certificate authority to fulfill your certificate requests.
Update a request for a certificate through the following endpoint:
HTTP Method | Request URI |
---|---|
PATCH |
https://api.vdms.io/sec/cps/v2.0/certificates/Certificate Request ID |
Define the following variable when submitting the above request:
VariableA variable represents a value that must be replaced. A variable consists of either a URL segment (e.g., "0001" in /0001/) or a query string value (e.g., "3" in mediaTypes=3). | Description |
---|---|
Required |
Replace this variable with the system-defined ID for the desired certificate request. Use the Get All Certificate Requests endpoint to retrieve a list of certificate requests and their system-defined ID. |
This endpointIdentifies a request's connection point to our REST API service. only takes advantage of common request headers.
Unlike requests to api.edgecast.com, requests to our API gateway (api.vdms.io) require an access token (OAuth).
Pass the following request body parameters:
Name | Data Type | Description |
---|---|---|
auto_renew |
Boolean |
Determines whether this certificate will automatically renew prior to its expiration date. |
certificate_label |
String |
Sets the certificate's name. |
dcv_method |
String |
Determines the method through which your control over the domains associated with this certificate will be validated. Use the Get Domain Control Validation Types endpoint to retrieve a list of validation methods. |
description |
String |
Sets the certificate's description. |
domains |
Array of objects |
Contains the certificate's domain(s). You cannot add, modify, or delete the domain(s) associated with a certificate request still being processed by the Certificate Authority (CA). |
The domains array describes each domain through the following properties:
Name | Data Type | Description |
---|---|---|
is_common_name |
Boolean |
Determines whether this domain corresponds to the certificate's common name. You may only designate a single domain as the common name. |
name |
String |
Sets the domain name. Example: cdn.example.com
|
The response to the above request includes an HTTP status code, response headers, and a response body.
A status code indicates whether the request was successfully performed.
The response for this endpoint only includes standard HTTP response headers.
The response body for a successful request (200 OK) contains the following response elements:
Name | Data Type | Description |
---|---|---|
@id |
String |
Indicates the relative path to an endpoint through which you may retrieve the current certificate request. |
@type |
String |
Returns Certificate. |
auto_renew |
Boolean |
Indicates whether this certificate will automatically renew prior to its expiration date. |
certificate_authority |
String |
Returns DigiCert. |
certificate_label |
String |
Indicates the certificate's name. |
created |
String |
Indicates the timestamp at which this request for a certificate was initially submitted. Syntax: YYYY-MM-DDThh:mm:ss.ffffffZ
|
created_by |
Object |
Describes the user that submitted this certificate request. |
dcv_method |
String |
Indicates the method through which your control over the domains associated with this certificate will be validated. Use the Get Domain Control Validation Types endpoint to retrieve a list of validation methods. |
Array |
Contains a list of delivery platforms to which this certificate has been deployed. |
|
description |
String |
Indicates the certificate's description. |
domains |
Array of objects |
Contains the certificate's domain(s). |
expiration_date |
String |
Indicates the timestamp at which this certificate will expire. Syntax: YYYY-MM-DDThh:mm:ss.ffffffZ
If the Certificate Authority (CA) is still processing the certificate request, then this property returns the following timestamp: 0001-01-01T00:00:00Z
|
id |
Integer |
Indicates the system-defined ID assigned to this certificate. |
last_modified |
String |
Indicates the timestamp at which this request for a certificate was last modified. Syntax: YYYY-MM-DDThh:mm:ss.ffffffZ
|
modified_by |
Object |
Describes the user that last modified this certificate request. |
Object |
Describes the certificate request's organization. |
|
request_type |
String |
Returns Enterprise. |
thumbprint |
String |
Indicates the certificate's thumbprint (aka fingerprint). If the CA is still processing the certificate request, then this property returns a null value. |
validation_type |
String |
Indicates the certificate's level of validation. Use the Get Certificate Validation Levels endpoint to retrieve a list of validation levels. |
workflow_error_message |
|
Returns a null value. |
The domains array describes each domain through the following properties:
Name | Data Type | Description |
---|---|---|
active_date |
String |
Returns a null value. |
created |
String |
Indicates the timestamp at which this domain was added to the certificate request. Syntax: YYYY-MM-DDThh:mm:ss.ffffffZ
|
id |
Integer |
Indicates the system-defined ID assigned to this domain. |
is_common_name |
Boolean |
Indicates whether this domain corresponds to the certificate's common name. |
name |
String |
Indicates the domain name. Example: cdn.example.com
|
status |
String |
Indicates status information for this domain. Use the Get Domain Statuses endpoint to find out the different statuses that this property may return. |
The organization object describes the certificate request's organization through the following properties:
Name | Data Type | Description |
---|---|---|
Array of objects |
Contains additional contacts that are also responsible for validating certificates for this organization. |
|
city |
String |
Indicates the organization's city. |
company_address |
String |
Indicates the organization's address. |
company_address2 |
String |
Indicates the organization's secondary address information (e.g., suite number). |
company_name |
String |
Indicates the organization's name. |
contact_email |
String |
Indicates the email address for the individual responsible for validating certificates for this organization. |
contact_first_name |
String |
Indicates the first name for the individual responsible for validating certificates for this organization. |
contact_last_name |
String |
Indicates the last name for the individual responsible for validating certificates for this organization. |
contact_phone |
String |
Indicates the phone number for the individual responsible for validating certificates for this organization. |
contact_title |
String |
Indicates the title of the individual responsible for validating certificates for this organization. |
country |
String |
Indicates the organization's country by its ISO 3166 country code. Use the Get Country Codes endpoint to retrieve a list of countries and their codes. |
id |
Integer |
Identifies an organization by its system-defined ID. |
organizational_unit |
String |
Indicates the name of the organizational unit responsible for validating certificates for this organization. |
state |
String |
Indicates the organization's state by its abbreviation. |
zip_code |
String |
Indicates the organization's zip code. |
The additional_contacts array describes each of the organization's additional contacts through the following properties:
Name | Data Type | Description |
---|---|---|
contact_type |
String |
Returns EVApprover |
|
String |
Indicates the email address for the current contact. |
first_name |
String |
Indicates the first name for the current contact. |
id |
Integer |
Reserved for future use. |
last_name |
String |
Indicates the last name for the current contact. |
phone |
String |
Indicates the phone number for the current contact. |
title |
String |
Indicates the title of the current contact. |
The deployments array describes each delivery region to which this certificate has been deployed through the following properties:
Name | Data Type | Description |
---|---|---|
delivery_region |
String |
Indicates the name of the delivery region to which this certificate was deployed. |
platform |
String |
Identifies the delivery platform associated with this certificate. |
hex_url |
String |
Indicates the CDN domain through which requests for this certificate will be routed. |
The response body for an unsuccessful request may contain an error element that provides additional information.
A sample JSON request is shown below.
PATCH https://api.vdms.io/sec/cps/v2.0/certificates/11604 HTTP/1.1
Accept: application/json
Content-Type: application/json
Host: api.vdms.io
{ "certificate_label": "cdn.example.com", "description": "DV certificate for cdn.example.com" }
A sample JSON response is shown below.
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Date: Thu, 15 Apr 2021 12:00:00 GMT
Content-Length: 1053
{ "@id": "/v2.0/certificates/11614", "@type": "Certificate", "domains": [ { "name": "cdn-example-com", "status": "ProvisioningInitiated", "active_date": null, "is_common_name": true, "created": "2021-12-17T19:29:07.294329Z", "id": 23079 } ], "certificate_authority": "DigiCert", "validation_type": "DV", "organization": null, "dcv_method": "DnsTxtToken", "certificate_label": "cdn example domain", "description": "DV certificate for cdn.example.com", "last_modified": "2021-12-17T19:29:07.294329Z", "created": "2021-12-17T19:29:07.294329Z", "expiration_date": "0001-01-01T00:00:00Z", "request_type": "Enterprise", "thumbprint": null, "deployments": [], "created_by": { "user_id": null, "portal_type_id": null, "identity_id": null, "identity_type": null }, "modified_by": null, "workflow_error_message": null, "auto_renew": true, "id": 11614 }