# Create plan Creates a new Plan record. Plan resource in the Animal Health Data Store Endpoint: POST /site/{siteId}/ahds/v1/plan Version: 1.0 Security: bearer ## Path parameters: - `siteId` (number, required) Site identifier ## Request fields (application/json): - `animalId` (string) Identifier of the animal this plan is for. Example: "123e4567-e89b-12d3-a456-426614174000" - `consultId` (string) Identifier of the consult associated with this plan. Example: "123e4567-e89b-12d3-a456-426614174000" - `extensions` (object) Vendor- or practice-specific extensions. - `isActive` (boolean, required) Whether the plan is currently active. - `notes` (string) Free-text notes describing the plan. - `planId` (string, required) Canonical identifier for the plan. Example: "123e4567-e89b-12d3-a456-426614174000" - `recordedAt` (string) Clinical timestamp associated with the plan (e.g., when it was recorded in the consult). Example: "2025-01-01T00:00:00.000Z" - `vetId` (string) Identifier of the veterinarian responsible for this plan. Example: "123e4567-e89b-12d3-a456-426614174000" ## Response 201 fields (application/json): - `animalId` (string, required) Identifier of the animal this plan is for. Example: "123e4567-e89b-12d3-a456-426614174000" - `consultId` (string, required) Identifier of the consult associated with this plan. Example: "123e4567-e89b-12d3-a456-426614174000" - `createdAt` (string, required) Timestamp when the plan was created. Example: "2025-01-01T00:00:00.000Z" - `extensions` (object, required) Vendor- or practice-specific extensions. - `isActive` (boolean, required) Whether the plan is currently active. - `notes` (string, required) Free-text notes describing the plan. - `planId` (string, required) Canonical identifier for the plan. Example: "123e4567-e89b-12d3-a456-426614174000" - `recordedAt` (string, required) Clinical timestamp associated with the plan (e.g., when it was recorded in the consult). Example: "2025-01-01T00:00:00.000Z" - `updatedAt` (string, required) Timestamp when the plan was last modified. Example: "2025-01-01T00:00:00.000Z" - `vetId` (string, required) Identifier of the veterinarian responsible for this plan. Example: "123e4567-e89b-12d3-a456-426614174000" ## Response 400 fields ## Response 401 fields ## Response 409 fields