POST api/Claims/Add/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

string

Required

Body Parameters

Collection of ClaimBindingModel
NameDescriptionTypeAdditional information
Type

string

Required

Value

string

Required

UserRole

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Type": "sample string 1",
    "Value": "sample string 2",
    "UserRole": "sample string 3"
  },
  {
    "Type": "sample string 1",
    "Value": "sample string 2",
    "UserRole": "sample string 3"
  }
]

application/xml, text/xml

Sample:
<ArrayOfClaimBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AvicollectSecurity.Logic.Models">
  <ClaimBindingModel>
    <Type>sample string 1</Type>
    <UserRole>sample string 3</UserRole>
    <Value>sample string 2</Value>
  </ClaimBindingModel>
  <ClaimBindingModel>
    <Type>sample string 1</Type>
    <UserRole>sample string 3</UserRole>
    <Value>sample string 2</Value>
  </ClaimBindingModel>
</ArrayOfClaimBindingModel>

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 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.