Create or update results or master data

Use this API operation to create or update quality results in analysis sets or master data in selection lists.

Returns 400 Bad Request if results is empty, or if editOnly is used without keyField. Returns 413 Payload Too Large if results contains more than 1,000 results.

Request formats

This operation accepts multipart/form-data, application/x-www-form-urlencoded and application/json.

With application/json, the request body is the results value itself, and setId, keyField, editOnly, addListOptions must be passed as query parameters. The query parameters below are only needed in that case; with a form content type they can be sent as form fields instead.

Examples

multipart/form-data:

curl -X POST 'https://tenant.alisqi.com/api/storeResults' \
  -H 'Authorization: Bearer <token>' \
  -F setId=12 \
  -F 'results=[{"batch_": "B150125", "status_": "In production"}]'

application/x-www-form-urlencoded:

curl -X POST 'https://tenant.alisqi.com/api/storeResults' \
  -H 'Authorization: Bearer <token>' \
  --data-urlencode setId=12 \
  --data-urlencode 'results=[{"batch_": "B150125", "status_": "In production"}]'

application/json:

curl -X POST 'https://tenant.alisqi.com/api/storeResults?setId=12&keyField=batch_&editOnly=true' \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  -d '[{"batch_": "B150125", "status_": "Released"}]'
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
integer

The unique id of the analysis set or selection list.

This parameter is required and has no default.

Note: for historical reasons, this parameter is usually called maskid in AlisQI URLs. The API uses setId for consistency with the terminology used in the user interface.

Required as a query parameter when the request body is application/json.

string

See the keyField form field.

boolean
Defaults to false

See the editOnly form field.

boolean
Defaults to false

See the addListOptions form field.

Body Params

The results value: an array of 1 to 1,000 result objects. See the results form field for the format.

Headers
string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Responses

null if no error occurred.

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json