Endpoint
Description
Updates the configuration settings for a professional. This endpoint performs a partial update, allowing you to modify specific fields without providing all settings. See implementation inserver/src/modules/professional-settings/professional-settings.controller.ts:27-44.
Authentication
Path Parameters
The unique identifier of the settings configuration to updateExample:
cfg123Request Body
All fields are from theUpdateProfessionalSettingDto. Include only the fields you want to update.
UUID of the professional (required for updates)
Session duration in minutes
- Minimum: 15
- Maximum: 180
String representation of available work days
Start time of work day (e.g., “09:00”)
End time of work day (e.g., “17:00”)
How many days ahead clients can book
- Minimum: 1
- Maximum: 365
Whether payment is required to book appointments
Amount required for deposit (can be null)
- Minimum: 0
- Only relevant if
requires_depositis true
Type of sessions offered
Virtual- Online sessions onlyPresencial- In-person sessions onlyBOTH- Both virtual and in-person
Physical address for in-person sessions (required for
Presencial or BOTH)Response
Returns the updated professional settings object.Example Request
Example Response
Error Responses
Not Found
Bad Request (Validation Error)
Forbidden (Insufficient Permissions)
Unauthorized
Validation Rules
The API validates all input according to the DTO constraints. See
server/src/modules/professional-settings/dto/update-professional-setting.dto.ts:18-55.- session_duration_minutes: Must be between 15 and 180
- reservation_window_days: Must be between 1 and 365
- deposit_amount: Must be at least 0 (when provided)
- user_id: Must be a valid UUID
- session_modalities: Must be one of:
Virtual,Presencial, orBOTH
Use Cases
- Change work schedule or hours
- Adjust session duration
- Enable or disable payment requirements
- Update deposit amounts
- Add or modify office address
- Change session modalities (virtual/in-person)
- Adjust how far in advance bookings are allowed
Important Notes
- This is a PATCH operation (partial update) - only send fields you want to change
- Requires RolesGuard - typically restricted to admin or professional users
- Changing
requires_depositaffects future reservation creation - Updated settings take effect immediately for new reservations
Related Endpoints
- Get Settings - Retrieve current settings before updating
- Create Without Payment - Uses
requires_depositsetting