POST api/FoodSystemsTranslation/AddUserFoodSystem_v2

Request Information

URI Parameters

None.

Body Parameters

UserFoodSystemDTO
NameDescriptionTypeAdditional information
healthStatusId

Collection of integer

None.

accountId

integer

Required

calories

integer

None.

language

string

None.

Request Formats

application/json, text/json

Sample:
{
  "healthStatusId": [
    1,
    1
  ],
  "accountId": 1,
  "calories": 2,
  "language": "sample string 1"
}

text/plain, application/octet-stream

Sample:
{"healthStatusId":[1,1],"accountId":1,"calories":2,"language":"sample string 1"}

application/xml, text/xml

Sample:
<UserFoodSystemDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RashakaApi.Modules.FoodSystems.DTO">
  <accountId>1</accountId>
  <calories>2</calories>
  <healthStatusId xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>1</d2p1:int>
  </healthStatusId>
  <language>sample string 1</language>
</UserFoodSystemDTO>

multipart/form-data, application/form-data

Sample:
<UserFoodSystemDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RashakaApi.Modules.FoodSystems.DTO"><accountId>1</accountId><calories>2</calories><healthStatusId xmlns:d2p1="http://schemas.datacontract.org/2004/07/System"><d2p1:int>1</d2p1:int><d2p1:int>1</d2p1:int></healthStatusId><language>sample string 1</language></UserFoodSystemDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/plain, application/octet-stream, application/xml, text/xml, multipart/form-data, application/form-data

Sample:

Sample not available.