> ## Documentation Index
> Fetch the complete documentation index at: https://mako-docs.devinagiffy.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Resolve Flag

> Mark a wellbeing flag as resolved

<Note>This endpoint requires Manager or Admin role.</Note>

## Path Parameters

<ParamField path="id" type="string" required>
  Flag UUID
</ParamField>

## Response

Returns the updated flag.

<ResponseField name="id" type="string">
  Flag UUID
</ResponseField>

<ResponseField name="status" type="string">
  Updated status: `resolved`
</ResponseField>

<ResponseField name="resolvedAt" type="string">
  Resolution timestamp
</ResponseField>

<ResponseField name="resolvedBy" type="string">
  User ID of resolver
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X PATCH "https://api.hitler.app/api/flags/flag-uuid-123/resolve" \
    -H "Authorization: Bearer YOUR_TOKEN"
  ```

  ```typescript TypeScript theme={null}
  const flag = await api.resolveFlag("flag-uuid-123");
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": "flag-uuid-123",
    "severity": "medium",
    "status": "resolved",
    "reason": "Declining mood trend over past 2 weeks",
    "userId": "user-uuid",
    "organizationId": "org-uuid",
    "createdAt": "2024-01-15T00:00:00.000Z",
    "resolvedAt": "2024-01-18T14:30:00.000Z",
    "resolvedBy": "manager-uuid"
  }
  ```

  ```json 403 theme={null}
  {
    "statusCode": 403,
    "message": "Forbidden",
    "error": "Forbidden"
  }
  ```
</ResponseExample>
