PUT api/clients/{clientId}/allergy/update

Updates exisiting client allergy information.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
clientId

the Id of the client that the allergy to be updated is related to.

integer

Required

Body Parameters

the input data needed to process the UpdateClientAllergy operation.

UpdateClientAllergyInput
NameDescriptionTypeAdditional information
ClientAllergyId

integer

Required

AllergyName

string

Required

String length: inclusive between 0 and 150

AdditionalText

string

String length: inclusive between 0 and 150

ReactionId

integer

None.

ReactionNotes

string

None.

Severity

string

String length: inclusive between 0 and 50

FdbConceptId

decimal number

None.

FdbConceptTypeId

decimal number

None.

IsMedAllergy

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ClientAllergyId": 1,
  "AllergyName": "sample string 3",
  "AdditionalText": "sample string 4",
  "ReactionId": 1,
  "ReactionNotes": "sample string 5",
  "Severity": "sample string 6",
  "FdbConceptId": 1.0,
  "FdbConceptTypeId": 1.0,
  "IsMedAllergy": true
}

application/xml, text/xml

Sample:
<UpdateClientAllergyInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CWI.Mobile.Domain.DTO.ActionInputs">
  <AdditionalText>sample string 4</AdditionalText>
  <AllergyName>sample string 3</AllergyName>
  <FdbConceptId>1</FdbConceptId>
  <FdbConceptTypeId>1</FdbConceptTypeId>
  <IsMedAllergy>true</IsMedAllergy>
  <ReactionId>1</ReactionId>
  <ReactionNotes>sample string 5</ReactionNotes>
  <Severity>sample string 6</Severity>
  <ClientAllergyId>1</ClientAllergyId>
</UpdateClientAllergyInput>

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

Response Information

Resource Description

An Http response message with the following status codes: 204 = success (no content), 400 = bad request (the request is malformed or with invalid data), 404 = not found (this is returned when the supplied client Id can't be found.) 500 = something went wrong (the request was not processed).

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.