POST api/Documents/DocumentFileFromUrl

Create Document File from an ImageUrl

Request Information

URI Parameters

None.

Body Parameters

FromStringDocModel
NameDescriptionTypeAdditional 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": "2876b594-70a0-410e-8761-b6607bc323bb",
  "FileDocString": "sample string 3",
  "Name": "sample string 4",
  "DocTypeId": 1,
  "Lastchanged": "2025-08-14T03:12:09.6777115+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>2876b594-70a0-410e-8761-b6607bc323bb</DocumentId>
  <EmployesId>1</EmployesId>
  <FileDocString>sample string 3</FileDocString>
  <ImageSourceUrl>sample string 1</ImageSourceUrl>
  <IsShareable>true</IsShareable>
  <IsTargetDoc>true</IsTargetDoc>
  <Lastchanged>2025-08-14T03:12:09.6777115+00:00</Lastchanged>
  <Name>sample string 4</Name>
  <PostId>1</PostId>
  <SiteId>7</SiteId>
</FromStringDocModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'FromStringDocModel'.

Response Information

Resource Description

Documents
NameDescriptionTypeAdditional 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": "1d1b8471-6232-470e-b788-a1b219921dc4",
  "DocumentTypeId": 2,
  "Name": "sample string 3",
  "PublishedDate": "2025-08-14T03:12:09.6777115+00:00",
  "LastChanged": "2025-08-14T03:12:09.6777115+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>1d1b8471-6232-470e-b788-a1b219921dc4</DocumentId>
  <DocumentTypeId>2</DocumentTypeId>
  <IsShareable>true</IsShareable>
  <IsTargetDoc>true</IsTargetDoc>
  <LastChange_AuthorId>1</LastChange_AuthorId>
  <LastChanged>2025-08-14T03:12:09.6777115+00:00</LastChanged>
  <Name>sample string 3</Name>
  <PublishedDate>2025-08-14T03:12:09.6777115+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>