# Replaces a contact of a group.

Replaces a contact of the group as a whole: a standard field or a custom field that is not sent is cleared. The values of the group's custom fields are sent as additional properties next to the standard fields, keyed by custom field name; a property that is neither a standard field nor a custom field of the group is rejected with 422, a property sent more than once with 400.

Endpoint: PUT /api/v1/organizations/{organizationId}/user-groups/{userGroupId}/contacts/{contactId}
Version: v1
Security: Bearer, PersonalAccessToken

## Security:

  - `Bearer` (unknown)
    http bearer JWT

  - `PersonalAccessToken` (unknown)
    apiKey in header Personal-Access-Token

## Path parameters:

  - `organizationId` (string, required)
    Unique identifier of the organization

  - `userGroupId` (string, required)
    Unique identifier of the user group

  - `contactId` (string, required)
    Unique identifier of the contact.

## Request fields (application/json):

  - `givenName` (string)
    The contact's first name.
    Example: John

  - `surname` (string)
    The contact's last name.
    Example: Smith

  - `email` (string)
    The contact's email address.
    Example: john.smith@example.com

  - `phoneNumber` (string)
    The contact's phone number.
    Example: +44 20 7946 0958

  - `language` (string)
    The contact's culture ISO code.
    Example: en

## Request examples:

  - `standard fields only` (unknown)

  - `with custom fields` (unknown)

## Response 204:

  - `204` (unknown)
    No Content

## Response 400:

  - `400` (unknown)
    Bad Request

## Response 400 fields (application/json):

  - `errors` (array, required)

  - `errors.errorId` (string, required)

  - `errors.field` (string)

  - `errors.message` (any, required)

  - `errors.messageEn` (any, required)

  - `errors.additionalData` (object)

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 401 fields (application/json):

  - `errors` (array, required)

  - `errors.errorId` (string, required)

  - `errors.field` (string)

  - `errors.message` (any, required)

  - `errors.messageEn` (any, required)

  - `errors.additionalData` (object)

## Response 403:

  - `403` (unknown)
    Forbidden

## Response 403 fields (application/json):

  - `errors` (array, required)

  - `errors.errorId` (string, required)

  - `errors.field` (string)

  - `errors.message` (any, required)

  - `errors.messageEn` (any, required)

  - `errors.additionalData` (object)

## Response 404:

  - `404` (unknown)
    Not Found

## Response 404 fields (application/json):

  - `errors` (array, required)

  - `errors.errorId` (string, required)

  - `errors.field` (string)

  - `errors.message` (any, required)

  - `errors.messageEn` (any, required)

  - `errors.additionalData` (object)

## Response 422:

  - `422` (unknown)
    Unprocessable Content

## Response 422 fields (application/json):

  - `errors` (array, required)

  - `errors.errorId` (string, required)

  - `errors.field` (string)

  - `errors.message` (any, required)

  - `errors.messageEn` (any, required)

  - `errors.additionalData` (object)

## Response 500:

  - `500` (unknown)
    Internal Server Error

## Response 500 fields (application/json):

  - `errors` (array, required)

  - `errors.errorId` (string, required)

  - `errors.field` (string)

  - `errors.message` (any, required)

  - `errors.messageEn` (any, required)

  - `errors.additionalData` (object)

