# Update sex

Partially updates an existing Sex. Only provided fields will be updated.

Endpoint: PATCH /site/{siteId}/ahds/v1/sex/{sexId}
Version: 1.0
Security: bearer

## Security:

  - `bearer` (unknown)
    http bearer JWT

## Path parameters:

  - `siteId` (number, required)
    Site identifier

  - `sexId` (string, required)
    Sex unique identifier (UUID)

## Request fields (application/json):

  - `abbreviation` (string)
    Short code or abbreviation for the sex (e.g., M, F, U).
    Example: CODE-001

  - `extensions` (object)
    Vendor- or practice-specific extensions.

  - `isActive` (boolean)
    Whether this sex option is active and should be available for selection.
    Example: true

  - `isDesexed` (boolean)
    Indicates whether this sex classification implies desexing (e.g., neutered male).
    Example: true

  - `name` (string)
    Human-readable name of the sex (e.g., Male, Female, Unknown).
    Example: Example Name

## Response 200:

  - `200` (unknown)
    Sex updated successfully

## Response 200 fields (application/json):

  - `abbreviation` (string, required)
    Short code or abbreviation for the sex (e.g., M, F, U).
    Example: CODE-001

  - `createdAt` (string, required)
    Timestamp when this sex record was created.
    Example: 2025-01-01T00:00:00.000Z

  - `extensions` (object, required)
    Vendor- or practice-specific extensions.

  - `isActive` (boolean, required)
    Whether this sex option is active and should be available for selection.
    Example: true

  - `isDesexed` (boolean, required)
    Indicates whether this sex classification implies desexing (e.g., neutered male).
    Example: true

  - `name` (string, required)
    Human-readable name of the sex (e.g., Male, Female, Unknown).
    Example: Example Name

  - `sexId` (string, required)
    Stable, opaque identifier for the sex record.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `updatedAt` (string, required)
    Timestamp when this sex record was last updated.
    Example: 2025-01-01T00:00:00.000Z

## Response 400:

  - `400` (unknown)
    Invalid request body

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 404:

  - `404` (unknown)
    Sex not found

