POST api/Documents/DocumentFileFromString
Create Document File 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": "af84950c-2190-4af4-ae57-29e98dd99524",
"FileDocString": "sample string 3",
"Name": "sample string 4",
"DocTypeId": 1,
"Lastchanged": "2025-12-27T02:24:31.7970549+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>af84950c-2190-4af4-ae57-29e98dd99524</DocumentId> <EmployesId>1</EmployesId> <FileDocString>sample string 3</FileDocString> <ImageSourceUrl>sample string 1</ImageSourceUrl> <IsShareable>true</IsShareable> <IsTargetDoc>true</IsTargetDoc> <Lastchanged>2025-12-27T02:24:31.7970549+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": "73868ab8-53e6-4f6c-aac6-442eb10683ef",
"DocumentTypeId": 2,
"Name": "sample string 3",
"PublishedDate": "2025-12-27T02:24:31.7970549+00:00",
"LastChanged": "2025-12-27T02:24:31.7970549+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>73868ab8-53e6-4f6c-aac6-442eb10683ef</DocumentId> <DocumentTypeId>2</DocumentTypeId> <IsShareable>true</IsShareable> <IsTargetDoc>true</IsTargetDoc> <LastChange_AuthorId>1</LastChange_AuthorId> <LastChanged>2025-12-27T02:24:31.7970549+00:00</LastChanged> <Name>sample string 3</Name> <PublishedDate>2025-12-27T02:24:31.7970549+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>