/v1/workspaces/{workspace_id}/projects/{project_id}/stale-flags/digestAuthSend the stale-flag digest now
Emails the digest that otherwise goes out every Monday at 07:00 UTC: each flag owner gets their stale flags; flags without an owner go to the workspace owners. Recipients are always members of the workspace.
Path parameters
project_id*string · uuidId of the project.
workspace_id*string · uuidId of the workspace.
Response · 202 The digests are queued.
stale_flags*integerStale flags in the project.
Example: 4
digests_queued*integerDigest emails queued (one per flag owner; unowned flags go to the workspace owners).
Example: 2
Example
Request
POST https://api.flags.productcraft.co/v1/workspaces/{workspace_id}/projects/{project_id}/stale-flags/digest
Authorization: Bearer YOUR_TOKENimport { Flags } from "@productcraft/flags";
// Reads PRODUCTCRAFT_API_KEY from the environment
const flags = new Flags();
const staleDigest = await flags.projects.staleFlags.sendDigest("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");flags.projects.staleFlags.sendDigest(projectId, options?): Flags.StaleDigest
Response
{
"stale_flags": 4,
"digests_queued": 2
}