150 lines
2.6 KiB
Markdown
150 lines
2.6 KiB
Markdown
[Skip to content](https://coolify.io/docs/api-reference/api/operations/update-service-by-uuid#VPContent)
|
||
|
||
Return to top
|
||
|
||
Update[](https://coolify.io/docs/api-reference/api/operations/update-service-by-uuid#update)
|
||
|
||
==============================================================================================
|
||
|
||
PATCH
|
||
|
||
/services/{uuid}
|
||
|
||
Update service by UUID.
|
||
|
||
Authorizations[](https://coolify.io/docs/api-reference/api/operations/update-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/update-service-by-uuid#parameters)
|
||
|
||
------------------------------------------------------------------------------------------------------
|
||
|
||
### Path Parameters
|
||
|
||
uuid\*
|
||
|
||
UUID of the service.
|
||
|
||
Type
|
||
|
||
string
|
||
|
||
Required
|
||
|
||
Request Body[](https://coolify.io/docs/api-reference/api/operations/update-service-by-uuid#request-body)
|
||
|
||
----------------------------------------------------------------------------------------------------------
|
||
|
||
application/json
|
||
|
||
SchemaJSON
|
||
|
||
JSON
|
||
|
||
{
|
||
|
||
"name": "string",
|
||
|
||
"description": "string",
|
||
|
||
"project\_uuid": "string",
|
||
|
||
"environment\_name": "string",
|
||
|
||
"environment\_uuid": "string",
|
||
|
||
"server\_uuid": "string",
|
||
|
||
"destination\_uuid": "string",
|
||
|
||
"instant\_deploy": true,
|
||
|
||
"connect\_to\_docker\_network": false,
|
||
|
||
"docker\_compose\_raw": "string",
|
||
|
||
"urls": \[\
|
||
\
|
||
{\
|
||
\
|
||
"name": "string",\
|
||
\
|
||
"url": "string"\
|
||
\
|
||
}\
|
||
\
|
||
\],
|
||
|
||
"force\_domain\_override": false,
|
||
|
||
"is\_container\_label\_escape\_enabled": true
|
||
|
||
}
|
||
|
||
Responses[](https://coolify.io/docs/api-reference/api/operations/update-service-by-uuid#responses)
|
||
|
||
----------------------------------------------------------------------------------------------------
|
||
|
||
200
|
||
|
||
Service updated.
|
||
|
||
Content-Type
|
||
|
||
application/json
|
||
|
||
SchemaJSON
|
||
|
||
JSON
|
||
|
||
{
|
||
|
||
"uuid": "string",
|
||
|
||
"domains": \[\
|
||
\
|
||
"string"\
|
||
\
|
||
\]
|
||
|
||
}
|
||
|
||
PATCH
|
||
|
||
/services/{uuid}
|
||
|
||
Playground[](https://coolify.io/docs/api-reference/api/operations/update-service-by-uuid#playground)
|
||
|
||
------------------------------------------------------------------------------------------------------
|
||
|
||
Authorization
|
||
|
||
bearerAuth
|
||
|
||
Variables
|
||
|
||
Key
|
||
|
||
Value
|
||
|
||
uuid\*
|
||
|
||
Body
|
||
|
||
Try it out
|
||
|
||
Samples[](https://coolify.io/docs/api-reference/api/operations/update-service-by-uuid#samples)
|
||
|
||
------------------------------------------------------------------------------------------------
|
||
|
||
Powered by [VitePress OpenAPI](https://github.com/enzonotario/vitepress-openapi)
|