POST api/errands

Request Information

URI Parameters

None.

Body Parameters

CreateErrandRequest
NameDescriptionTypeAdditional information
CityId

integer

None.

CategoryId

integer

None.

Title

string

None.

Instructions

string

None.

TimeWindowStart

date

None.

TimeWindowEnd

date

None.

ServiceFeeEstimated

decimal number

None.

ItemsBudget

decimal number

None.

TipAmount

decimal number

None.

PriorityLevel

byte

None.

Stops

Collection of ErrandStopDto

None.

Items

Collection of ErrandItemDto

None.

Request Formats

application/json, text/json

Sample:
{
  "CityId": 1,
  "CategoryId": 2,
  "Title": "sample string 3",
  "Instructions": "sample string 4",
  "TimeWindowStart": "2026-03-06T23:33:04.9111937+02:00",
  "TimeWindowEnd": "2026-03-06T23:33:04.9111937+02:00",
  "ServiceFeeEstimated": 5.0,
  "ItemsBudget": 6.0,
  "TipAmount": 7.0,
  "PriorityLevel": 64,
  "Stops": [
    {
      "StopOrder": 1,
      "StopType": "sample string 2",
      "ContactName": "sample string 3",
      "ContactPhone": "sample string 4",
      "AddressLine1": "sample string 5",
      "AddressLine2": "sample string 6",
      "Suburb": "sample string 7",
      "PostalCode": "sample string 8",
      "Latitude": 1.0,
      "Longitude": 1.0,
      "Notes": "sample string 9"
    },
    {
      "StopOrder": 1,
      "StopType": "sample string 2",
      "ContactName": "sample string 3",
      "ContactPhone": "sample string 4",
      "AddressLine1": "sample string 5",
      "AddressLine2": "sample string 6",
      "Suburb": "sample string 7",
      "PostalCode": "sample string 8",
      "Latitude": 1.0,
      "Longitude": 1.0,
      "Notes": "sample string 9"
    }
  ],
  "Items": [
    {
      "ItemName": "sample string 1",
      "Quantity": 1.0,
      "Unit": "sample string 2",
      "Notes": "sample string 3"
    },
    {
      "ItemName": "sample string 1",
      "Quantity": 1.0,
      "Unit": "sample string 2",
      "Notes": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<CreateErrandRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RunnerMe.Controllers">
  <CategoryId>2</CategoryId>
  <CityId>1</CityId>
  <Instructions>sample string 4</Instructions>
  <Items>
    <ErrandItemDto>
      <ItemName>sample string 1</ItemName>
      <Notes>sample string 3</Notes>
      <Quantity>1</Quantity>
      <Unit>sample string 2</Unit>
    </ErrandItemDto>
    <ErrandItemDto>
      <ItemName>sample string 1</ItemName>
      <Notes>sample string 3</Notes>
      <Quantity>1</Quantity>
      <Unit>sample string 2</Unit>
    </ErrandItemDto>
  </Items>
  <ItemsBudget>6</ItemsBudget>
  <PriorityLevel>64</PriorityLevel>
  <ServiceFeeEstimated>5</ServiceFeeEstimated>
  <Stops>
    <ErrandStopDto>
      <AddressLine1>sample string 5</AddressLine1>
      <AddressLine2>sample string 6</AddressLine2>
      <ContactName>sample string 3</ContactName>
      <ContactPhone>sample string 4</ContactPhone>
      <Latitude>1</Latitude>
      <Longitude>1</Longitude>
      <Notes>sample string 9</Notes>
      <PostalCode>sample string 8</PostalCode>
      <StopOrder>1</StopOrder>
      <StopType>sample string 2</StopType>
      <Suburb>sample string 7</Suburb>
    </ErrandStopDto>
    <ErrandStopDto>
      <AddressLine1>sample string 5</AddressLine1>
      <AddressLine2>sample string 6</AddressLine2>
      <ContactName>sample string 3</ContactName>
      <ContactPhone>sample string 4</ContactPhone>
      <Latitude>1</Latitude>
      <Longitude>1</Longitude>
      <Notes>sample string 9</Notes>
      <PostalCode>sample string 8</PostalCode>
      <StopOrder>1</StopOrder>
      <StopType>sample string 2</StopType>
      <Suburb>sample string 7</Suburb>
    </ErrandStopDto>
  </Stops>
  <TimeWindowEnd>2026-03-06T23:33:04.9111937+02:00</TimeWindowEnd>
  <TimeWindowStart>2026-03-06T23:33:04.9111937+02:00</TimeWindowStart>
  <TipAmount>7</TipAmount>
  <Title>sample string 3</Title>
</CreateErrandRequest>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.