/v1/workspaces/{workspace_slug}/services/{service}AuthDisable a service (settings are retained)
Path parameters
workspace_slug*stringSlug of the workspace. Platform routes name the workspace by slug, positionally in the SDK (`platform.workspaces.retrieve("acme")`); the product APIs bind `workspace_id` instead.
service*stringThe product: `auth`, `mail`, `waitlist`, `social`, `trawl`, `flags` or `notify`.
Response · 204
Service disabled. Settings preserved for re-enable.
Example
Request
DELETE https://api.platform-auth.productcraft.co/v1/workspaces/{workspace_slug}/services/{service}
Authorization: Bearer YOUR_TOKENimport { PlatformAuth } from "@productcraft/platform-auth";
// Reads PRODUCTCRAFT_API_KEY from the environment; administration
// calls take a person's session: { auth: { type: "bearer", token } }
const platform = new PlatformAuth();
await platform.workspaces.services.disable("acme", "mail");platform.workspaces.services.disable(workspaceSlug, service, options?): void