Withdraw the open request to move the project
const url = 'https://beta-api.plune.ai/v1/projects/example/move';const options = {method: 'DELETE', headers: {cookie: 'plune_session=<plune_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://beta-api.plune.ai/v1/projects/example/move \ --cookie plune_session=<plune_session>The owner of the project and of its company: the open request becomes cancelled, and the person asked can no longer accept it; they are told by mail. Nothing waiting is 404. The signed-in session alone: an API token gets 403 session_required — the move takes the project’s secrets away and changes who owns it, so a token (a CI’s) neither asks for, answers nor reads one. Recorded as the request is (project.move_cancelled).
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”An id from GET /v1/projects
Responses
Section titled “ Responses ”Withdrawn
No / invalid session
Somebody in the project who is not its owner, its owner who does not own the company, or an API token
object
Examples
{ "error": "project owner only", "code": "owner_only"}{ "error": "company owner only — a project moves when the owner of the project owns its company too", "code": "owner_only"}{ "error": "a project move takes the signed-in session — an API token neither asks for, answers nor reads one", "code": "session_required"}No such project among yours, or no request of it waiting
object
Example
{ "error": "no move of this project is waiting for an answer"}Rate-limited: the per-route throttle, or the per-minute request limit of the plan an API token counts by (#1442; the body names the plan, #2092). Retry-After carries the seconds until the window rolls over.
object
Example generated
{ "error": "example"}Headers
Section titled “Headers ”Seconds until the window rolls over