Update organization and technical contact

PUT https://www.digicert.com/services/v2/organization/{{organization_id}}/contact
Use this endpoint to update or replace the organization contact and technical contact associated with an organization. You can also use this endpoint to remove the technical contact from an organization.

This endpoint updates contacts at the organization level only. It does not change contacts associated with existing certificate orders.

Usage and limitations

  • An organization can have only one organization contact and one technical contact. In your JSON request body, the contacts array can include only one contact of each contact_type.
  • DigiCert does not update contact types omitted from your request. For example, if your request includes a single contact object with a contact_type of organization_contact, we only update the organization contact. We do not update the technical contact associated with the organization.
  • To remove the technical contact from the organization, submit a contact object with a contact_type of technical_contact. Omit all other fields from the contact object.
  • You cannot remove the organization contact from an organization.
  • When you submit a request to this endpoint, DigiCert compares the contacts in your request to the contacts currently assigned to the organization.
    • We update the contact in-place if the submitted contact’s first name, last name, and email address match the current contact.
    • We create a new contact if the submitted contact’s first name, last name, or email address do not match the current contact. The new contact replaces the existing contact for the organization.
  • Omitting optional fields from a contact object deletes existing values for those fields. Each contact object in your contacts array should include a value for all fields you want to change and all fields you want to keep the same (if any).

Example requests and responses

curl --request PUT 'https://www.digicert.com/services/v2/organization/{{organization_id}}/contact' \
--header 'X-DC-DEVKEY: {{api_key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
  "contacts": [
    {
      "first_name": "John",
      "last_name": "Doe",
      "email": "john.doe@example.com",
      "job_title": "SRE",
      "telephone": "1234567890",
      "telephone_extension": "1234",
      "language_id": "1",
      "contact_type": "organization_contact"
    },
    {
      "first_name": "Jane",
      "last_name": "Doe",
      "email": "jane.doe@example.com",
      "job_title": "SRE",
      "telephone": "1234567890",
      "telephone_extension": "1234",
      "language_id": "1",
      "contact_type": "technical_contact"
    }
  ]
}'
curl --request PUT 'https://www.digicert.com/services/v2/organization/{{organization_id}}/contact' \
--header 'X-DC-DEVKEY: {{api_key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
  "contacts": [
    {
      "contact_type": "technical_contact"
    }
  ]
}'
// No content
{
  "errors": [
    {
      "code": "contact_type_duplicate",
      "message": "A duplicate contact type was submitted. Make sure your request includes no more than one of each contact type and try again."
    }
  ]
}

Path parameters

NameReq/OptTypeDescription
organization_idrequiredstringOrganization ID.

Request parameters

NameReq/OptTypeDescription
contactsrequiredarray of objectsList of contacts. Must include at least one contact object. Limited to one contact of each contact_type.
.. first_nameconditionalstringContact first name. This field is required when updating or replacing a contact. If removing the technical contact from an organization, omit this field from the contact object.
Character limit: 128
.. last_nameconditionalstringContact last name. This field is required when updating or replacing a contact. If removing the technical contact from an organization, omit this field from the contact object.
Character limit: 128
.. emailconditionalstringContact email address. This field is required when updating or replacing a contact. If removing the technical contact from an organization, omit this field from the contact object.
Character limit: 255
.. job_titleoptionalstringContact job title.
Character limit: 64
.. telephoneoptionalstringContact telephone number.
Character limit: 32
.. telephone_extensionoptionalstringContact telephone extension.
Character limit: 16
.. language_idoptionalstringContact language ID.
Possible values: See Glossary – Locale codes.
.. contact_typeoptionalstringContact type.
Allowed values: technical_contact, organization_contact