| Time | Status | User Agent |  |
| :-- | :-- | :-- | :-- |
| Make a request to see history. |

#### URL Expired

The URL for this request expired after 30 days.

### Action

- **action**  
  type: string  
  enum: required  
  Action to perform: 'enable' or 'disable'  
  Allowed: `disable`, `enable`

### Fields

- `id`: HashID of the report  
- `name`: Report name  
- `description`: Report description  
- `enabled`: Boolean indicating if the report is enabled for the user's organization  
- `labels`: List of labels for filtering and organizing reports  
- `sort_priority`: Priority for sorting reports (lower values appear first)

### Enabled Field Logic

The `enabled` field shows whether this report is enabled for the authenticated user's organization:

- `True`: OrganizationReportLink exists between the report and user's organization  
- `False`: No OrganizationReportLink exists (report is disabled for the organization)

This applies to both public reports and reports owned by the organization.

Even owned reports must be explicitly enabled via OrganizationReportLink.

- **name**  
  type: string required  
  length ≤ 255  
  The name of the report

- **description**  
  type: string | null  
  Description of the report

- **labels**  
  type: array of strings  
  Labels for filtering and organizing reports (max 55 chars, letters, numbers, spaces, and dashes only)  
  `labels`  
  ADD string

- **sort_priority**  
  type: integer  
  -2147483648 to 2147483647  
  Lower values appear first in lists (0 at top)

### content-type

- **content-type**  
  type: string  
  enum  
  Defaults to application/json  
  Generated from available request content types  
  Allowed: `application/json`, `application/x-www-form-urlencoded`, `multipart/form-data`

# Response Codes

# `200`
object
- **message**: string

# `400`

# `404`

# `500`

### Curl Example

```bash
curl --request POST \
     --url https://api.flextract.dev/api/reports/hashid/access/disable/ \
     --header 'accept: application/json' \
     --header 'content-type: application/json'
```

### Example Response

```json
{
  "message": "string"
}
```
