Replace an in-use Project state and archive it
Replace an in-use Project state and archive it
POST
/api/v1/project-states/{state_id}/archive-and-replaceAtomically moves active Projects to a different active same-Workspace state and archives the source.
Path Parameters
Header Parameters
string·min 43·max 43Session-bound CSRF token. It must exactly match the
__Host-assign_csrf cookie sent with the request.
string·min 16·max 200Opaque client-generated key for safely retrying this operation.
Request Body
Responses
204Projects replaced and source state archived
Retry-After
integer·min 0Delay in seconds before retrying, when an expected maintenance end is known.
Cache-Control
string·const no-storePrevents storage of error responses by clients and intermediaries.
X-Request-ID
string·min 1·max 200Correlation identifier for the request.
X-Content-Type-Options
string·const nosniffPrevents user agents from MIME-sniffing the response.