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

# Needs You Now Dismissals

> Hide and restore Needs you now rows on the Collate home page with the REST API.

# Needs You Now Dismissals

Hide a row from the **Needs you now** list on the home page, or show it again. Both endpoints change only the list of the user who calls them. Any authenticated user can call them.

## Hide a Row

`PUT /v1/landingPage/needsYouNow/dismissals`

**itemId** `string` *required*

The row to hide, in the form `<type>:<uuid>`. The type is `task`, `testCase`, `service`, `certification`, or `documentationGap`, for example `task:8c1d4a52-3b8e-4e0a-9d52-0f4b6a7c2e11`.

**fingerprint** `string` *required*

The fingerprint of the row when you hide it. The row comes back when its fingerprint changes.

**action** `string` *required*

`dismissed`, `done`, or `snoozed`. `dismissed` and `done` hide the row in the same way. `snoozed` hides it until `snoozedUntil`.

**snoozedUntil** `integer`

Time until which the row stays hidden, in Unix epoch time in milliseconds. Required when `action` is `snoozed`, and only allowed then. It must be in the future and at most 30 days ahead.

```bash PUT /v1/landingPage/needsYouNow/dismissals theme={null}
curl -X PUT "{base_url}/api/v1/landingPage/needsYouNow/dismissals" \
  -H "Authorization: Bearer {access_token}" \
  -H "Content-Type: application/json" \
  -d '{
    "itemId": "task:8c1d4a52-3b8e-4e0a-9d52-0f4b6a7c2e11",
    "fingerprint": "{fingerprint}",
    "action": "dismissed"
  }'
```

The request returns `204` with no body.

## Show a Row Again

`DELETE /v1/landingPage/needsYouNow/dismissals/{itemId}`

**itemId** `string` *required*

The row to show again, in the same `<type>:<uuid>` form.

```bash DELETE /v1/landingPage/needsYouNow/dismissals/{itemId} theme={null}
curl -X DELETE "{base_url}/api/v1/landingPage/needsYouNow/dismissals/task:8c1d4a52-3b8e-4e0a-9d52-0f4b6a7c2e11" \
  -H "Authorization: Bearer {access_token}"
```

The request returns `204` with no body.

## Error Handling

| Code | Error Type | Description |
| - | - | - |
| `400` | `BAD_REQUEST` | The item ID is not valid, `snoozedUntil` is not in the future or is more than 30 days ahead, or `snoozedUntil` is set when `action` is not `snoozed` |
| `401` | `UNAUTHORIZED` | Invalid or missing authentication token |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.