Search Data Releases
1 min
GET
https://api.b.preview.loyaltyservices.io/api/v3/data-releases
Query Parameters
- textstringDescription
- statusCodestringDescription
- publishStartDatestring<date>DescriptionFormatdate
- publishEndDatestring<date>DescriptionFormatdate
- includeItemSummarybooleanDescription
- includeItemsbooleanDescription
- includeStatusHistoriesbooleanDescription
Responses
200
- DataRelease[]Description
- idinteger<int64>DescriptionFormatint64
- namestringDescription
- descriptionstringDescription
- statusCodestringDescription
- publishDatestringDescription
- approvalsNeededbooleanDescription
- approversstring[]Description
- cancelablebooleanDescription
- editablebooleanDescription
- deletablebooleanDescription
- createDatestring<date-time>DescriptionFormatdate-time
- createUserNamestringDescription
- updateDatestring<date-time>DescriptionFormatdate-time
- updateUserNamestringDescription
- itemSummaryDataReleaseItemSummary[]Description
- typeCodestringDescription
- countintegerDescription
- itemsDataReleaseItem[]Description
- idinteger<int64>DescriptionFormatint64
- itemIdstringDescription
- typeCodestringDescription
- statusCodestringDescription
- namestringDescription
- workflowStatusCodestringDescription
- startDatestringDescription
- endDatestringDescription
- dataReleaseItemStatusstringDescription
- isEditablebooleanDescription
- isReapprovablebooleanDescription
- isBumpablebooleanDescription
- isUsedbooleanDescription
- statusHistoriesDataReleaseHistory[]Description
- prevStatusCodestringDescription
- statusCodestringDescription
- commentsstringDescription
- createDatestring<date-time>DescriptionFormatdate-time
- createUserNamestringDescription
- updateDatestring<date-time>DescriptionFormatdate-time
- updateUserNamestringDescription
400
- ErrorResponse
- errorsValidationError[]Description
- codestringDescription
- fieldNamestringDescription
- messagestringDescription
- messageParametersobject[]Description
401
403
500
curl
curl --request GET \
--url https://api.b.preview.loyaltyservices.io/api/v3/data-releases \
--header 'accept: application/json'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.b.preview.loyaltyservices.io/api/v3/data-releases", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api.b.preview.loyaltyservices.io/api/v3/data-releases")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://api.b.preview.loyaltyservices.io/api/v3/data-releases"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// Success
[
{
"id": "",
"name": "",
"description": "",
"statusCode": "",
"publishDate": "",
"approvalsNeeded": false,
"approvers": [
""
],
"cancelable": false,
"editable": false,
"deletable": false,
"createDate": "",
"createUserName": "",
"updateDate": "",
"updateUserName": "",
"itemSummary": [
{
"typeCode": "",
"count": 0
}
],
"items": [
{
"id": "",
"itemId": "",
"typeCode": "",
"statusCode": "",
"name": "",
"workflowStatusCode": "",
"startDate": "",
"endDate": "",
"dataReleaseItemStatus": "",
"isEditable": false,
"isReapprovable": false,
"isBumpable": false,
"isUsed": false
}
],
"statusHistories": [
{
"prevStatusCode": "",
"statusCode": "",
"comments": "",
"createDate": "",
"createUserName": "",
"updateDate": "",
"updateUserName": ""
}
]
}
]400
// Bad request
{
"errors": [
{
"code": "",
"fieldName": "",
"message": "",
"messageParameters": [
{}
]
}
]
}401
// Unauthorized
403
// Forbidden
500
// Internal error