# Update an existing code Endpoint: PUT /code/{codeId} Version: 1.0 Security: bearer ## Path parameters: - `codeId` (number, required) ## Request fields (application/json): - `title` (string, required) The title of the code Example: "Medical Code Title" - `code` (string, required) The unique code associated with the title Example: "M1234" - `category` (string, required) The category of the code Example: "Dental" - `categoryCode` (string, required) The unique code for the category Example: "D4567" - `isEnabled` (boolean) Indicates whether the code is enabled Example: true - `id` (number, required) The ID of the code to be updated Example: 123 ## Response 200 fields (application/json): - `title` (string, required) The title of the code Example: "Medical Code Title" - `code` (string, required) The unique code associated with the title Example: "M1234" - `category` (string, required) The category of the code Example: "Dental" - `categoryCode` (string, required) The unique code for the category Example: "D4567" - `isEnabled` (boolean) Indicates whether the code is enabled Example: true - `id` (number, required) The ID of the code to be updated Example: 123 - `createdAt` (string, required) The date and time the code was created Example: "2021-05-01T12:00:00Z" - `updatedAt` (string, required) The date and time the code was last updated Example: "2021-05-01T12:00:00Z" ## Response 401 fields (application/json): - `message` (string, required) Error message indicating unauthorized access. Example: "Unauthorized" - `statusCode` (number, required) HTTP status code for unauthorized access. Example: 401 ## Response 400 fields