Commit inicial - estructura base del proyecto
This commit is contained in:
@@ -0,0 +1,149 @@
|
||||
[Skip to content](https://coolify.io/docs/api-reference/api/operations/restart-service-by-uuid#VPContent)
|
||||
|
||||
Return to top
|
||||
|
||||
Restart[](https://coolify.io/docs/api-reference/api/operations/restart-service-by-uuid#restart)
|
||||
|
||||
=================================================================================================
|
||||
|
||||
GET
|
||||
|
||||
/services/{uuid}/restart
|
||||
|
||||
Restart service. `Post` request is also accepted.
|
||||
|
||||
Authorizations[](https://coolify.io/docs/api-reference/api/operations/restart-service-by-uuid#authorizations)
|
||||
|
||||
---------------------------------------------------------------------------------------------------------------
|
||||
|
||||
bearerAuth
|
||||
|
||||
Go to `Keys & Tokens` / `API tokens` and create a new token. Use the token as the bearer token.
|
||||
|
||||
Type
|
||||
|
||||
HTTP (bearer)
|
||||
|
||||
Parameters[](https://coolify.io/docs/api-reference/api/operations/restart-service-by-uuid#parameters)
|
||||
|
||||
-------------------------------------------------------------------------------------------------------
|
||||
|
||||
### Path Parameters
|
||||
|
||||
uuid\*
|
||||
|
||||
UUID of the service.
|
||||
|
||||
Type
|
||||
|
||||
string
|
||||
|
||||
Required
|
||||
|
||||
### Query Parameters
|
||||
|
||||
latest
|
||||
|
||||
Pull latest images.
|
||||
|
||||
Type
|
||||
|
||||
boolean
|
||||
|
||||
Default
|
||||
|
||||
`false`
|
||||
|
||||
Responses[](https://coolify.io/docs/api-reference/api/operations/restart-service-by-uuid#responses)
|
||||
|
||||
-----------------------------------------------------------------------------------------------------
|
||||
|
||||
200400401404
|
||||
|
||||
Restart service.
|
||||
|
||||
Content-Type
|
||||
|
||||
application/json
|
||||
|
||||
SchemaJSON
|
||||
|
||||
JSON
|
||||
|
||||
{
|
||||
|
||||
"message": "Service restaring request queued."
|
||||
|
||||
}
|
||||
|
||||
GET
|
||||
|
||||
/services/{uuid}/restart
|
||||
|
||||
Playground[](https://coolify.io/docs/api-reference/api/operations/restart-service-by-uuid#playground)
|
||||
|
||||
-------------------------------------------------------------------------------------------------------
|
||||
|
||||
Authorization
|
||||
|
||||
bearerAuth
|
||||
|
||||
Variables
|
||||
|
||||
Key
|
||||
|
||||
Value
|
||||
|
||||
uuid\*
|
||||
|
||||
latest
|
||||
|
||||
Try it out
|
||||
|
||||
Samples[](https://coolify.io/docs/api-reference/api/operations/restart-service-by-uuid#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](https://github.com/enzonotario/vitepress-openapi)
|
||||
Reference in New Issue
Block a user