v1
OpenAPI 3.1.02026-07-13632897.9 KBUpdate Priority
Update a priority's editable fields.
Accepts partial updates - only fields present in body are updated. Type is immutable. calendar_keyword can be reassigned.
For deadline priorities: name, deadline, calendar_keyword For flexible priorities: name, weekly_hour_target, checkpoint_date, calendar_keyword
Keyword reassignment: If the requested keyword is held by another active priority, they automatically swap keywords using a 3-step atomic swap.
Args: priority_id: Priority ID (UUID string) request: Partial update fields user_id: User ID from validated JWT session: Database session
Returns: 200: Full priorities response (same shape as GET /priorities) 404: Priority not found or wrong user 409: Keyword conflict during reassignment 422: Validation error (cross-type field, etc.)
Path parameters
Headers
Request body
Response
Successful Response