Get projects

get/projects
Internal-Use Only

Returns a list of projects. Standard paging, filtering, and sorting options are provided. The media type of the returned collection items is either application/vnd.sas.project.summary (default), or application/vnd.sas.project depending on the Accept-Item header. Default sorting for this collection is name:ascending. HEAD is also supported and returns status and headers only.

Request Samples

1

Response Samples

1{
2 "name": "string",
3 "start": 0,
4 "limit": 0,
5 "count": 0,
6 "accept": "string",
7 "links": [
8 {
9 "method": "string",
10 "rel": "string",
11 "uri": "string",
12 "href": "string",
13 "title": "string",
14 "type": "string",
15 "itemType": "string",
16 "responseType": "string",
17 "responseItemType": "string"
18 }
19 ],
20 "version": 0,
21 "items": [
22 {
23 "name": "string",
24 "description": "string",
25 "imageUri": "http://example.com",
26 "properties": {
27 "property1": "string",
28 "property2": "string"
29 },
30 "version": 0,
31 "id": "string",
32 "folderUri": "http://example.com",
33 "userCount": 0,
34 "groupCount": 0,
35 "createdBy": "string",
36 "creationTimeStamp": "2019-08-24T14:15:22Z",
37 "modifiedBy": "string",
38 "modifiedTimeStamp": "2019-08-24T14:15:22Z",
39 "links": [
40 {
41 "method": "string",
42 "rel": "string",
43 "uri": "string",
44 "href": "string",
45 "title": "string",
46 "type": "string",
47 "itemType": "string",
48 "responseType": "string",
49 "responseItemType": "string"
50 }
51 ]
52 }
53 ]
54}

Query Parameters

NameTypeRequiredDescription
filter
string<filter-criteria>
false

The criteria for filtering the projects. See Filtering in REST APIs.

identityUri
string<uri>
false

Return projects containing only a participant with the specified identityUri. This should be the URI of the actual user or group object from the Identities service.

limit
integer
false

The maximum number of projects to return. The default is 20.

resourceUri
string<uri>
false

Return projects containing only a resource with the specified resourceUri. This should be the URI of the underlying resource object itself and not the vnd.sas.project.resource object's URI.

sortBy
string<sort-criteria>
false

The criteria for sorting the projects. See Sorting in REST APIs.

start
integer
false

The offset of the first project to return. The default is 0.

Header Parameters

NameTypeRequiredDescription
Accept-Item
string
false

The desired project representation. If no Accept-Item is specified, application/vnd.sas.project.summary items are returned.

Allowed values:
application/vnd.sas.project.summary+jsonapplication/vnd.sas.project+json

Responses

StatusMeaningDescription
200OKThe request succeeded. The list of projects was returned.Schema
400Bad RequestThe request was invalid. An invalid filter or combination of request parameters was provided.Schema