Create multiple members

post/annotations/members
Internal-Use Only

Multi-POST. It takes map of annotationIds to list of members and creates the members if they don't exists. This operation is used to create members that will be associated with an annotation. All successfully created members will be returned in the response body in the order that they were provided in the request body. For any members that failed to be created, the collection returned will contain an application/vnd.sas.error object in place of application/vnd.sas.member object.

Request Samples

1

Response Samples

1{
2 "start": 0,
3 "count": 3,
4 "limit": 3,
5 "version": 2,
6 "items": [
7 {
8 "creationTimeStamp": "2023-04-10 20:11:17.132000+00:00",
9 "modifiedTimeStamp": "2023-04-10 20:11:17.132000+00:00",
10 "createdBy": "sasboot",
11 "modifiedBy": "sasboot",
12 "version": 1,
13 "id": "a7f35cb5-c72d-4fae-a5f3-af74f26cdf42",
14 "annotationId": "561b0a40-70d2-4f48-a682-7c52c4c3b9b6",
15 "resourceType": "table",
16 "resourceUri": "objects/b673660283/96764860d",
17 "value": "objectValue",
18 "links": [
19 {
20 "method": "GET",
21 "rel": "annotation",
22 "href": "/annotations/annotations/561b0a40-70d2-4f48-a682-7c52c4c3b9b6",
23 "uri": "/annotations/annotations/561b0a40-70d2-4f48-a682-7c52c4c3b9b6",
24 "type": "application/vnd.sas.annotation"
25 },
26 {
27 "method": "GET",
28 "rel": "self",
29 "href": "/annotations/annotations/561b0a40-70d2-4f48-a682-7c52c4c3b9b6/members/a7f35cb5-c72d-4fae-a5f3-af74f26cdf42",
30 "uri": "/annotations/annotations/561b0a40-70d2-4f48-a682-7c52c4c3b9b6/members/a7f35cb5-c72d-4fae-a5f3-af74f26cdf42",
31 "type": "application/vnd.sas.annotation.member"
32 },
33 {
34 "method": "PUT",
35 "rel": "update",
36 "href": "/annotations/annotations/561b0a40-70d2-4f48-a682-7c52c4c3b9b6/members/a7f35cb5-c72d-4fae-a5f3-af74f26cdf42",
37 "uri": "/annotations/annotations/561b0a40-70d2-4f48-a682-7c52c4c3b9b6/members/a7f35cb5-c72d-4fae-a5f3-af74f26cdf42",
38 "type": "application/vnd.sas.annotation.member"
39 },
40 {
41 "method": "DELETE",
42 "rel": "delete",
43 "href": "/annotations/annotations/561b0a40-70d2-4f48-a682-7c52c4c3b9b6/members/a7f35cb5-c72d-4fae-a5f3-af74f26cdf42",
44 "uri": "/annotations/annotations/561b0a40-70d2-4f48-a682-7c52c4c3b9b6/members/a7f35cb5-c72d-4fae-a5f3-af74f26cdf42"
45 },
46 {
47 "method": "GET",
48 "rel": "up",
49 "href": "/annotations/annotations/561b0a40-70d2-4f48-a682-7c52c4c3b9b6/members",
50 "uri": "/annotations/annotations/561b0a40-70d2-4f48-a682-7c52c4c3b9b6/members",
51 "type": "application/vnd.sas.annotation.member",
52 "responseType": "application/vnd.sas.annotation.member"
53 }
54 ]
55 },
56 {
57 "creationTimeStamp": "2023-04-10 20:11:17.132000+00:00",
58 "modifiedTimeStamp": "2023-04-10 20:11:17.132000+00:00",
59 "createdBy": "sasboot",
60 "modifiedBy": "sasboot",
61 "version": 1,
62 "id": "b7f35cb5-c72d-4fae-a5f3-af74f26cdf42",
63 "annotationId": "561b0a40-70d2-4f48-a682-7c52c4c3b9b6",
64 "resourceType": "table",
65 "resourceUri": "objects/b673660283/96764860d",
66 "value": "objectValue",
67 "links": [
68 {
69 "method": "GET",
70 "rel": "annotation",
71 "href": "/annotations/annotations/561b0a40-70d2-4f48-a682-7c52c4c3b9b6",
72 "uri": "/annotations/annotations/561b0a40-70d2-4f48-a682-7c52c4c3b9b6",
73 "type": "application/vnd.sas.annotation"
74 },
75 {
76 "method": "GET",
77 "rel": "self",
78 "href": "/annotations/annotations/561b0a40-70d2-4f48-a682-7c52c4c3b9b6/members/b7f35cb5-c72d-4fae-a5f3-af74f26cdf42",
79 "uri": "/annotations/annotations/561b0a40-70d2-4f48-a682-7c52c4c3b9b6/members/b7f35cb5-c72d-4fae-a5f3-af74f26cdf42",
80 "type": "application/vnd.sas.annotation.member"
81 },
82 {
83 "method": "PUT",
84 "rel": "update",
85 "href": "/annotations/annotations/561b0a40-70d2-4f48-a682-7c52c4c3b9b6/members/b7f35cb5-c72d-4fae-a5f3-af74f26cdf42",
86 "uri": "/annotations/annotations/561b0a40-70d2-4f48-a682-7c52c4c3b9b6/members/b7f35cb5-c72d-4fae-a5f3-af74f26cdf42",
87 "type": "application/vnd.sas.annotation.member"
88 },
89 {
90 "method": "DELETE",
91 "rel": "delete",
92 "href": "/annotations/annotations/561b0a40-70d2-4f48-a682-7c52c4c3b9b6/members/b7f35cb5-c72d-4fae-a5f3-af74f26cdf42",
93 "uri": "/annotations/annotations/561b0a40-70d2-4f48-a682-7c52c4c3b9b6/members/b7f35cb5-c72d-4fae-a5f3-af74f26cdf42"
94 },
95 {
96 "method": "GET",
97 "rel": "up",
98 "href": "/annotations/annotations/561b0a40-70d2-4f48-a682-7c52c4c3b9b6/members",
99 "uri": "/annotations/annotations/561b0a40-70d2-4f48-a682-7c52c4c3b9b6/members",
100 "type": "application/vnd.sas.annotation.member",
101 "responseType": "application/vnd.sas.annotation.member"
102 }
103 ]
104 },
105 {
106 "creationTimeStamp": "2023-04-10 20:11:17.132000+00:00",
107 "modifiedTimeStamp": "2023-04-10 20:11:17.132000+00:00",
108 "createdBy": "sasboot",
109 "modifiedBy": "sasboot",
110 "version": 1,
111 "id": "c7f35cb5-c72d-4fae-a5f3-af74f26cdf42",
112 "annotationId": "a92de124-1404-4431-8863-7d5978388222",
113 "resourceType": "table",
114 "resourceUri": "objects/b673660283/96764860d",
115 "value": "objectValue",
116 "links": [
117 {
118 "method": "GET",
119 "rel": "annotation",
120 "href": "/annotations/annotations/a92de124-1404-4431-8863-7d5978388222",
121 "uri": "/annotations/annotations/a92de124-1404-4431-8863-7d5978388222",
122 "type": "application/vnd.sas.annotation"
123 },
124 {
125 "method": "GET",
126 "rel": "self",
127 "href": "/annotations/annotations/a92de124-1404-4431-8863-7d5978388222/members/c7f35cb5-c72d-4fae-a5f3-af74f26cdf42",
128 "uri": "/annotations/annotations/a92de124-1404-4431-8863-7d5978388222/members/c7f35cb5-c72d-4fae-a5f3-af74f26cdf42",
129 "type": "application/vnd.sas.annotation.member"
130 },
131 {
132 "method": "PUT",
133 "rel": "update",
134 "href": "/annotations/annotations/a92de124-1404-4431-8863-7d5978388222/members/c7f35cb5-c72d-4fae-a5f3-af74f26cdf42",
135 "uri": "/annotations/annotations/a92de124-1404-4431-8863-7d5978388222/members/c7f35cb5-c72d-4fae-a5f3-af74f26cdf42",
136 "type": "application/vnd.sas.annotation.member"
137 },
138 {
139 "method": "DELETE",
140 "rel": "delete",
141 "href": "/annotations/annotations/a92de124-1404-4431-8863-7d5978388222/members/c7f35cb5-c72d-4fae-a5f3-af74f26cdf42",
142 "uri": "/annotations/annotations/a92de124-1404-4431-8863-7d5978388222/members/c7f35cb5-c72d-4fae-a5f3-af74f26cdf42"
143 },
144 {
145 "method": "GET",
146 "rel": "up",
147 "href": "/annotations/annotations/a92de124-1404-4431-8863-7d5978388222/members",
148 "uri": "/annotations/annotations/a92de124-1404-4431-8863-7d5978388222/members",
149 "type": "application/vnd.sas.annotation.member",
150 "responseType": "application/vnd.sas.annotation.member"
151 }
152 ]
153 }
154 ]
155}

Request Body

Collection of map of annotation Ids to the list of members to be created.

Collection of AnnotationIDs to list members

NameTypeRequiredDescription
items
array [Create multiple members]
false

Creating members for particular annotation

Responses

StatusMeaningDescription
200OKAt least one member was created. If individual resource creation fails, the corresponding item in the response collection will be an application/vnd.sas.error object that describes why/how that operation failed. The httpStatusCode member of the nested error item will indicate the failure (401, 403, etc.).Schema
400Bad RequestThe request was invalid.Schema