projects

post/projects/{projectId}/sections

Request

  • Base URL: https://api.sweep.io (the document declares no server; this is the origin it was published from)
  • URL: https://api.sweep.io/projects/{projectId}/sections
  • Auth: HTTP bearer

Path parameters

projectIdstring required

Request body

namestring required
type'prompts' | 'artifacts' | 'files' required
runMode'individual' | 'queue' required

Response

idstring required
namestring required
sortOrdernumber required
type'prompts' | 'artifacts' | 'files' required
isDefaultboolean required

When true, this section is the auto-placement target for new artifacts produced by processFinalResult(). Only one default section per project (only applicable when type = artifacts). A default section can be renamed; it can be deleted only when empty. If deleted and new artifacts arrive, it is re-created automatically.

runMode'individual' | 'queue' required

How "Run section" executes prompts. Only applicable when type = prompts.

  • individual: each prompt creates its own chat (default)
  • queue: one chat, prompts run as sequential messages
projectIdstring required

Changes

No recorded changes to this operation across all 1 revision of this API.