Skip to main content

Override service environment variables

Message format

{
"header": {
"version": 5,
"systemId": "unit-uid",
"messageType": "overrideEnvVars"
},
"data": {
"overrideEnvVars": [
{
"serviceId": "72d9bb12-9b44-4201-a6a3-e5b707294d60",
"subjectId": "some-subject-uuid",
"instance": "0",
"envVars": [
{
"id": "env variable uuid",
"variable": ENV_NAME + "=" + ENV_VALUE,
"ttl": "2024-08-31T23:59:59"
}
]
}
]
}
}

Response from unit

{
"header": {
"version": 5,
"systemId": "unit-uid",
"messageType": "overrideEnvVarsStatus"
},
"data": {
"overrideEnvVarsStatus": [
{
"serviceId": "72d9bb12-9b44-4201-a6a3-e5b707294d60",
"subjectId": "some-subject-uuid",
"instance": 0,
"statuses": [
{
"id": "some_ID",
"error": "empty if no error"
}
]
}
]
}
}