---
title: "Search Corrective Actions"
method: GET
path: "/v1/corrective-action/"
tags: ["Corrective Actions"]
---

# Search Corrective Actions

`GET /v1/corrective-action/`

Search for corrective actions that match the provided search terms.

Keywords are searched for in the _assigned user first and last names_, _assigned company name_, _completed user first and last name_, _completed company name_, _sender first and last name_, _sender company name_, _the form submit key_, _action text_, _feed post content_, _and correction action response._

In addition, this endpoint provides additional parameters for filtering the results.

## Query parameters

- `form_id` integer, nullable
- `form_submit_id` integer, nullable
- `feed_post_id` integer, nullable
- `due_date` string, date-time, nullable
- `completed_start` string, date-time, nullable
- `completed_end` string, date-time, nullable
- `query` string, nullable
- `skip` integer, nullable
- `limit` integer, nullable
- `sort_direction` 'asc' | 'desc' — Direction to sort the `sort_column` - ascending or descending.
- `date_start` string, date-time, nullable
- `date_cut_off` string, date-time, nullable
- `sort_column` 'updated_at' | 'created_at' | 'id' — Which column to sort on

## Response `200`

Successful Response

- ApiGenericListResponseFeedPostCorrectiveActionSearchModel
  - `error` boolean — A boolean error indicator.
  - `message` string, nullable — Optional message.
  - `data` FeedPostCorrectiveActionSearchModel[], nullable — The response data for any given request.
    - `id` integer, nullable, required — The corrective action identifier
    - `feedPostId` integer, nullable, required — The identifier for the associated feed post
    - `assignedToUserId` integer, nullable, required — The user identifier that the corrective action is assigned to
    - `assignedToCompanyId` integer, nullable, required — The company identifier for the user that the corrective action is assigned to
    - `completedByUserId` integer, nullable, required — The user identifier that completed the corrective action
    - `completedByCompanyId` integer, nullable, required — The company identifier for the user that completed the corrective action
    - `completedOn` string, date-time, nullable, required — When the corrective action was completed
    - `feedPostResponseId` integer, nullable, required — The identifier for the response
    - `action` string, nullable, required — The action that should be taken
    - `dueDate` string, date-time, nullable, required — Date the action should be completed by
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
    - `assignedToUserName` string, nullable, required — The name of the user that the corrective action is assigned to
    - `assignedToCompanyName` string, nullable, required — The name of the company for the user that the corrective action is assigned to
    - `completedByUserName` string, nullable, required — The name of the user that completed the corrective action
    - `completedByCompanyName` string, nullable, required — The name of the company for the user that completed the corrective action
    - `senderUserId` integer, nullable, required — The user identifier that created the corrective action
    - `senderUserName` string, nullable, required — The name of the user that created the corrective action
    - `senderCompanyId` integer, nullable, required — The company identifier for the user that created the corrective action
    - `senderCompanyName` string, nullable, required — The name of the company for the user that created the corrective action
    - `responseUserId` integer, nullable, required — The user identifier that replied
    - `responseComment` string, nullable, required — A user's response to the corrective action
    - `formSubmitId` integer, nullable, required
    - `typeId` integer, nullable, required — The corrective action type identifier
    - `typeName` string, nullable, required — The name of the corrective action type
    - `siteId` integer, nullable, required — The identifier of the site this happened at
    - `siteName` string, nullable, required — The name of the site this happened at

## Other responses

- `400` — Business Logic Error
- `403` — Permission Error
- `404` — Records Not Found
- `409` — Integrity Error or Data Conflict
- `422` — Validation Error

---

[API](https://skmtc.dev/salussafety/apis/salus-developer-api.md) · [All operations](https://skmtc.dev/salussafety/apis/salus-developer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/salussafety/salus-developer-api/revisions/ef065f44da25/schema)
