# Replace wellness resource

Fully replaces an existing Wellness Resource. All fields must be provided.

Endpoint: PUT /site/{siteId}/ahds/v1/wellness-resource/{resourceId}
Version: 1.0
Security: bearer

## Security:

  - `bearer` (unknown)
    http bearer JWT

## Path parameters:

  - `siteId` (number, required)
    Site identifier

  - `resourceId` (string, required)
    Wellness Resource unique identifier (UUID)

## Request fields (application/json):

  - `description` (string, required)
    Detailed description of the wellness resource.
    Example: Example description

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

  - `isActive` (boolean, required)
    Indicates whether the wellness resource is currently active and available for use.
    Example: true

  - `name` (string, required)
    Human-readable name of the wellness resource.
    Example: Example Name

  - `resourceType` (string, required)
    High-level classification of the wellness resource.
    Enum: "wellnessPlan", "wellnessProgram", "wellnessPackage", "preventiveCareBundle", "other"

  - `status` (string, required)
    Lifecycle status of the wellness resource.
    Enum: "draft", "active", "inactive", "retired"

  - `validFromDate` (string, required)
    Date from which the wellness resource is valid.
    Example: 2025-01-01

  - `validToDate` (string, required)
    Date until which the wellness resource is valid, if applicable.
    Example: 2025-01-01

## Response 200:

  - `200` (unknown)
    Wellness Resource replaced successfully

## Response 200 fields (application/json):

  - `createdAt` (string, required)
    Timestamp when the wellness resource was created.
    Example: 2025-01-01T00:00:00.000Z

  - `description` (string, required)
    Detailed description of the wellness resource.
    Example: Example description

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

  - `isActive` (boolean, required)
    Indicates whether the wellness resource is currently active and available for use.
    Example: true

  - `name` (string, required)
    Human-readable name of the wellness resource.
    Example: Example Name

  - `resourceId` (string, required)
    Stable, opaque identifier for the wellness resource.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `resourceType` (string, required)
    High-level classification of the wellness resource.
    Enum: "wellnessPlan", "wellnessProgram", "wellnessPackage", "preventiveCareBundle", "other"

  - `status` (string, required)
    Lifecycle status of the wellness resource.
    Enum: "draft", "active", "inactive", "retired"

  - `updatedAt` (string, required)
    Timestamp when the wellness resource was last updated.
    Example: 2025-01-01T00:00:00.000Z

  - `validFromDate` (string, required)
    Date from which the wellness resource is valid.
    Example: 2025-01-01T00:00:00Z

  - `validToDate` (string, required)
    Date until which the wellness resource is valid, if applicable.
    Example: 2025-01-01T00:00:00Z

## Response 400:

  - `400` (unknown)
    Invalid request body

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 404:

  - `404` (unknown)
    Wellness Resource not found

