POST api/Job/BeginRepo

Request Information

URI Parameters

None.

Body Parameters

BeginRepoParams
NameDescriptionTypeAdditional information
id

integer

None.

loc

Location_API

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "loc": {
    "lat": 1.1,
    "lng": 2.1,
    "addr": "sample string 3"
  }
}

application/xml, text/xml

Sample:
<BeginRepoParams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RMPAPI.Models">
  <CaseId>1</CaseId>
  <Location>
    <Address>sample string 3</Address>
    <Latitude>1.1</Latitude>
    <Longitude>2.1</Longitude>
  </Location>
</BeginRepoParams>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BeginRepoResponse
NameDescriptionTypeAdditional information
id

integer

None.

storage

Collection of StorageLocation

None.

police

Collection of PoliceAgency

None.

Result

boolean

None.

StatusCode

integer

None.

Status

string

None.

Messages

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "storage": [
    {
      "id": 1,
      "name": "sample string 2",
      "address": "sample string 3"
    },
    {
      "id": 1,
      "name": "sample string 2",
      "address": "sample string 3"
    }
  ],
  "police": [
    {
      "id": 1,
      "name": "sample string 2",
      "contact": "sample string 3"
    },
    {
      "id": 1,
      "name": "sample string 2",
      "contact": "sample string 3"
    }
  ],
  "Result": true,
  "StatusCode": 3,
  "Status": "sample string 4",
  "Messages": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<BeginRepoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RMPAPI.Models">
  <Messages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Messages>
  <Result>true</Result>
  <Status>sample string 4</Status>
  <StatusCode>3</StatusCode>
  <CaseId>1</CaseId>
  <PoliceAgencies>
    <PoliceAgency>
      <Contact>sample string 3</Contact>
      <Id>1</Id>
      <Name>sample string 2</Name>
    </PoliceAgency>
    <PoliceAgency>
      <Contact>sample string 3</Contact>
      <Id>1</Id>
      <Name>sample string 2</Name>
    </PoliceAgency>
  </PoliceAgencies>
  <StorageLocations>
    <StorageLocation>
      <Address>sample string 3</Address>
      <Id>1</Id>
      <Name>sample string 2</Name>
    </StorageLocation>
    <StorageLocation>
      <Address>sample string 3</Address>
      <Id>1</Id>
      <Name>sample string 2</Name>
    </StorageLocation>
  </StorageLocations>
</BeginRepoResponse>