Files
Proxmox-Coolify-Manager/coolify_skill/references/ops/restart-service-by-uuid.md
T

2.8 KiB
Raw Blame History

Skip to content

Return to top

Restart

=================================================================================================

GET

/services/{uuid}/restart

Restart service. Post request is also accepted.

Authorizations


bearerAuth

Go to Keys & Tokens / API tokens and create a new token. Use the token as the bearer token.

Type

HTTP (bearer)

Parameters


Path Parameters

uuid*

UUID of the service.

Type

string

Required

Query Parameters

latest

Pull latest images.

Type

boolean

Default

false

Responses


200400401404

Restart service.

Content-Type

application/json

SchemaJSON

JSON

{

"message": "Service restaring request queued."

}

GET

/services/{uuid}/restart

Playground


Authorization

bearerAuth

Variables

Key

Value

uuid*

latest

Try it out

Samples


BrunocURLJavaScriptPHPPython

Bruno

GET https://app.coolify.io/api/v1/services/%7Buuid%7D/restart

Headers
authorization: Token

cURL

curl 'https://app.coolify.io/api/v1/services/{uuid}/restart' \
  --header 'Authorization: Token'

JavaScript

fetch('https://app.coolify.io/api/v1/services/{uuid}/restart', {
  headers: {
    Authorization: 'Token'
  }
})

PHP

$ch = curl_init("https://app.coolify.io/api/v1/services/{uuid}/restart");

curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Token']);

curl_exec($ch);

curl_close($ch);

Python

requests.get(
    "https://app.coolify.io/api/v1/services/{uuid}/restart",
    headers={
      "Authorization": "Token"
    }
)

Powered by VitePress OpenAPI