Reorder section within project
POST
/api/v1/sections/{gid}/reorder
Reorder a section within a project.
Moves the section to a new position. Exactly one of before_section or after_section must be provided.
Args: gid: Section GID to reorder. body: Reorder parameters including project and position.
Returns: No content on success.
Raises: 400: Neither or both of before_section/after_section provided.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” gid
required
Gid
string
Request Body required
Section titled “Request Body required ” ReorderSectionRequest
Request body for reordering a section within a project.
Per FR-API-SECT-006: Reorder section endpoint.
Exactly one of before_section or after_section must be provided.
Attributes: project_gid: Project GID containing the section. before_section: Section GID to insert before (optional). after_section: Section GID to insert after (optional).
Responses
Section titled “ Responses ”Successful Response
Validation Error
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string