# Update a twin

Endpoint: PATCH /twins/{id}
Version: v3
Security: oauth2

## Path parameters:

  - `id` (string, required)
    Id of the twin

## Header parameters:

  - `If-Match` (null | string)
    Optional If-Match header value (RFC 7232). When supplied, the twin will only be patched if its current ETag matches; otherwise a 412 Precondition Failed response is returned.

## Request fields (application/json):

  - `operationType` (string)
    Enum: "Add", "Remove", "Replace", "Move", "Copy", "Test", "Invalid"

  - `path` (null | string)

  - `op` (null | string)

  - `from` (null | string)

  - `value` (any)

## Response 403 fields (application/json):

  - `type` (null | string)

  - `title` (null | string)

  - `status` (null | integer)

  - `detail` (null | string)

  - `instance` (null | string)

## Response 404 fields (application/json):

  - `type` (null | string)

  - `title` (null | string)

  - `status` (null | integer)

  - `detail` (null | string)

  - `instance` (null | string)

## Response 412 fields (application/json):

  - `type` (null | string)

  - `title` (null | string)

  - `status` (null | integer)

  - `detail` (null | string)

  - `instance` (null | string)

