Page Properties |
---|
|
Product Version |
|
---|
Report Note |
|
---|
Assignee |
|
---|
Resources & Remarks Modification History Name | Date | Product Version | Action |
---|
Antje | 18 MAY 2021 | 2021 Summer | Page created. |
|
As of Version | product version 2020 Autumn | component version |
---|
Request Method | POST |
---|
Response Format | JSON |
---|
Description |
Excerpt |
---|
Creates a DMS object with the data passed in the multipart request body including the metadata in JSON structure and optionally a binary content file. |
The metadata of the created object are returned in the response body. Response HTTP status codes: HTTP Status Code | Meaning |
---|
200 | OK | 401 | Unauthorized |
|
---|
Request Example | POST /api-web/dms/objects HTTP/1.1
Accept: application/json, application/*+json
Content-Type: multipart/form-data;boundary=Jn3QCX9rHAFQaofW6vsdoz5CsD5_P0PZhH
|
---|
User-Agent: Java/1.8.0_60
Connection: keep-alive
Content-Length: 83258
Host: 127.0.0.1:7400
--Jn3QCX9rHAFQaofW6vsdoz5CsD5_P0PZhH
Content-Disposition: form-data; name="data"; filename="blob"
Content-Type: application/json;charset=UTF-8
{
"system:objectTypeId":
|
{ "value": "appEmail:email"
},
"from": {
"value": "Garco Meissler <garco@example.de>"
},
"to": {
"value": "Dudreas Annkel <dudreas@example.de>"
},
"cc": {
"value": "Kruedeas Anger <kruedeas@example.de>"
},
"subject": {
"value": "Bewerbungsunterlagen"
}
},
"contentStreams": [{
"mimeType": "message/rfc822",
"fileName": "upload.eml",
"cid": "cid_63apple"
}],
"renditions": [{
"mimeType": "text/plain",
"kind": "text",
"contentStream": {
"length": 39939,
"mimeType": "text/plain",
"fileName": "content.txt",
"cid": "rendition_0"
}
}],
"options": {
"synchronousContentAnalysis": true
}
}]
}
--Jn3QCX9rHAFQaofW6vsdoz5CsD5_P0PZhH
Content-Disposition: form-data; name="cid_63apple"; filename="upload.eml"
Content-ID: cid_63apple
Content-Type: message/rfc822
From: Garco Meissler <garco@example.de>
To: Dudreas Annkel <dudreas@example.de>
Cc: Kruedeas Anger <kruedeas@example.de>
Message-ID: <12716821.1.1500391295036.JavaMail.meissler@APGMEISSLER>
Subject: =?UTF-8?Q?Bewerbungsunterlagen?=
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_0_16468615.1500391295024"
------=_Part_0_16468615.1500391295024
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy ei=
rmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam volu=
ptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita k=
asd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lore=
...
en, no sea takimata sanctus est Lore
------=_Part_0_16468615.1500391295024--
--Jn3QCX9rHAFQaofW6vsdoz5CsD5_P0PZhH
Content-Disposition: form-data; name="rendition_0"; filename="content.txt"
Content-ID: rendition_0
Content-Type: text/plain
Content-Length: 39939
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua...
--Jn3QCX9rHAFQaofW6vsdoz5CsD5_P0PZhH
Response Example | 200 OK
Code Block |
{
"objects": [
{
"properties": { "appPersonalfile:pfdocumentdlm",
"system:tags": [["appclient:dlm:prepare",0]] }
--Jn3QCX9rHAFQaofW6vsdoz5CsD5_P0PZhH
Content-Disposition: form-data; name="files"; filename="JPG_Test-min.jpg"
Content-Type: image/jpeg
--Jn3QCX9rHAFQaofW6vsdoz5CsD5_P0PZhH
|
Response Example | 200 OK
Code Block |
---|
{
"objects":[
{
"properties":{
"system:objectId":{
"value":"4ce10337-5875-4a83-8762-4cdc5fa069ra"
},
"system:baseTypeId":{
"value":"system:document"
},
"system:objectTypeId":{
"value":"appPersonalfile:pfdocumentdlm"
},
"system:secondaryObjectTypeIds":{
"value":[
"appClientsystem:leadingType",
"appClient:clientdefaults"
]
},
"system:createdBy":{
"title":"Musterperson, Maria (musterperson)",
"value":"7d331831-190e-4251-9070-27d36baca9de"
},
"system:creationDate":{
"value":"2021-12-07T11:56:11.160Z"
},
"system:lastModifiedBy":{
"title":"Musterperson, Maria (musterperson)",
"value":"7d331831-190e-4251-9070-27d36baca9de"
},
"system:lastModificationDate":{
"value":"2021-12-07T11:56:11.160Z"
},
"system:versionNumber":{
"value":1
},
"system:tenant":{
"value":"atenant"
},
"system:traceId":{
"value":"376553d4ebad587a"
},
"system:tags":{
"value":[
[
"appclient:dlm:prepare",
0,
"2021-12-07T11:56:11.160Z",
"376553d4ebad587a"
],
[
"litedms:ocr",
0,
"2021-12-07T11:56:11.160Z",
"376553d4ebad587a"
]
]
},
" |
|
---|
systemobjectId{ "4711-44321-666777888""appPersonalfile:pfdocumentdlm"
}
},
" |
|
subjectvaluecontentStreamId":"74C9A216-51C9-11EC-B87A-315108D8F4B4",
|
|
"Sie sind der Doc, Doc." "archivePath":"atenant/2021/12/07/",
"length":198833,
|
|
}}}],numItems 0,hasMoreItems true,"EFE27946FC2ABB81AC37BCA1F400F99C7FA3DD6F6EA72E3F47437EED842DD123",
" |
|
totalNumItems 0"s3miniowithpath"
}
]
}
]
} |
|