Update profile details

POST https://caas.digicert.com/automationws/v1/profile/updateProfile
Use this endpoint to update an automation profile.

For more information, see Automation profiles.

Example requests and responses

cURL

curl --location --request POST 'https://caas.digicert.com/automationws/v1/profile/updateProfile' \
--header 'X-DC-DEVKEY: {{api_key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "accountId": "5153184",
    "id": 813,
    "userId": 7286246,
    "name": "testprofile",
    "profileState": "ACTIVE",
    "isDefault": false,
    "ctLogOption": false,
    "productType": "SSL_EV_SECURESITE",
    "productName": "Secure Site EV SSL",
    "organizationId": 516680,
    "organizationName": "Cert Testing Inc.",
    "profileType": "SENSOR",
    "divisionId": 677793,
    "emailAddresses": "cc.admin@cert-testing.com",
    "signatureHash": "sha256",
    "keySizeAndAlgorithm": "RSA 2048",
    "contacts": [
        {
            "contactId": 980122,
            "contactType": "org_contact"
        }
    ],
    "validityPeriod": "1Y",
    "orderCoverageLength": "2Y",
    "autoRenewSettings": {
        "daysBeforeExpiry": 30,
        "isAutoReplace": true
    },
    "forceAutoRenewSetting": false
}'

200 OK

{
    "error": null,
    "data": "Profile updated successfully"
}

Request parameters

NameReq/OptTypeDescription
accountIdrequiredstringAccount ID.
idrequiredintegerAutomation profile ID.
userIdoptionalintegerUser ID.
namerequiredstringName of the profile.
profileStateoptionalstringStatus of the automation profile.
Allowed values: ACTIVE, ACTION_NEEDED.
isDefaultoptionalbooleanIf true, sets the profile to be the default.
ctLogOptionoptionalbooleanUse this option to enable CT logging for issued SSL certificates.
productTyperequiredstringType of the product.
Allowed values: See Glossary – Product identifiers.
productNameoptionalstringName of the product.
Allowed values: See Glossary – Product identifiers.
organizationIdoptionalintegerThe ID of an existing organization to associate with the profile. To get the ID of organizations in your account, use the endpoint List organizations.
organizationNameoptionalstringThe name of the organization.
profileTyperequiredstringType of profile.
Allowed values: ACME or SENSOR
divisionIdrequiredstringDivision ID.
emailAddressesoptionalstringEmail address associated with the profile.
signatureHashoptionalstringHash type ID for the algorithm used to sign the certificate.
Allowed values: See Glossary – Hash types.
keySizeAndAlgorithmoptionalstringThe key size and algorithm used to sign the certificate.
Allowed values: RSA 2048, RSA 4096, RSA 8192, ECC P256, ECC P384
contactsoptionalarrayObject container for automation profile contacts.
.. contactIdoptionalintegerID of existing user or contact for the account. This can be omitted if you are adding a new contact. To get the IDs for users in your account, use the endpoint User info.
.. contactTypeoptionalstringType of contact to add to the profile.
Allowed values: org_contact, technical_contact, ev_approver
.. contactNameoptionalstringName of the contact.
customFieldsoptional*arrayAccount-specific custom fields.
*Whether or not these fields are required depends on your custom field settings.
validityPeriodrequiredstringCertificate validity.
Allowed values: 1D, 1Y Ends with D – Day or Y - Year.
Example: 1Y
Max value: 397 days
orderCoverageLengthoptionalstringSelected order coverage plan.
Possible values: 1Y, 2Y.
Note: For accounts with Multi-year Plans enabled, allowed values range from 1Y - 3Y.
autoRenewSettingsoptionalobjectObject with auto-renew settings.
.. daysBeforeExpiryoptionalintegerNumber of days before expiration to renew the certificate.
Min: 1 day
Max: Less than the certificate validity.
.. isAutoReplaceoptionalbooleanIf true, we automatically request and install a replacement certificate if the certificate discovered on the host is revoked or missing.
Default: false
forceAutoRenewSettingoptionalbooleanIf true, auto-renew settings are enabled.
Default: false

Response parameters

NameTypeDescription
errorobjectObject with error details, if any.
dataobjectMessage with additional information about the request.