PUT repository/certificates/{certificateId}

Updates the current Certificate alias.

Remarks

C4M Error Code returned:

  • null

    Certificate alias has been updated successfully.

  • CertificateNotFound

    Certificate not found in the environment.

HTTP Status returned:
  • 403 - Forbidden

    The authenticated user doesn't have permission to change the resource.

Request Information

Parameters

NameDescriptionAdditional information
certificateId
Certificate identifier.

Define this parameter in the request URI.

certificateDto
Updated Certificate data.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "alias": "MyCertificate"
}

Response Information

Operation result.

Response body formats

application/json

Sample:
{
  "alias": "MyCertificate",
  "creationDate": "2020-05-15T17:03:27.6960553-03:00",
  "expirationDate": "2020-05-15T17:03:27.6960553-03:00",
  "hasPrivateKey": true,
  "id": "157d89eb-af57-4277-95dd-965daef85b2d",
  "issuer": "sample string 5",
  "publicKeyAlgorithm": "sample string 6",
  "publicKeySize": 7,
  "serialNumber": "sample string 8",
  "signatureAlgorithm": "sample string 9",
  "subject": "sample string 10",
  "thumbprint": "sample string 11",
  "version": 12
}

text/json

Sample:
{
  "alias": "MyCertificate",
  "creationDate": "2020-05-15T17:03:27.6960553-03:00",
  "expirationDate": "2020-05-15T17:03:27.6960553-03:00",
  "hasPrivateKey": true,
  "id": "54abb20b-b2a1-4449-b0f6-c664d16a1bde",
  "issuer": "sample string 5",
  "publicKeyAlgorithm": "sample string 6",
  "publicKeySize": 7,
  "serialNumber": "sample string 8",
  "signatureAlgorithm": "sample string 9",
  "subject": "sample string 10",
  "thumbprint": "sample string 11",
  "version": 12
}