POST APIControllers/Wellness/SavePetProfile

Request Information

URI Parameters

None.

Body Parameters

UpdateWellnessProfileRequest
NameDescriptionTypeAdditional information
DateOfBirth

date

None.

PetTypeId

integer

None.

PetBreedId

integer

None.

IsCrossBreed

boolean

None.

PetBreedSizeId

integer

None.

Weight

decimal number

None.

Answers

Collection of WellnessRuleAnswer

None.

SecurityKey

string

None.

PetId

integer

None.

PolicyId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "DateOfBirth": "2025-08-28T10:57:35.8500311+02:00",
  "PetTypeId": 2,
  "PetBreedId": 3,
  "IsCrossBreed": true,
  "PetBreedSizeId": 5,
  "Weight": 6.0,
  "Answers": [
    {
      "WellnessRuleId": 1,
      "Question": "sample string 2",
      "QuestionTypeId": 1,
      "AnswerId": 3,
      "Answer": "sample string 4"
    },
    {
      "WellnessRuleId": 1,
      "Question": "sample string 2",
      "QuestionTypeId": 1,
      "AnswerId": 3,
      "Answer": "sample string 4"
    }
  ],
  "SecurityKey": "sample string 7",
  "PetId": 8,
  "PolicyId": 9
}

application/xml, text/xml

Sample:
<UpdateWellnessProfileRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/mobile.oneplan.co.za.Models">
  <PetId>8</PetId>
  <PolicyId>9</PolicyId>
  <SecurityKey>sample string 7</SecurityKey>
  <Answers>
    <WellnessRuleAnswer>
      <Answer>sample string 4</Answer>
      <AnswerId>3</AnswerId>
      <Question>sample string 2</Question>
      <QuestionTypeId>String</QuestionTypeId>
      <WellnessRuleId>1</WellnessRuleId>
    </WellnessRuleAnswer>
    <WellnessRuleAnswer>
      <Answer>sample string 4</Answer>
      <AnswerId>3</AnswerId>
      <Question>sample string 2</Question>
      <QuestionTypeId>String</QuestionTypeId>
      <WellnessRuleId>1</WellnessRuleId>
    </WellnessRuleAnswer>
  </Answers>
  <DateOfBirth>2025-08-28T10:57:35.8500311+02:00</DateOfBirth>
  <IsCrossBreed>true</IsCrossBreed>
  <PetBreedId>3</PetBreedId>
  <PetBreedSizeId>5</PetBreedSizeId>
  <PetTypeId>2</PetTypeId>
  <Weight>6</Weight>
</UpdateWellnessProfileRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseOfException
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

Entity

Exception

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2",
  "Entity": {
    "ClassName": "System.Exception",
    "Message": null,
    "Data": null,
    "InnerException": null,
    "HelpURL": "sample string 1",
    "StackTraceString": null,
    "RemoteStackTraceString": null,
    "RemoteStackIndex": 0,
    "ExceptionMethod": null,
    "HResult": 3,
    "Source": "sample string 2",
    "WatsonBuckets": null
  }
}

application/xml, text/xml

Sample:
<ResponseOfException5F2dSckg xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OnePlan.Core">
  <Entity xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <ClassName xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">System.Exception</ClassName>
    <Message i:nil="true" xmlns="" />
    <Data i:nil="true" xmlns="" />
    <InnerException i:nil="true" xmlns="" />
    <HelpURL xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 1</HelpURL>
    <StackTraceString i:nil="true" xmlns="" />
    <RemoteStackTraceString i:nil="true" xmlns="" />
    <RemoteStackIndex xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">0</RemoteStackIndex>
    <ExceptionMethod i:nil="true" xmlns="" />
    <HResult xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">3</HResult>
    <Source xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 2</Source>
    <WatsonBuckets i:nil="true" xmlns="" />
  </Entity>
  <Message>sample string 2</Message>
  <Success>true</Success>
</ResponseOfException5F2dSckg>