Flags API reference

Flags API · Stale-Flags

post/v1/workspaces/{workspace_id}/projects/{project_id}/stale-flags/digestAuth

Send 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 · uuid

Id of the project.

workspace_id*string · uuid

Id of the workspace.

Response · 202 The digests are queued.

stale_flags*integer

Stale flags in the project.

Example: 4

digests_queued*integer

Digest 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_TOKEN

Response

{
  "stale_flags": 4,
  "digests_queued": 2
}