Edit a multi-project cycle, or send `{ 'state': 'active' | 'completed' }` to transition it (PT-938)
PATCH/api/cycle-sets/:id/cycles/:cycleId
Edit a multi-project cycle, or send { "state": "active" | "completed" } to transition it (PT-938). Requires tasks.update.any AND full-scope projects.read against the set's organisation — the same read bar the GETs apply, because a caller who cannot read the member projects must not be able to rename, activate or complete a cycle spanning them. The scope itself is immutable — project_set_id is rejected by a DB trigger and is not a member of the request schema.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
Successful response
Validation error, or a descriptive body carrying no fields
Unauthorized — authentication credentials are missing or invalid
Forbidden — the project set is inaccessible or unknown, its id is malformed, the caller lacks the required permission, or the x-act-as-org selector named a non-member org.
Cycle not found, archived, or not in this project set
Conflict: an invalid lifecycle transition, another cycle already active in the same project set, or a descriptive update setting a sequence that already exists in it.