ReferenceAPI

Sleep a project

Sleep every computer and database in the project at once, each as POST /v1/computers/{cmp}/sleep or POST /v1/databases/{db}/sleep would.

POST https://api.nevia.cloud/v1/projects/{prj}/sleep
curl -X POST "https://api.nevia.cloud/v1/projects/01ck8y1dm5qqnf88mytnh4m0h4g/sleep" \
  -H "Authorization: Bearer $TOKEN"
{
  "project": {
    "id": "01ck8y1dm5qqnf88mytnh4m0h4g",
    "workspace": "01d4cnjjq40hnnh0nwmkg35nv2h",
    "name": "agent-evals",
    "created_at": "2026-09-10T12:34:56Z",
    "updated_at": "2026-09-10T12:34:56Z"
  },
  "operations": [
    "01d4cnjm89yk0r3xtv80dy0x7by"
  ]
}

Authorization

bearerAuth
Authorization Bearer <token>

Send the token in the Authorization: Bearer <token> header. See Authenticate.

In: header

Path Parameters

prj* string

Project id: 27 lowercase letters and digits.

Match ^[A-Za-z0-9_-]{1,64}$

Behavior

Each member gets the result its own call would give: one already sleeping with nothing pending is done, and one that cannot sleep right now fails with its own error. When every member is done the response is 200 with the project. Otherwise it is 202 with a project.sleep operation, which finishes when the members' own operations do. If any member fails, the operation ends failed with error.details.members holding each failed member's id and error, and the other members stay done. Repeating the request while that operation runs returns 202 with the same operation.

Response

application/json

The project, with every member sleeping.