Return a [paginated](https://developer.apiture.com/docs/concepts/pagination) [sortable](https://developer.apiture.com/docs/concepts/sorting) [filterable](https://developer.apiture.com/docs/concepts/filtering) [searchable](https://developer.apiture.com/docs/concepts/searchable) collection of approvals. The [links](https://developer.apiture.com/docs/concepts/links) in the response include pagination links.
curl -X GET -H "API-Key: [[apiKey]]" "http:///approvals/approvalTypes?start=&limit=&sortBy=&filter=&q=&label=&name="
import { ApprovalTypeApi } from "@apiture/approvals-client-sdk";
const approvalTypeApi = new ApprovalTypeApi(configuration);
// Configure OAuth2 access token for authorization: accessToken
var accessToken = "YOUR ACCESS TOKEN";
approvalTypeApi.setAccessToken(accessToken)
// Configure API key authorization: apiKey
var apiKey = "YOUR API KEY";
approvalTypeApi.setApiKey(apiKey);
var api = new Approvals.ApprovalTypeApi.getApprovalTypes()
var opts = {
'start': 789, // {Long} The zero-based index of the first approval type item to include in this page. The default 0 denotes the beginning of the collection.
'limit': 56, // {Integer} The maximum number of approval type representations to return in this page.
'sortBy': sortBy_example, // {String} Optional sort criteria. See [sort criteria format](https://developer.apiture.com/docs/concepts/sorting), such as `?sortBy=field1,-field2`.
'filter': filter_example, // {String} Optional filter criteria. See [filtering](https://developer.apiture.com/docs/concepts/filtering).
'q': q_example, // {String} Optional search string. See [searching](https://developer.apiture.com/docs/concepts/searching).
'label': label_example, // {String} Subset the approvals collection to those with this label value. Use `|` to separate multiple values. For example, `?label=email_verification` matches only items whose label is `email_verification`; `?label=email_verification|account_verification` will match items whose label is `email_verification` or `account_verification`. This is combined with an implicit and with other filters if they are used. See [filtering](https://developer.apiture.com/docs/concepts/filtering).
'name': name_example // {String} Subset the approvals collection to those with this name value. Use `|` to separate multiple values. For example, `?name=Bartell` will match only items whose name is Bartell; `?name=Bartell|kirsten` will match items whose name is Bartell or kirsten. This is combined with an implicit and with other filters if they are used. See [filtering](https://developer.apiture.com/docs/concepts/filtering).
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
approvalTypeApi.getApprovalTypes(opts, callback);
Name |
Description |
start |
Long
(int64)
The zero-based index of the first approval type item to include in this page. The default 0 denotes the beginning of the collection.
|
limit |
Integer
(int32)
The maximum number of approval type representations to return in this page.
|
sortBy |
String
Optional sort criteria. See [sort criteria format](https://developer.apiture.com/docs/concepts/sorting), such as `?sortBy=field1,-field2`.
|
filter |
String
Optional filter criteria. See [filtering](https://developer.apiture.com/docs/concepts/filtering).
|
q |
String
Optional search string. See [searching](https://developer.apiture.com/docs/concepts/searching).
|
label |
String
Subset the approvals collection to those with this label value. Use `|` to separate multiple values. For example, `?label=email_verification` matches only items whose label is `email_verification`; `?label=email_verification|account_verification` will match items whose label is `email_verification` or `account_verification`. This is combined with an implicit and with other filters if they are used. See [filtering](https://developer.apiture.com/docs/concepts/filtering).
|
name |
String
Subset the approvals collection to those with this name value. Use `|` to separate multiple values. For example, `?name=Bartell` will match only items whose name is Bartell; `?name=Bartell|kirsten` will match items whose name is Bartell or kirsten. This is combined with an implicit and with other filters if they are used. See [filtering](https://developer.apiture.com/docs/concepts/filtering).
|