Skip to content
Quasar Documentation

Restart an application

Restart an application's containers.

POST/api/v1/apps/{id}/restart

Restarts the application's containers, without fetching or rebuilding anything. Requires an admin token.

Authorizations

  • bearerAuthbearer

    An API token created in Settings → API tokens. Tokens start with qsr_.

Path parameters

  • idstringrequired

    Identifier of the application, as returned by GET /api/v1/apps.

Request
curl -X POST 'https://admin.your-domain.com/api/v1/apps/3f9c2a7e/restart' \
  -H 'Authorization: Bearer $TOKEN'

Responses

200

200The application was restarted.

  • statusstringrequired

  • appstringrequired

    Identifier of the application.

Response
{
  "status": "restarted",
  "app": "3f9c2a7e"
}

401

401The token is missing or invalid.

  • errorstringrequired

    What went wrong.

Response
{
  "error": "invalid token"
}

403

403The token is a viewer token, and this call needs an admin one.

  • errorstringrequired

    What went wrong.

Response
{
  "error": "this token is read-only"
}

404

404No application has this identifier.

  • errorstringrequired

    What went wrong.

Response
{
  "error": "application not found"
}

500

500Docker refused the restart.

  • errorstringrequired

    What went wrong.

Response
{
  "error": "string"
}