Skip to content

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.

gid
required
Gid
string
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).

object
project_gid
required
Project Gid

Project GID

string
>= 1 characters
before_section
Any of:
string
after_section
Any of:
string

Successful Response

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string