Get multiple answers
get
/services/rest/connect/v1.4/answers
Request
Supported Media Types
- application/x-www-form-urlencoded
Query Parameters
-
fields: string
The list of attributes that should be returned in the response. The syntax contains a comma delimited string of attributes.
For example: ?fields=attribute1,attribute2 -
limit: integer
The requested page size, which limits the number of records returned in the response.
For example: ?limit=100 -
offset: integer
The starting position of the record. For example, if you set an offset of 8, the request will skip the first eight records, and include the records from the ninth record in the response. The default value is 0, which means that the records will be returned from the first record.
For example: ?offset=8 -
orderBy: string
The list of attributes used to determine the order in which the records are returned. The syntax contains a comma delimited string of attributes, with each attribute optionally followed by 'asc' or 'desc'. Specify 'asc' for ascending order and 'desc' for descending order. The default value is 'asc'.
For example: ?orderBy=field1:asc,field2:desc -
q: string
The query parameter that allows searching by providing ROQL 'where' clause filtering.
For example: ?q=id>2 and id<10< div> 10<> -
totalResults: boolean
Indicates whether the count for the total number of records returned should be shown. The default value is false.
If you set the value of totalResults as true, the response will include the count of records retrieved by the request.
Example response:"totalResults": 27
Response
Supported Media Types
- application/json;type=collection
Default Response
Root Schema : answers-collection
Type:
object
Collection of answers
Show Source
-
createdTime(optional):
string
The date and time when the answer was created. This attribute is read-only.
-
id(optional):
integer
Minimum Value:
1
Maximum Value:9.223372036854776E18
The unique identifier of the answer. -
lookupName(optional):
string
Maximum Length:
255
The name used to look up the answer. -
updatedTime(optional):
string
The date and time when the answer was last updated. This attribute is read-only.
Examples
Use GET with the following syntax to list all answers:
https://your_site_interface/services/rest/connect/version/answers
Request URI example
https://mysite.example.com/services/rest/connect/v1.4/answers
Response body example
{
"items": [
{
"id": 1,
"lookupName": "1",
"createdTime": "2012-08-14T19:19:52Z",
"updatedTime": "2015-06-23T16:49:14Z",
"links": [
{
"rel": "canonical",
"href": "https://mysite.example.com/services/rest/connect/v1.4/answers/1"
}
]
},
{
"id": 2,
"lookupName": "2",
"createdTime": "2012-08-14T19:22:52Z",
"updatedTime": "2015-06-23T16:50:06Z",
"links": [
{
"rel": "canonical",
"href": "https://mysite.example.com/services/rest/connect/v1.4/answers/2"
}
]
},
...
{
"id": 57,
"lookupName": "57",
"createdTime": "2016-01-29T19:35:41Z",
"updatedTime": "2016-01-29T19:35:41Z",
"links": [
{
"rel": "canonical",
"href": "https://mysite.example.com/services/rest/connect/v1.4/answers/57"
}
]
}
],
"hasMore": false,
"links": [
{
"rel": "canonical",
"href": "https://mysite.example.com/services/rest/connect/v1.4/answers"
},
{
"rel": "describedby",
"href": "https://mysite.example.com/services/rest/connect/v1.4/metadata-catalog/answers",
"mediaType": "application/schema+json"
},
{
"rel": "self",
"href": "https://mysite.example.com/services/rest/connect/v1.4/answers"
}
]
}