Files

120 lines
2.4 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[Skip to content](https://coolify.io/docs/api-reference/api/operations/create-env-by-service-uuid#VPContent)
Return to top
Create Env[](https://coolify.io/docs/api-reference/api/operations/create-env-by-service-uuid#create-env)
==========================================================================================================
POST
/services/{uuid}/envs
Create env by service UUID.
Authorizations[](https://coolify.io/docs/api-reference/api/operations/create-env-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/create-env-by-service-uuid#parameters)
----------------------------------------------------------------------------------------------------------
### Path Parameters
uuid\*
UUID of the service.
Type
string
Required
Request Body[](https://coolify.io/docs/api-reference/api/operations/create-env-by-service-uuid#request-body)
--------------------------------------------------------------------------------------------------------------
application/json
SchemaJSON
JSON
{
"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/create-env-by-service-uuid#responses)
--------------------------------------------------------------------------------------------------------
201400401404422
Environment variable created.
Content-Type
application/json
SchemaJSON
JSON
{
"uuid": "nc0k04gk8g0cgsk440g0koko"
}
POST
/services/{uuid}/envs
Playground[](https://coolify.io/docs/api-reference/api/operations/create-env-by-service-uuid#playground)
----------------------------------------------------------------------------------------------------------
Authorization
bearerAuth
Variables
Key
Value
uuid\*
Body
Try it out
Samples[](https://coolify.io/docs/api-reference/api/operations/create-env-by-service-uuid#samples)
----------------------------------------------------------------------------------------------------
Powered by [VitePress OpenAPI](https://github.com/enzonotario/vitepress-openapi)