120 lines
2.4 KiB
Markdown
120 lines
2.4 KiB
Markdown
[Skip to content](https://coolify.io/docs/api-reference/api/operations/create-env-by-application-uuid#VPContent)
|
||
|
||
Return to top
|
||
|
||
Create Env[](https://coolify.io/docs/api-reference/api/operations/create-env-by-application-uuid#create-env)
|
||
|
||
==============================================================================================================
|
||
|
||
POST
|
||
|
||
/applications/{uuid}/envs
|
||
|
||
Create env by application UUID.
|
||
|
||
Authorizations[](https://coolify.io/docs/api-reference/api/operations/create-env-by-application-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-application-uuid#parameters)
|
||
|
||
--------------------------------------------------------------------------------------------------------------
|
||
|
||
### Path Parameters
|
||
|
||
uuid\*
|
||
|
||
UUID of the application.
|
||
|
||
Type
|
||
|
||
string
|
||
|
||
Required
|
||
|
||
Request Body[](https://coolify.io/docs/api-reference/api/operations/create-env-by-application-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-application-uuid#responses)
|
||
|
||
------------------------------------------------------------------------------------------------------------
|
||
|
||
201400401404
|
||
|
||
Environment variable created.
|
||
|
||
Content-Type
|
||
|
||
application/json
|
||
|
||
SchemaJSON
|
||
|
||
JSON
|
||
|
||
{
|
||
|
||
"uuid": "nc0k04gk8g0cgsk440g0koko"
|
||
|
||
}
|
||
|
||
POST
|
||
|
||
/applications/{uuid}/envs
|
||
|
||
Playground[](https://coolify.io/docs/api-reference/api/operations/create-env-by-application-uuid#playground)
|
||
|
||
--------------------------------------------------------------------------------------------------------------
|
||
|
||
Authorization
|
||
|
||
bearerAuth
|
||
|
||
Variables
|
||
|
||
Key
|
||
|
||
Value
|
||
|
||
uuid\*
|
||
|
||
Body
|
||
|
||
Try it out
|
||
|
||
Samples[](https://coolify.io/docs/api-reference/api/operations/create-env-by-application-uuid#samples)
|
||
|
||
--------------------------------------------------------------------------------------------------------
|
||
|
||
Powered by [VitePress OpenAPI](https://github.com/enzonotario/vitepress-openapi)
|