POST api/Administration/DataReference/CreateUpdate

Request Information

URI Parameters

None.

Body Parameters

DataReferenceViewModel
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Title

string

None.

Description

string

None.

IsActive

boolean

None.

IsDeleted

boolean

None.

DataReferenceTypeId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "1a75065c-f81b-4561-9426-5e7344323361",
  "Title": "sample string 2",
  "Description": "sample string 3",
  "IsActive": true,
  "IsDeleted": true,
  "DataReferenceTypeId": "d1bbc3b2-9c3a-408a-9a92-064c33d3acf4"
}

application/xml, text/xml

Sample:
<DataReferenceViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iP.Products.MySDS.WebAPI.Areas.Administration.ViewModels">
  <DataReferenceTypeId>d1bbc3b2-9c3a-408a-9a92-064c33d3acf4</DataReferenceTypeId>
  <Description>sample string 3</Description>
  <Id>1a75065c-f81b-4561-9426-5e7344323361</Id>
  <IsActive>true</IsActive>
  <IsDeleted>true</IsDeleted>
  <Title>sample string 2</Title>
</DataReferenceViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Id"

1a75065c-f81b-4561-9426-5e7344323361
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Title"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Description"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="IsActive"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="IsDeleted"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="DataReferenceTypeId"

d1bbc3b2-9c3a-408a-9a92-064c33d3acf4
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml, multipart/form-data

Sample:

Sample not available.