POST api/TotalAyushCare/SaveFoodCategory

Documentation for 'SaveFoodCategory'.

Request Information

Parameters

NameDescriptionAdditional information
request
Documentation for 'request'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Credentials": {
    "Username": "sample string 1",
    "Password": "sample string 2",
    "ClientName": "sample string 3"
  },
  "FoodCategory": {
    "Id": "sample string 1",
    "CategoryName": "sample string 2",
    "Description": "sample string 3",
    "AddBy": "sample string 4",
    "Action": "sample string 5",
    "Source": "sample string 6"
  }
}

application/xml, text/xml

Sample:
<FoodCategoryRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TotalAyushCare.Codes">
  <Credentials>
    <ClientName>sample string 3</ClientName>
    <Password>sample string 2</Password>
    <Username>sample string 1</Username>
  </Credentials>
  <FoodCategory>
    <Action>sample string 5</Action>
    <AddBy>sample string 4</AddBy>
    <CategoryName>sample string 2</CategoryName>
    <Description>sample string 3</Description>
    <Id>sample string 1</Id>
    <Source>sample string 6</Source>
  </FoodCategory>
</FoodCategoryRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'FormUrlEncodedMediaTypeFormatterTracer' to write type 'FoodCategoryRequest'.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "message": "sample string 1",
  "errors": [
    {
      "code": "sample string 1",
      "description": "sample string 2"
    },
    {
      "code": "sample string 1",
      "description": "sample string 2"
    },
    {
      "code": "sample string 1",
      "description": "sample string 2"
    }
  ],
  "result": "sample string 2",
  "foodcategoryID": "sample string 3"
}

application/xml, text/xml

Sample:
<FoodCategoryResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TotalAyushCare.Codes">
  <errors>
    <errors>
      <code>sample string 1</code>
      <description>sample string 2</description>
    </errors>
    <errors>
      <code>sample string 1</code>
      <description>sample string 2</description>
    </errors>
    <errors>
      <code>sample string 1</code>
      <description>sample string 2</description>
    </errors>
  </errors>
  <foodcategoryID>sample string 3</foodcategoryID>
  <message>sample string 1</message>
  <result>sample string 2</result>
</FoodCategoryResponse>