Skip to main content

deactivate_service

Function deactivate_service 

Source
pub fn deactivate_service(
    corpus: &str,
    service: &str,
    confirm: Option<&str>,
    actor: Actor,
    pool: &State<DbPool>,
) -> Status
Expand description

Deactivates (retires) a service from a corpus: deletes that pair’s tasks + log messages (the service definition and its work on other corpora are untouched — the symmetric counterpart of activate_service). Token-gated via the Actor guard and confirmation-gated (?confirm=<service>, echoing the service name). Returns 204 on success, 400 if the confirmation doesn’t match, 404 if the corpus or service is unknown.