Domain > Contact

Update Contact

Update a Contact

A validation may be required. If so, a validation email will be sent and the update will need to be confirmed via the email link. Otherwise, the Contact is updated immediately.

put/2/domains/accounts/{account}/contacts/{contact}

Path parameters

accountstring required
contactstring required

Request body

citystring

City name of the contact

country_codestring

Country code of the contact (ISO 3166-1 alpha-2)

emailstring

Email of the contact (only accepted if current email address is set to [email@not.valid])

faxstring nullable

Fax of the contact

languagestring

Language code of the contact

phonestring

Phone number of the contact

postal_codestring

Postal code of the contact

statestring nullable

State of the contact

street1string

Street address of the contact

street2string nullable

Street address of the contact

Example request

{
  "city": "Les Acacias",
  "country_code": "CH",
  "email": "contact@example.com",
  "fax": "+41.223456790",
  "phone": "+41.223456789",
  "postal_code": "1227",
  "state": "Genève",
  "street1": "Rue Eugène Marziano 25",
  "street2": "Batiment 43"
}

Response

OK

result'success' | 'error' | 'asynchronous' required

Result of the HTTP request

Example response

{
  "result": "success",
  "data": {
    "is_validation_required": "true",
    "validation_sent_to": "contact@mydomain.ch",
    "contact": {
      "address_type": "loc",
      "first_name": "John",
      "last_name": "Doe",
      "company": "Infomaniak",
      "street1": "Rue Eugène Marziano 25",
      "street2": "Batiment 43",
      "street3": "Etage 3",
      "postal_code": "1227",
      "city": "Les Acacias",
      "state": "Genève",
      "country_code": "CH",
      "id": 12345,
      "type": "Organization",
      "phone": "+41.223456789",
      "fax": "+41.223456790",
      "email": "contact@mydomain.ch",
      "validated_at": 1702908000,
      "created_at": 1702908000,
      "pending_modification": {
        "created_at": 1702908000,
        "associated_domains": [
          {
            "id": 1,
            "name": "mydomain.ch"
          }
        ],
        "associated_domains_count": 5000
      },
      "associated_domains": [
        {
          "id": 1,
          "name": "mydomain.ch"
        }
      ],
      "associated_domains_count": 5000
    }
  }
}

Changes

No recorded changes to this endpoint across all 3 revisions of this API.