166 lines
2.9 KiB
Markdown
166 lines
2.9 KiB
Markdown
[Skip to content](https://coolify.io/docs/api-reference/api/operations/update-envs-by-service-uuid#VPContent)
|
||
|
||
Return to top
|
||
|
||
Update Envs (Bulk)[](https://coolify.io/docs/api-reference/api/operations/update-envs-by-service-uuid#update-envs-bulk)
|
||
|
||
=========================================================================================================================
|
||
|
||
PATCH
|
||
|
||
/services/{uuid}/envs/bulk
|
||
|
||
Update multiple envs by service UUID.
|
||
|
||
Authorizations[](https://coolify.io/docs/api-reference/api/operations/update-envs-by-service-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-envs-by-service-uuid#parameters)
|
||
|
||
-----------------------------------------------------------------------------------------------------------
|
||
|
||
### Path Parameters
|
||
|
||
uuid\*
|
||
|
||
UUID of the service.
|
||
|
||
Type
|
||
|
||
string
|
||
|
||
Required
|
||
|
||
Request Body[](https://coolify.io/docs/api-reference/api/operations/update-envs-by-service-uuid#request-body)
|
||
|
||
---------------------------------------------------------------------------------------------------------------
|
||
|
||
application/json
|
||
|
||
SchemaJSON
|
||
|
||
JSON
|
||
|
||
{
|
||
|
||
"data": \[\
|
||
\
|
||
{\
|
||
\
|
||
"key": "string",\
|
||
\
|
||
"value": "string",\
|
||
\
|
||
"is\_preview": true,\
|
||
\
|
||
"is\_literal": true,\
|
||
\
|
||
"is\_multiline": true,\
|
||
\
|
||
"is\_shown\_once": true\
|
||
\
|
||
}\
|
||
\
|
||
\]
|
||
|
||
}
|
||
|
||
Responses[](https://coolify.io/docs/api-reference/api/operations/update-envs-by-service-uuid#responses)
|
||
|
||
---------------------------------------------------------------------------------------------------------
|
||
|
||
201400401404422
|
||
|
||
Environment variables updated.
|
||
|
||
Content-Type
|
||
|
||
application/json
|
||
|
||
SchemaJSON
|
||
|
||
JSON
|
||
|
||
\[\
|
||
\
|
||
{\
|
||
\
|
||
"id": 0,\
|
||
\
|
||
"uuid": "string",\
|
||
\
|
||
"resourceable\_type": "string",\
|
||
\
|
||
"resourceable\_id": 0,\
|
||
\
|
||
"is\_literal": true,\
|
||
\
|
||
"is\_multiline": true,\
|
||
\
|
||
"is\_preview": true,\
|
||
\
|
||
"is\_runtime": true,\
|
||
\
|
||
"is\_buildtime": true,\
|
||
\
|
||
"is\_shared": true,\
|
||
\
|
||
"is\_shown\_once": true,\
|
||
\
|
||
"key": "string",\
|
||
\
|
||
"value": "string",\
|
||
\
|
||
"real\_value": "string",\
|
||
\
|
||
"comment": "string",\
|
||
\
|
||
"version": "string",\
|
||
\
|
||
"created\_at": "string",\
|
||
\
|
||
"updated\_at": "string"\
|
||
\
|
||
}\
|
||
\
|
||
\]
|
||
|
||
PATCH
|
||
|
||
/services/{uuid}/envs/bulk
|
||
|
||
Playground[](https://coolify.io/docs/api-reference/api/operations/update-envs-by-service-uuid#playground)
|
||
|
||
-----------------------------------------------------------------------------------------------------------
|
||
|
||
Authorization
|
||
|
||
bearerAuth
|
||
|
||
Variables
|
||
|
||
Key
|
||
|
||
Value
|
||
|
||
uuid\*
|
||
|
||
Body
|
||
|
||
Try it out
|
||
|
||
Samples[](https://coolify.io/docs/api-reference/api/operations/update-envs-by-service-uuid#samples)
|
||
|
||
-----------------------------------------------------------------------------------------------------
|
||
|
||
Powered by [VitePress OpenAPI](https://github.com/enzonotario/vitepress-openapi)
|