Get term types

get/termTypes
Internal-Use Only

Returns a list of term types. The items are sorted by name by default. The properties that can be used as filter and sort criteria are:

  • id
  • name
  • label
  • description
  • createdBy
  • creationTimeStamp
  • modifiedBy
  • modifiedTimeStamp

Request Samples

1

Response Samples

1{
2 "version": 2,
3 "accept": "application/vnd.sas.glossary.term.type.summary",
4 "count": 1,
5 "start": 0,
6 "limit": 10,
7 "name": "termTypes",
8 "items": [
9 {
10 "creationTimeStamp": "0001-01-01T00:00:00Z",
11 "createdBy": "sasuser",
12 "modifiedTimeStamp": "2021-10-11T00:00:00Z",
13 "modifiedBy": "sasuser",
14 "id": "d4671576-1de8-44e3-8ddf-fc1c17bf4134",
15 "links": [
16 {
17 "method": "GET",
18 "rel": "self",
19 "href": "/glossary/termTypes/d4671576-1de8-44e3-8ddf-fc1c17bf4134",
20 "uri": "/glossary/termTypes/d4671576-1de8-44e3-8ddf-fc1c17bf4134",
21 "type": "application/vnd.sas.glossary.term.type"
22 },
23 {
24 "method": "GET",
25 "rel": "up",
26 "href": "/glossary/termTypes",
27 "uri": "/glossary/termTypes",
28 "type": "application/vnd.sas.collection",
29 "itemType": "application/vnd.sas.glossary.term.type.summary"
30 },
31 {
32 "method": "PUT",
33 "rel": "update",
34 "href": "/glossary/termTypes/d4671576-1de8-44e3-8ddf-fc1c17bf4134",
35 "uri": "/glossary/termTypes/d4671576-1de8-44e3-8ddf-fc1c17bf4134",
36 "type": "application/vnd.sas.glossary.term.type",
37 "responseType": "application/vnd.sas.glossary.term.type"
38 },
39 {
40 "method": "DELETE",
41 "rel": "delete",
42 "href": "/glossary/termTypes/d4671576-1de8-44e3-8ddf-fc1c17bf4134",
43 "uri": "/glossary/termTypes/d4671576-1de8-44e3-8ddf-fc1c17bf4134"
44 },
45 {
46 "method": "GET",
47 "rel": "alternate",
48 "href": "/glossary/termTypes/d4671576-1de8-44e3-8ddf-fc1c17bf4134",
49 "uri": "/glossary/termTypes/d4671576-1de8-44e3-8ddf-fc1c17bf4134",
50 "type": "application/vnd.sas.glossary.term.type.summary"
51 }
52 ],
53 "version": 1,
54 "name": "customType",
55 "label": "Custom Term Type",
56 "description": "A custom type definition.",
57 "usageCount": 0,
58 "attributeCount": 0
59 }
60 ],
61 "links": [
62 {
63 "method": "GET",
64 "rel": "self",
65 "href": "/glossary/termTypes?start=0&limit=10&sortBy=name",
66 "uri": "/glossary/termTypes?start=0&limit=10&sortBy=name",
67 "type": "application/vnd.sas.collection",
68 "itemType": "application/vnd.sas.glossary.term.type.summary+json"
69 },
70 {
71 "method": "GET",
72 "rel": "collection",
73 "href": "/glossary/termTypes",
74 "uri": "/glossary/termTypes",
75 "type": "application/vnd.sas.collection",
76 "itemType": "application/vnd.sas.glossary.term.type.summary+json"
77 },
78 {
79 "method": "GET",
80 "rel": "up",
81 "href": "/glossary",
82 "uri": "/glossary",
83 "type": "application/vnd.sas.api"
84 },
85 {
86 "method": "POST",
87 "rel": "create",
88 "href": "/glossary/termTypes",
89 "uri": "/glossary/termTypes",
90 "type": "application/vnd.sas.glossary.term.type+json",
91 "responseType": "application/vnd.sas.glossary.term.type.summary+json"
92 }
93 ]
94}

Query Parameters

NameTypeRequiredDescription
filter
string<filter-criteria>
false

Filter criteria for returned objects. See Filtering in REST APIs.

limit
integer
false

Maximum number of objects to return. Defaults to 10.

sortBy
string<sort-criteria>
false

Sort criteria for returned objects. See Sorting in REST APIs.

start
integer
false

The zero-based offset of first object to return. Defaults to 0.

Header Parameters

NameTypeRequiredDescription
Accept
string
false

The desired representation for the response.

Allowed values:
application/vnd.sas.collection+jsonapplication/json
Default:
application/vnd.sas.collection+json
Accept-Item
string
false

The desired item representation for collections.

Allowed values:
application/vnd.sas.glossary.term.type.summary+jsonapplication/vnd.sas.glossary.term.type+jsonapplication/json
Default:
application/vnd.sas.glossary.term.type.summary+json

Responses

StatusMeaningDescription
200OKOK.HeadersSchema
401UnauthorizedNot authenticated.Schema
403ForbiddenThe user does not have permission to complete this request.Schema
404Not FoundThe specified resource was not found.Schema
406Not AcceptableNot Acceptable. Include an Accept header with a supported value on the request.Schema