PUT api/Documents/DocumentFromString?id={id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

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": "7e179cd3-8a36-4be4-b6b4-9a5801a9d821",
  "FileDocString": "sample string 3",
  "Name": "sample string 4",
  "DocTypeId": 1,
  "Lastchanged": "2025-08-14T03:12:10.8674078+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>7e179cd3-8a36-4be4-b6b4-9a5801a9d821</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:10.8674078+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

None.