POST/services/{uuid}/applications/{app_uuid}/restart

Restart a service application container

Restarts a single compose service application container. Use this operation to restart the container without changing its configuration.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

2 parameters
uuidstringrequired
The unique identifier of the service containing the application.
app_uuidstringrequired
The unique identifier of the compose service application to restart.

5 status codes
200Returns a message confirming that the restart was queued.
messagestringoptional
400Returned when the token is invalid.
messagestringoptional
401Returned when the request is unauthenticated.
messagestringoptional
404Returned when the service or service application cannot be found.
messagestringoptional
501Returned when Swarm is not supported.

Error handling

A 400 is returned for an invalid token; a 401 when the request is unauthenticated; a 404 when the service or application is not found; and a 501 when Swarm is unsupported. The uuid path parameter and app_uuid path parameter must identify the service and compose application to restart.