Get a collection of rows by the filter criteria
Returns a collection of rows when a application/vnd.sas.data.row.set.criteria resource is provided in the body of the request. Standard paging options are provided. Sorting is provider dependent, but the default sort order is ascending by row order (i.e. index). If the provider has naturally unordered row data, it must allow for pagination in a consistent manner.
1{2 "version": 1,3 "cells": [4 "Acura",5 "MDX",6 "SUV",7 "$46,945",8 "17",9 "23"10 ],11 "links": [12 {13 "method": "GET",14 "rel": "up",15 "href": "/rowSets/tables/cas~fs~cas-shared-default~fs~MYCASLIB~fs~CARS/rows",16 "uri": "/rowSets/tables/cas~fs~cas-shared-default~fs~MYCASLIB~fs~CARS/rows",17 "type": "application/vnd.sas.collection",18 "itemType": "application/vnd.sas.data.row"19 }20 ]21}
Name | Type | Required | Description |
---|---|---|---|
tableId | string | true | The ID of the table. Its format is providerId |
Name | Type | Required | Description |
---|---|---|---|
excludeItemLinks | boolean | false | Excludes the links from this collection's items. Defaults to true. |
includeIndex | boolean | false | Includes the row index as the first item in the row data. Defaults to false. |
limit | integer<int32> | false | Pagination parameter, how many items to return. Default: 10 |
preserveSession | boolean | false | This parameter has effect only if the sessionId query parameter is not specified. If set to true, and no sessionId is provided, the session created by the data service provider is not destroyed. All returned links, except the "self" link, will have the sessionId query parameter added to their respective URIs. Also, they will contain an additional session link to the application/vnd.sas.data.session resource that corresponds to the provided sessionId. If set to false or not specified, the session is deleted after the request is complete. Defaults to false. |
sessionId | string | false | The unique identifier of the session that is used to access the data service provider's backing service. When this parameter is not specified, the data service provider creates a temporary session and then destroys it after the request is complete. If this parameter is specified, all returned links, except the "self" link, have the sessionId query parameter added to their respective URIs. Also, they will contain an additional session link to the application/vnd.sas.data.session resource that corresponds to the provided sessionId. |
sortBy | string<sort-criteria> | false | Sort returned rows of data. Rows sorted by any valid column ID. The default sort order is ascending by row order (i.e. index). Examples: Sort ascending by column with id COLUMN_A: /rowSets/tables/{tableId}/rows?sortBy=COLUMN_A:ascending Sort descending by column with id COLUMN_A: /rowSets/tables/{tableId}/rows?sortBy=COLUMN_A:descending |
start | integer<int32> | false | Pagination parameter, what is the starting index. Default: 0 |
Status | Meaning | Description | ||
---|---|---|---|---|
201 | Created | Created. The requested row has both been created. | Headers | Schema |
400 | Bad Request | The request was invalid. The error might occur in one of the following scenarios: <ul> <li>A negative start value is provided.</li> <li>A negative limit value is provided.</li> <li>A non-existent column is specified in the sortBy parameter.</li> <li>A non-existent resource member is specified in the excludeItemFields parameter.</li> </ul> | Schema | |
404 | Not Found | No resource exists at the requested path. The table could not be found at the requested path. | Schema |