POST api/benefits/update

Request Information

URI Parameters

None.

Body Parameters

Benefit
NameDescriptionTypeAdditional information
b_id

integer

None.

usr_id

integer

None.

usr_name

string

None.

month

integer

None.

year

integer

None.

p_budget

decimal number

None.

t_budget

decimal number

None.

edu_budget

decimal number

None.

k_active

boolean

None.

a_active

boolean

None.

l_active

boolean

None.

m_active

boolean

None.

year_kb_max

decimal number

None.

year_ab

decimal number

None.

pending_benefits

integer

None.

missing_documents

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "b_id": 1,
  "usr_id": 2,
  "usr_name": "sample string 3",
  "month": 4,
  "year": 5,
  "p_budget": 6.0,
  "t_budget": 7.0,
  "edu_budget": 8.0,
  "k_active": true,
  "a_active": true,
  "l_active": true,
  "m_active": true,
  "year_kb_max": 13.0,
  "year_ab": 14.0,
  "pending_benefits": 15,
  "missing_documents": 16
}

application/xml, text/xml

Sample:
<Benefit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aplikacija_za_prijavu_Evenata.Models">
  <a_active>true</a_active>
  <b_id>1</b_id>
  <edu_budget>8</edu_budget>
  <k_active>true</k_active>
  <l_active>true</l_active>
  <m_active>true</m_active>
  <missing_documents>16</missing_documents>
  <month>4</month>
  <p_budget>6</p_budget>
  <pending_benefits>15</pending_benefits>
  <t_budget>7</t_budget>
  <usr_id>2</usr_id>
  <usr_name>sample string 3</usr_name>
  <year>5</year>
  <year_ab>14</year_ab>
  <year_kb_max>13</year_kb_max>
</Benefit>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.