UpsertAutomationsFile
POST/gitpod.v1.EnvironmentAutomationService/UpsertAutomationsFile
Upserts the automations file for the given environment.
Use this method to:
- Configure environment automations
- Update automation settings
- Manage automation files
Examples
-
Update automations file:
Updates or creates the automations configuration.
environmentId: "07e03a28-65a5-4d98-b532-8ea67b188048" automationsFile: services: web-server: name: "Web Server" description: "Development web server" commands: start: "npm run dev" ready: "curl -s http://localhost:3000" triggeredBy: - postDevcontainerStart tasks: build: name: "Build Project" description: "Builds the project artifacts" command: "npm run build" triggeredBy: - postEnvironmentStart
UpsertAutomationsFile
curl https://app.gitpod.io/api/gitpod.v1.EnvironmentAutomationService/UpsertAutomationsFile \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $GITPOD_API_KEY" \
-d '{}'{
"updatedServiceIds": [
"string"
],
"updatedTaskIds": [
"string"
]
}Returns Examples
{
"updatedServiceIds": [
"string"
],
"updatedTaskIds": [
"string"
]
}