v3

latestOpenAPI 3.1.02026-08-06274467602.9 KB
project

Reorder Views

Reorder a project's views to match the supplied id order.

Declared before the /{view_id} PATCH route: FastAPI matches routes in declaration order, so the literal reorder segment must register first or {view_id} would capture it (view_id="reorder").

Args: project_id: UUID of the project (validated to be owned by current user) request: The full ordered list of view ids view_service: View service for business logic

Returns: Response with success status and the views in their new order

Raises: HTTPException: 404 if project not found or user doesn't own it, 400 if view_ids isn't a permutation of the project's views.

patch/api/v1/project/{project_id}/views/reorder

Request body

view_idsstring[] required

Response

Successful Response

successboolean required