Delete Service
Permanently delete a service, its deployments, and its config. Mounted volumes are not deleted, they remain in the environment and can be mounted on another service. If it was the last service in its service group, the group is deleted too.
Permanently delete a service, its deployments, and its config. Mounted volumes are not deleted, they remain in the environment and can be mounted on another service. If it was the last service in its service group, the group is deleted too.
Authorization
bearerAuth Access token or API key (unb_...) passed as Authorization: Bearer <token>.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/services/delete" \ -H "Content-Type: application/json" \ -d '{ "environment_id": "string", "project_id": "string", "service_id": "string", "team_id": "string" }'{ "data": { "deleted": true, "id": "string" }}Update Service PUT
Update a service's config (source, build, runtime, networking). A running service rolls the change out right away, rebuilding when the source or a build setting changed. A service that was never deployed picks it up on its first deployment.
Reorder Services PUT
Set the custom order of an environment's service groups and the services that are not in a group, which everyone who sees the environment gets. List them in the order they should appear; ones left out keep their order after the listed ones. A group moves with its services. Returns the environment's services in the new order.