POST api/Documents/DocumentFromString
Post Document from a x64 encoded string
Request Information
URI Parameters
None.
Body Parameters
FromStringDocModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ImageSourceUrl |
URL of image Source |
string |
None. |
| DocumentId |
Document Guid |
globally unique identifier |
None. |
| FileDocString |
Document as B64 String |
string |
None. |
| Name |
Name of Document |
string |
None. |
| DocTypeId |
Id of Document Type |
integer |
None. |
| Lastchanged |
Date of last change of document |
date |
None. |
| CompanyId |
Company Id related to the Document |
integer |
None. |
| SiteId |
Site Id related to the Document |
integer |
None. |
| PostId |
Post Id related to the Document |
integer |
None. |
| EmployesId |
Employe Id related to the Document |
integer |
None. |
| IsTargetDoc |
True if Document target groups instead of sites |
boolean |
None. |
| IsShareable |
True if Document can be shared |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"ImageSourceUrl": "sample string 1",
"DocumentId": "bce96ce6-a3bc-4823-a6ea-9ac4df843ce9",
"FileDocString": "sample string 3",
"Name": "sample string 4",
"DocTypeId": 1,
"Lastchanged": "2025-12-27T02:23:39.7692017+00:00",
"CompanyId": 6,
"SiteId": 7,
"PostId": 1,
"EmployesId": 1,
"IsTargetDoc": true,
"IsShareable": true
}
application/xml, text/xml
Sample:
<FromStringDocModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ELO_IdentityAPI_Eloapp.net.Models"> <CompanyId>6</CompanyId> <DocTypeId>1</DocTypeId> <DocumentId>bce96ce6-a3bc-4823-a6ea-9ac4df843ce9</DocumentId> <EmployesId>1</EmployesId> <FileDocString>sample string 3</FileDocString> <ImageSourceUrl>sample string 1</ImageSourceUrl> <IsShareable>true</IsShareable> <IsTargetDoc>true</IsTargetDoc> <Lastchanged>2025-12-27T02:23:39.7692017+00:00</Lastchanged> <Name>sample string 4</Name> <PostId>1</PostId> <SiteId>7</SiteId> </FromStringDocModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Documents| Name | Description | Type | Additional information |
|---|---|---|---|
| DocumentId | globally unique identifier |
None. |
|
| DocumentTypeId | integer |
None. |
|
| Name | string |
None. |
|
| PublishedDate | date |
None. |
|
| LastChanged | date |
None. |
|
| LastChange_AuthorId | integer |
None. |
|
| ViewCount | integer |
None. |
|
| Url_Min | string |
None. |
|
| Url_Mobile | string |
None. |
|
| Url_Web | string |
None. |
|
| Url_Origin | string |
None. |
|
| IsTargetDoc | boolean |
None. |
|
| IsShareable | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"DocumentId": "72d9bc3d-542b-40a7-be6d-13e816ce1c67",
"DocumentTypeId": 2,
"Name": "sample string 3",
"PublishedDate": "2025-12-27T02:23:39.7692017+00:00",
"LastChanged": "2025-12-27T02:23:39.7692017+00:00",
"LastChange_AuthorId": 1,
"ViewCount": 1,
"Url_Min": "sample string 6",
"Url_Mobile": "sample string 7",
"Url_Web": "sample string 8",
"Url_Origin": "sample string 9",
"IsTargetDoc": true,
"IsShareable": true
}
application/xml, text/xml
Sample:
<Documents xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ELO_IdentityAPI_Eloapp.net.Models"> <DocumentId>72d9bc3d-542b-40a7-be6d-13e816ce1c67</DocumentId> <DocumentTypeId>2</DocumentTypeId> <IsShareable>true</IsShareable> <IsTargetDoc>true</IsTargetDoc> <LastChange_AuthorId>1</LastChange_AuthorId> <LastChanged>2025-12-27T02:23:39.7692017+00:00</LastChanged> <Name>sample string 3</Name> <PublishedDate>2025-12-27T02:23:39.7692017+00:00</PublishedDate> <Url_Min>sample string 6</Url_Min> <Url_Mobile>sample string 7</Url_Mobile> <Url_Origin>sample string 9</Url_Origin> <Url_Web>sample string 8</Url_Web> <ViewCount>1</ViewCount> </Documents>