Copy selected sheets to the provided object

post/documents/{objectTypeName}/{objectId}/sheets
Internal-Use Only

The sheet copy selection included in the request body is used to copy the sheets from their location. The sheets are copied to the object specified in the path. The object to which the sheets were copied is returned as an enriched document.

Request Samples

1

Response Samples

1{
2 "objectTypeName": "person",
3 "objectTypeId": 100515,
4 "objectTypeVersion": 4,
5 "id": "2f21e644-089a-47d8-a503-bbdd4d8dac3d",
6 "fieldValues": {
7 "birthday": "2020-01-05T00:00:00Z",
8 "created_at_dttm": "2020-04-13T19:17:47.84Z",
9 "created_by_user_id": "viuser",
10 "first_name": "John",
11 "id": "2f21e644-089a-47d8-a503-bbdd4d8dac3d",
12 "last_name": "Smith",
13 "last_updated_at_dttm": "2020-04-13T19:31:37.097Z",
14 "last_updated_by_user_id": "viuser",
15 "version": 4
16 },
17 "createdAt": "2020-04-13T19:17:47.840Z",
18 "lastUpdatedAt": "2020-04-13T19:31:37.097Z",
19 "validFrom": "2020-01-05T00:00:00.000Z",
20 "fieldRestrictions": {
21 "person": {
22 "ssn": {
23 "masked": {
24 "currentUserIsAuthorizedToReveal": true
25 }
26 }
27 }
28 },
29 "sheets": [
30 {
31 "id": 201,
32 "type": "WORKSHEET",
33 "name": "Workspace-1",
34 "version": 2,
35 "created": "2020-04-13T19:27:08.105Z",
36 "createdBy": "viuser",
37 "lastModified": "2020-04-13T19:27:26.175Z",
38 "lastModifiedBy": "viuser",
39 "tabOrder": 0,
40 "uxState": {
41 "commonToolPane": {
42 "expanded": true,
43 "width": 340
44 },
45 "filterPanel": {
46 "expanded": true,
47 "width": 200
48 }
49 },
50 "cells": [
51 {
52 "type": "LIVE",
53 "id": 301,
54 "row": 0,
55 "position": 0,
56 "height": 0,
57 "width": 0,
58 "version": 1,
59 "documents": [
60 {
61 "type": "person",
62 "id": "2f21e644-089a-47d8-a503-bbdd4d8dac3d",
63 "uniqueId": "person#2f21e644-089a-47d8-a503-bbdd4d8dac3d"
64 },
65 {
66 "type": "person",
67 "id": "ba0f8afd-b6e0-4763-91a8-9c6810d0156b",
68 "uniqueId": "person#ba0f8afd-b6e0-4763-91a8-9c6810d0156b"
69 }
70 ],
71 "visualizationType": "Network",
72 "resultsPerPage": 0,
73 "networkData": {
74 "links": [],
75 "nodes": {
76 "person~2f21e644-089a-47d8-a503-bbdd4d8dac3d": {
77 "id": "person~2f21e644-089a-47d8-a503-bbdd4d8dac3d",
78 "transitionStart": {
79 "x": 667,
80 "y": 206.5
81 },
82 "type": "person",
83 "typeLabel": "Person",
84 "x": 711.99394815911,
85 "y": 220.234232742122
86 },
87 "person~ba0f8afd-b6e0-4763-91a8-9c6810d0156b": {
88 "id": "person~ba0f8afd-b6e0-4763-91a8-9c6810d0156b",
89 "transitionStart": {
90 "x": 339.81315560960843,
91 "y": 106.62745147130762
92 },
93 "type": "person",
94 "typeLabel": "Person",
95 "x": 621.6305200034983,
96 "y": 192.65113758282533
97 }
98 },
99 "numNodes": 2,
100 "options": {
101 "activeNodes": false,
102 "centralityType": null,
103 "displayableTransactionType": null,
104 "groupCtr": 1,
105 "layout": {
106 "charge": 25,
107 "linkDistance": 130,
108 "linkStrength": 0.4,
109 "velocityDecay": 0.45
110 },
111 "nodeCtr": 1,
112 "scale": 2.0766116941529233,
113 "showLegend": true,
114 "showLinkLabels": false,
115 "showNodeAnnotation": true,
116 "showNodeLabels": true,
117 "showTimeline": false,
118 "showTransactionDetails": false,
119 "showTransactionLinks": false,
120 "toolsPane": {
121 "activeTool": "Object Inspector",
122 "open": true
123 },
124 "transactionTypeIndex": 0,
125 "translate": [
126 -872.0999999999999,
127 -222.32031484257868
128 ]
129 }
130 }
131 }
132 ]
133 }
134 ],
135 "comments": [
136 {
137 "id": 1,
138 "author": {
139 "id": "viuser",
140 "name": "Test viuser"
141 },
142 "createDate": "2020-04-13T19:18:05.087Z",
143 "lastUpdatedAt": "2020-04-13T19:18:05.087Z",
144 "lastUpdatedBy": "viuser",
145 "detail": "Sample comment<br />"
146 }
147 ],
148 "attachmentsCount": 2
149}

Path Parameters

NameTypeRequiredDescription
objectId
string
true

The ID of the object.

objectTypeName
string
true

The name of the object type.

Request Body

The sheet copy selection identifies the sheets to copy to the target object.

A selection of sheets to copy.

NameTypeRequiredDescription
sheetIds
array [integer]<int64>
false

The values that uniquely identify the sheets to copy.

objectTypeName
string
false

The object type name of the object to which the sheets are attached.

objectId
string
false

The ID of the object to which the sheets are attached.

Responses

StatusMeaningDescription
201CreatedThe request succeeded. The enriched document to which the sheets were copied was returned.Schema
400Bad RequestThe request failed. The parameters and the sheet IDs cannot be null or empty.Schema
404Not FoundThe request failed. The object or sheet was not found or the user did not have permission to view the object.Schema