Skip to content

Stop a service

Stop a running or failing service, keeping its configuration and data.

Updated

post

https://cloud.cahaves.com/api/services/{id}/stop

Authorization

cahaves.cloud.sessionstringcookierequired

The session cookie Cloud sets when a customer signs in to the console with GitHub or Google. It is HttpOnly, so scripts cannot read it, and there are no API keys or tokens yet.

Path parameters

idstring<uuid>required

The service's id.

Example: "0b9e4d2a-7c13-4f6e-a8d5-3e1c9b7f2a40"

Headers

X-Cloud-Organizationstring<uuid>

The id of the organization the request works in, one the signed-in customer owns. Left out or empty, the request works in their oldest organization. Any other value answers 404 with `reason: "organization"`. A customer with no organization yet gets 409 "Create an organization first." from every route that works in one.

Example: "2f6c8e0a-4b1d-4e7f-9a3c-5d7e9f1b3a5c"

Responses

application/json

The stopped service.

serviceobjectrequired

Stops a service that is running or in error. Any other state is answered as it is, with nothing changed. A service with nothing running is not charged for the hours it stays stopped. A suspended account can still stop its services. A service stopped for billing is suspended, so it is answered as it is, and it starts again with the rest when its organization's stop lifts: stop it after that if it is no longer needed.