POST api/businessTrip/parts/update

Request Information

URI Parameters

None.

Body Parameters

business_trip_part_request
NameDescriptionTypeAdditional information
usr_id

integer

None.

bt_id

integer

None.

btp_id

integer

None.

event_type

integer

None.

date_from

date

None.

date_to

date

None.

loc_from

string

None.

loc_id_from

integer

None.

loc_to

string

None.

loc_id_to

integer

None.

create_for_co_driver_and_send_email

boolean

None.

obj_id

integer

None.

transport_type

integer

None.

obj_distance_start

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "usr_id": 1,
  "bt_id": 2,
  "btp_id": 1,
  "event_type": 3,
  "date_from": "2025-05-22T18:01:16.7815408+02:00",
  "date_to": "2025-05-22T18:01:16.7815408+02:00",
  "loc_from": "sample string 6",
  "loc_id_from": 1,
  "loc_to": "sample string 7",
  "loc_id_to": 1,
  "create_for_co_driver_and_send_email": true,
  "obj_id": 1,
  "transport_type": 9,
  "obj_distance_start": 1
}

application/xml, text/xml

Sample:
<business_trip_part_request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aplikacija_za_prijavu_Evenata.Models">
  <bt_id>2</bt_id>
  <btp_id>1</btp_id>
  <create_for_co_driver_and_send_email>true</create_for_co_driver_and_send_email>
  <date_from>2025-05-22T18:01:16.7815408+02:00</date_from>
  <date_to>2025-05-22T18:01:16.7815408+02:00</date_to>
  <event_type>3</event_type>
  <loc_from>sample string 6</loc_from>
  <loc_id_from>1</loc_id_from>
  <loc_id_to>1</loc_id_to>
  <loc_to>sample string 7</loc_to>
  <obj_distance_start>1</obj_distance_start>
  <obj_id>1</obj_id>
  <transport_type>9</transport_type>
  <usr_id>1</usr_id>
</business_trip_part_request>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.