POST api/ClientAllergies/PutClientAllergy

Request Information

URI Parameters

None.

Body Parameters

ClientAllergyDto
NameDescriptionTypeAdditional information
ID

integer

None.

ClientID

integer

None.

ClientName

string

None.

AllergyName

string

None.

AllergyImage

string

None.

IsDelete

boolean

None.

CreatedBy

integer

None.

UpdatedBy

integer

None.

CreatedDate

date

None.

UpdatedDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "ClientID": 1,
  "ClientName": "sample string 2",
  "AllergyName": "sample string 3",
  "AllergyImage": "sample string 4",
  "IsDelete": true,
  "CreatedBy": 1,
  "UpdatedBy": 1,
  "CreatedDate": "2026-06-30T14:17:43.4578666+01:00",
  "UpdatedDate": "2026-06-30T14:17:43.4578666+01:00"
}

text/xml

Sample:
<ClientAllergyDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessEntities.Models">
  <AllergyImage>sample string 4</AllergyImage>
  <AllergyName>sample string 3</AllergyName>
  <ClientID>1</ClientID>
  <ClientName>sample string 2</ClientName>
  <CreatedBy>1</CreatedBy>
  <CreatedDate>2026-06-30T14:17:43.4578666+01:00</CreatedDate>
  <ID>1</ID>
  <IsDelete>true</IsDelete>
  <UpdatedBy>1</UpdatedBy>
  <UpdatedDate>2026-06-30T14:17:43.4578666+01:00</UpdatedDate>
</ClientAllergyDto>

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

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>