Search Form Instances
Changed onSearch for forms that match the provided search terms.
Keywords are searched for in the title, instance identifier, site identifier, site name, site address, company name, submitted user first and last name, draft name, device name, and device type fields.
Request
- Base URLhttps://developer.beta.salussafety.io
- URLhttps://developer.beta.salussafety.io/v1/form-instance/
- Auth
- HTTP bearer
- or OAuth 2Client credentialsToken URL: https://guardian.beta.salussafety.io/token
- or OAuth 2Authorization code: https://guardian.beta.salussafety.io/authorizeToken URL: https://guardian.beta.salussafety.io/token
Query parameters
Keywords should be space separated and are ANDed together, so all keywords must be present but they can be present in any of the fields specified above.
Number of records to skip before returning records
Number of records to return
Direction to sort the sort_column - ascending or descending.
Direction to sort the sort_column - ascending or descending
If sorting on updated_at or created_at, and date_cut_off is provided, return only records that were created or updated (whichever is being sorted on) between date_start and date_cut_off
If sorting on updated_at or created_at, return only records that were created or updated (whichever is being sorted on) between the initial value (determined by sort order) and the cutoff date.
For example, sorting on created_at ascending with a date_cut_off will return all records from the oldest creation date to the cutoff date. By comparison, sorting on created_at descending with a date_cut_off will return all records from the most recent creation date to the cutoff date.
Which column to sort on
Column to sort the results on
Specify the search mode for the form instances.
The mode of the search query, it's mutually exclusive, either search for forms submitted by the current company, or search for form that are shared with this company via site submissions where this company is parent company.
An optional filter to match by external project ID. This is an exact match.
An optional filter to match by external company ID. This is an exact match, additionally, this filter can only be applied when the search mode is for shared form instances; otherwise this parameter is ignored.
If set to true this flag will filter form instances that belong to projects that have a linked external_id attached to the project. This is useful mainly for integration scenarios.
This is the project ID of a SALUS project, in other parts of the system this is also referred to as the site ID.
The statuses of the form instances to filter. Repeat the parameter to match any of several statuses, e.g. ?form_instance_status=completed&form_instance_status=disapproved.
[ "completed" ]
The identifier value for a form template to filter by.
The numeric identifier related to the form type.
Filter by the user identifier of the user that has submitted the form.
Filter by the user identifier of the user that created the form instance.
Filter by the user identifier of a user that has signed the form.
Filter forms instances that have the flag set to restrict access to full access roles.
Ensures that forms that have not been archived are returned by default, but allows toggling the filter..
Filter by whether the form instance has associated corrective action feed posts. If true, only return form instances with at least one feed post where action_required is true. If false, only return form instances with no such feed posts.
Filter by incident ID. Returns form instances linked to this incident via the IncidentForm relationship.
Filter by whether the submission is exposed via a public access link (e.g. shared submission review, signature, collaboration, or full-access URLs). If true, only return submissions referenced by an active PublicAccess record for the current company. If false, only return submissions with no public access link.
Response
Successful Response
Changes
- breaking
removed the enum value
completedfrom thequeryrequest parameterform_instance_status - breaking
removed the enum value
disapprovedfrom thequeryrequest parameterform_instance_status - breaking
removed the enum value
draftfrom thequeryrequest parameterform_instance_status - breaking
removed the enum value
draft_pending_reviewfrom thequeryrequest parameterform_instance_status - breaking
removed the enum value
pending_reviewfrom thequeryrequest parameterform_instance_status - info
for the
queryrequest parameterform_instance_status, the type was generalized fromstringtoarray
- breaking