POST api/role/{id}/setdocumentplaceholder

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

SetPlaceholderDocumentDataContract
NameDescriptionTypeAdditional information
PlaceholderType

EnumDataContract

None.

PlaceholderSourceType

EnumDataContract

None.

GroupId

integer

None.

Id

integer

None.

Request Formats

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 'SetPlaceholderDocumentDataContract'.

application/json, text/json

Sample:
{
  "PlaceholderType": {
    "Id": 1,
    "Name": "sample string 2",
    "SystemName": "sample string 3"
  },
  "PlaceholderSourceType": {
    "Id": 1,
    "Name": "sample string 2",
    "SystemName": "sample string 3"
  },
  "GroupId": 1,
  "Id": 1
}

Response Information

Resource Description

DocumentPlaceholderDataContract
NameDescriptionTypeAdditional information
Description

string

None.

DocumentPlaceholderType

EnumDataContract

None.

DocumentPlaceholderSourceType

EnumDataContract

None.

Document

DocumentDataContract

None.

DocumentType

EnumDataContract

None.

DocumentSubType

EnumDataContract

None.

GroupId

integer

None.

LastUpdated

date

None.

CreatedDate

date

None.

CreatedBy

CreatedByDataContract

None.

Id

integer

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'SanitizingJsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'Dezrez.Core.DataContracts.External.Api.Media.DocumentDataContract'. Path 'Document.Attachments'.

text/json

Sample:

An exception has occurred while using the formatter 'SanitizingJsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'Dezrez.Core.DataContracts.External.Api.Media.DocumentDataContract'. Path 'Document.Attachments'.