Get list of domain contents with "production" status

get/domains/{domainId}/currentContents
Internal-Use Only

Returns a list of the domain contents that have had the "production" status. For each domain content, show the begin time and end time when the "production" status was ongoing, unless no domain version ever had the "production" status. There is always one domain version whose "production" status end time is not set. This means that the production status is still current.

Request Samples

1

Response Samples

1{
2 "name": "currentContentsDesignee",
3 "accept": "application/vnd.sas.data.reference.domain.content.history",
4 "start": 0,
5 "limit": 10,
6 "count": 1,
7 "items": [
8 {
9 "id": "3",
10 "domainId": "f8600b44-092c-4095-a560-f4d2b90f1148",
11 "contentId": "ea412e18-02f2-4502-b8c6-4a4f8cad5db4",
12 "commencedTimeStamp": "2022-02-25T13:41:37.894Z",
13 "status": "production",
14 "links": [
15 {
16 "method": "GET",
17 "rel": "getContent",
18 "href": "/referenceData/domains/f8600b44-092c-4095-a560-f4d2b90f1148/contents/ea412e18-02f2-4502-b8c6-4a4f8cad5db4",
19 "uri": "/referenceData/domains/f8600b44-092c-4095-a560-f4d2b90f1148/contents/ea412e18-02f2-4502-b8c6-4a4f8cad5db4",
20 "type": "application/vnd.sas.data.reference.domain.content"
21 },
22 {
23 "method": "GET",
24 "rel": "getEntries",
25 "href": "/referenceData/domains/f8600b44-092c-4095-a560-f4d2b90f1148/contents/ea412e18-02f2-4502-b8c6-4a4f8cad5db4/entries",
26 "uri": "/referenceData/domains/f8600b44-092c-4095-a560-f4d2b90f1148/contents/ea412e18-02f2-4502-b8c6-4a4f8cad5db4/entries",
27 "type": "application/vnd.sas.collection",
28 "itemType": "application/vnd.sas.data.reference.domain.entry"
29 },
30 {
31 "method": "GET",
32 "rel": "up",
33 "href": "/referenceData/domains/f8600b44-092c-4095-a560-f4d2b90f1148/currentContents",
34 "uri": "/referenceData/domains/f8600b44-092c-4095-a560-f4d2b90f1148/currentContents",
35 "type": "application/vnd.sas.collection",
36 "itemType": "application/vnd.sas.data.reference.domain.content.history"
37 }
38 ],
39 "versionId": "ea412e18-02f2-4502-b8c6-4a4f8cad5db4"
40 }
41 ],
42 "links": [
43 {
44 "method": "GET",
45 "rel": "collection",
46 "href": "/referenceData/domains/f8600b44-092c-4095-a560-f4d2b90f1148/currentContents",
47 "uri": "/referenceData/domains/f8600b44-092c-4095-a560-f4d2b90f1148/currentContents",
48 "type": "application/vnd.sas.collection",
49 "itemType": "application/vnd.sas.data.reference.domain.content.history"
50 },
51 {
52 "method": "GET",
53 "rel": "self",
54 "href": "/referenceData/domains/f8600b44-092c-4095-a560-f4d2b90f1148/currentContents?scope=all",
55 "uri": "/referenceData/domains/f8600b44-092c-4095-a560-f4d2b90f1148/currentContents?scope=all",
56 "type": "application/vnd.sas.collection",
57 "itemType": "application/vnd.sas.data.reference.domain.content.history"
58 },
59 {
60 "method": "GET",
61 "rel": "up",
62 "href": "/referenceData/domains/f8600b44-092c-4095-a560-f4d2b90f1148/",
63 "uri": "/referenceData/domains/f8600b44-092c-4095-a560-f4d2b90f1148/",
64 "type": "application/vnd.sas.data.reference.domain"
65 }
66 ],
67 "version": 2
68}

Path Parameters

NameTypeRequiredDescription
domainId
string
true

The identifier of a reference data domain.

Query Parameters

NameTypeRequiredDescription
asOf
string<date-time>
false

Restricts the results to the current contents. This parameter can be used only when the scope parameter equals all.

filter
string<filter-criteria>
false

The filter criteria for the returned content history. When the scope parameter equals current, a filter expression is added. Since there is at most only one item returned, any additional filter expressions alters the desired result.

limit
integer
false

The maximum number of items to return on this page. The actual number of returned items might be less if there are no more items in the collection. The default is 10.

scope
string
false

Choose current to see which domain content is the current content. Choose all to see the timeline of which domain content was the current content. The default is current.'

Allowed values:
currentall
sortBy
string<sort-criteria>
false

The sorting criteria for the returned content history. The default sort order is commencedTimeStamp:ascending when the scope parameter equals all. When the scope parameter equals current, there is no need to use the sortBy parameter in conjunction since at most, one item is returned.

start
integer
false

The starting index of the first item on a page. The index is 0-based. The default index is 0.

Responses

StatusMeaningDescription
200OKThe request succeeded.HeadersSchema
400Bad RequestThe request was invalid.Schema
404Not FoundNo resource exists at the requested path. A collection for the reference data domain was not found.Schema