cloadyDocs
API ReferenceEndpointsApplications

Restart one service

Restarts one compose service's pods, the way `kubectl rollout restart` restarts a deployment, while the app's other services keep running. `serviceName` is a compose service.

POST
/api/workspaces/{workspaceSlug}/apps/{appSlug}/services/{serviceName}/restart
AuthorizationBearer <token>

Personal API token (cldy_…)

In: header

Path Parameters

workspaceSlug*string
appSlug*string
serviceName*string

Query Parameters

env?string

Value in

  • "production"
  • "preview"
  • "development"
region?string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/workspaces/string/apps/string/services/string/restart"
{  "ok": true}