> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.aurasos.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.aurasos.com/_mcp/server.

# Update callout location and return callout

POST https://staging-panic.aura.services/panic-api/v2/callouts/{calloutId}/updateLocationAndReturnCallout
Content-Type: application/json

Updates an active callout's location and returns the updated callout state. Legacy docs recommend polling every 5 to 20 seconds while the callout is active. The path parameter is canonical; the body should contain the location fields only.

Reference: https://docs.aurasos.com/api-reference/callouts/update-callout-location-and-return

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Servers

- `https://staging-panic.aura.services` (Staging, default)
- `https://panic.aura.services` (Production)

## Request

### Path parameters

- `calloutId` (integer, required) — Callout identifier.

### Body (application/json)

This endpoint expects a LocationUpdateRequest.

- `latitude` (double, required)
- `longitude` (double, required)
- `accuracy` (double, optional)
- `calloutId` (integer, optional, deprecated) — Ignored. The callout is resolved from the `{calloutId}` path parameter; a `calloutId` in the body has no effect and is accepted only for backward compatibility with older integrators.

## Response

### 200

Successful.

- `message` (string, optional)
- `callout` (CalloutDetail, optional) — The nested callout view returned when reading a callout (`GET /callouts/{calloutId}`) or updating its location and returning it (`updateLocationAndReturnCallout`). This differs from the flat `Callout` returned by the creation endpoints: incident, location, and dispatch details are grouped under `incidentInformation`.

### 285

Panic API custom status. The callout is closed, the location update is not processed, and the latest callout state is still returned so you can stop polling.

- `message` (string, optional)
- `callout` (CalloutDetail, optional) — The nested callout view returned when reading a callout (`GET /callouts/{calloutId}`) or updating its location and returning it (`updateLocationAndReturnCallout`). This differs from the flat `Callout` returned by the creation endpoints: incident, location, and dispatch details are grouped under `incidentInformation`.

## Errors

### 400 Bad Request Error

Bad request.

- `message` (string, optional)
- `errors` (ErrorResponseErrors, optional) — Error detail. May be a string, an array of strings, or an object (some routes return a serialized error object).

### 401 Unauthorized Error

Unauthorized.

- `message` (string, optional)
- `errors` (ErrorResponseErrors, optional) — Error detail. May be a string, an array of strings, or an object (some routes return a serialized error object).

### 404 Not Found Error

Not found.

- `message` (string, optional)
- `errors` (ErrorResponseErrors, optional) — Error detail. May be a string, an array of strings, or an object (some routes return a serialized error object).

## Types

### CalloutDetail

The nested callout view returned when reading a callout (`GET /callouts/{calloutId}`) or updating its location and returning it (`updateLocationAndReturnCallout`). This differs from the flat `Callout` returned by the creation endpoints: incident, location, and dispatch details are grouped under `incidentInformation`.

- `id` (integer, optional)
- `status` (string, optional)
- `url` (string, optional) — Hosted dispatch session URL for this callout.
- `cancelledByCustomer` (boolean, optional)
- `dispatchRequired` (boolean, optional)
- `internalTest` (boolean, optional)
- `verified` (boolean, optional, nullable)
- `externalRefId` (string, optional, nullable)
- `requestedByCustomerId` (integer, optional, nullable)
- `customer` (CalloutDetailCustomer, optional) — Trimmed customer summary attached to the callout.
- `incidentInformation` (list of CalloutDetailIncidentInformationItems, optional)

### ErrorResponseErrors

Error detail. May be a string, an array of strings, or an object (some routes return a serialized error object).

- string
- list of string
- map from string to any

### CalloutDetailCustomer

Trimmed customer summary attached to the callout.

- `id` (integer, optional)
- `name` (string, optional, nullable)
- `surname` (string, optional, nullable)
- `mobile` (string, optional, nullable)
- `gender` (string, optional, nullable)
- `email` (string, optional, nullable)
- `vehicleMake` (string, optional, nullable)
- `vehicleModel` (string, optional, nullable)
- `vehicleColour` (string, optional, nullable)
- `vehicleLicensePlate` (string, optional, nullable)
- `dateOfBirth` (datetime, optional, nullable)
- `auth0UserId` (string, optional, nullable)
- `imageId` (integer, optional, nullable)
- `businessName` (string, optional, nullable)
- `customerTypeId` (integer, optional, nullable)

### CalloutDetailIncidentInformationItems

- `calloutId` (integer, optional)
- `status` (string, optional)
- `createdAt` (datetime, optional)
- `calloutClassification` (CalloutDetailIncidentInformationItemsCalloutClassification, optional)
- `verified` (boolean, optional, nullable)
- `responseType` (CalloutDetailIncidentInformationItemsResponseType, optional)
- `incidentDetails` (string, optional, nullable)
- `typeOfEmergency` (string, optional, nullable)
- `incidentcategory` (string, optional, nullable)
- `calloutCurrentLocation` (CalloutDetailIncidentInformationItemsCalloutCurrentLocation, optional)
- `dispatchInformation` (CalloutDetailIncidentInformationItemsDispatchInformation, optional)
- `calloutEvents` (list of CalloutDetailIncidentInformationItemsCalloutEventsItems, optional)

### CalloutDetailIncidentInformationItemsCalloutClassification

- `id` (integer, optional)
- `value` (string, optional)

### CalloutDetailIncidentInformationItemsResponseType

- `id` (integer, optional)
- `value` (string, optional)

### CalloutDetailIncidentInformationItemsCalloutCurrentLocation

- `latitude` (string, optional)
- `longitude` (string, optional)
- `formattedAddress` (string, optional, nullable)
- `region` (string, optional, nullable)
- `city` (string, optional, nullable)
- `country` (string, optional, nullable)
- `description` (string, optional, nullable)
- `placeId` (string, optional, nullable)
- `calloutLocationType` (string, optional, nullable)
- `regionId` (integer, optional, nullable)

### CalloutDetailIncidentInformationItemsDispatchInformation

- `responderDispatchedAt` (datetime, optional, nullable)
- `responderArrivedAt` (datetime, optional, nullable)
- `responderCompletedAt` (datetime, optional, nullable)
- `responder` (CalloutDetailIncidentInformationItemsDispatchInformationResponder, optional, nullable)
- `supplier` (CalloutDetailIncidentInformationItemsDispatchInformationSupplier, optional, nullable)
- `calloutResponseEta` (string, optional, nullable)
- `responderRoute` (CalloutDetailIncidentInformationItemsDispatchInformationResponderRoute, optional, nullable)

### CalloutDetailIncidentInformationItemsCalloutEventsItems

### CalloutDetailIncidentInformationItemsDispatchInformationResponder

### CalloutDetailIncidentInformationItemsDispatchInformationSupplier

### CalloutDetailIncidentInformationItemsDispatchInformationResponderRoute

## Examples

### Success

**Request**

```json
{
  "latitude": -33.9249,
  "longitude": 18.4241
}
```

**Response**

```json
{
  "message": "Callout location successfully updated",
  "callout": {
    "id": 12345,
    "status": "created",
    "url": "https://staging-dispatch.aura.services/dispatch/?sessionToken=example&calloutId=12345",
    "cancelledByCustomer": false,
    "dispatchRequired": true,
    "internalTest": false,
    "verified": false,
    "externalRefId": null,
    "requestedByCustomerId": null,
    "customer": {
      "id": 12345,
      "name": "Audit",
      "surname": "Tester",
      "mobile": "+27849990001",
      "gender": null,
      "email": "audit@example.com",
      "vehicleMake": null,
      "vehicleModel": null,
      "vehicleColour": null,
      "vehicleLicensePlate": null,
      "dateOfBirth": null,
      "auth0UserId": "12345",
      "imageId": null,
      "businessName": null,
      "customerTypeId": null
    },
    "incidentInformation": [
      {
        "calloutId": 12345,
        "status": "created",
        "createdAt": "2026-06-08T15:33:45.371Z",
        "calloutClassification": {
          "id": 2,
          "value": "TEST"
        },
        "verified": false,
        "responseType": {
          "id": 1,
          "value": "SECURITY"
        },
        "incidentDetails": null,
        "typeOfEmergency": null,
        "incidentcategory": null,
        "calloutCurrentLocation": {
          "latitude": "-26.2",
          "longitude": "28.2",
          "formattedAddress": "1202 Emlembe St, Balmoral, Boksburg, 1401, South Africa",
          "region": "Gauteng",
          "city": "City of Ekurhuleni Metropolitan Municipality",
          "country": "South Africa",
          "description": null,
          "placeId": null,
          "calloutLocationType": null,
          "regionId": 1
        },
        "dispatchInformation": {
          "responderDispatchedAt": null,
          "responderArrivedAt": null,
          "responderCompletedAt": null,
          "responder": null,
          "supplier": null,
          "calloutResponseEta": null,
          "responderRoute": null
        },
        "calloutEvents": []
      }
    ]
  }
}
```

**SDK Code**

```python Success
import requests

url = "https://staging-panic.aura.services/panic-api/v2/callouts/12345/updateLocationAndReturnCallout"

payload = {
    "latitude": -33.9249,
    "longitude": 18.4241
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Success
const url = 'https://staging-panic.aura.services/panic-api/v2/callouts/12345/updateLocationAndReturnCallout';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"latitude":-33.9249,"longitude":18.4241}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Success
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://staging-panic.aura.services/panic-api/v2/callouts/12345/updateLocationAndReturnCallout"

	payload := strings.NewReader("{\n  \"latitude\": -33.9249,\n  \"longitude\": 18.4241\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Success
require 'uri'
require 'net/http'

url = URI("https://staging-panic.aura.services/panic-api/v2/callouts/12345/updateLocationAndReturnCallout")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"latitude\": -33.9249,\n  \"longitude\": 18.4241\n}"

response = http.request(request)
puts response.read_body
```

```java Success
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://staging-panic.aura.services/panic-api/v2/callouts/12345/updateLocationAndReturnCallout")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"latitude\": -33.9249,\n  \"longitude\": 18.4241\n}")
  .asString();
```

```php Success
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://staging-panic.aura.services/panic-api/v2/callouts/12345/updateLocationAndReturnCallout', [
  'body' => '{
  "latitude": -33.9249,
  "longitude": 18.4241
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Success
using RestSharp;

var client = new RestClient("https://staging-panic.aura.services/panic-api/v2/callouts/12345/updateLocationAndReturnCallout");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"latitude\": -33.9249,\n  \"longitude\": 18.4241\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Success
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "latitude": -33.9249,
  "longitude": 18.4241
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://staging-panic.aura.services/panic-api/v2/callouts/12345/updateLocationAndReturnCallout")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Closed callout

**Request**

```json
{
  "latitude": -33.9249,
  "longitude": 18.4241
}
```

**Response**

```json
{
  "message": "Callout location successfully updated",
  "callout": {
    "id": 12345,
    "status": "closed",
    "cancelledByCustomer": false,
    "dispatchRequired": true,
    "internalTest": false,
    "verified": true,
    "externalRefId": null,
    "customer": {
      "id": 12345,
      "name": "Audit",
      "surname": "Tester",
      "mobile": "+27849990001"
    },
    "incidentInformation": [],
    "calloutEvents": []
  }
}
```

**SDK Code**

```python Closed callout
import requests

url = "https://staging-panic.aura.services/panic-api/v2/callouts/12345/updateLocationAndReturnCallout"

payload = {
    "latitude": -33.9249,
    "longitude": 18.4241
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Closed callout
const url = 'https://staging-panic.aura.services/panic-api/v2/callouts/12345/updateLocationAndReturnCallout';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"latitude":-33.9249,"longitude":18.4241}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Closed callout
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://staging-panic.aura.services/panic-api/v2/callouts/12345/updateLocationAndReturnCallout"

	payload := strings.NewReader("{\n  \"latitude\": -33.9249,\n  \"longitude\": 18.4241\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Closed callout
require 'uri'
require 'net/http'

url = URI("https://staging-panic.aura.services/panic-api/v2/callouts/12345/updateLocationAndReturnCallout")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"latitude\": -33.9249,\n  \"longitude\": 18.4241\n}"

response = http.request(request)
puts response.read_body
```

```java Closed callout
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://staging-panic.aura.services/panic-api/v2/callouts/12345/updateLocationAndReturnCallout")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"latitude\": -33.9249,\n  \"longitude\": 18.4241\n}")
  .asString();
```

```php Closed callout
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://staging-panic.aura.services/panic-api/v2/callouts/12345/updateLocationAndReturnCallout', [
  'body' => '{
  "latitude": -33.9249,
  "longitude": 18.4241
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Closed callout
using RestSharp;

var client = new RestClient("https://staging-panic.aura.services/panic-api/v2/callouts/12345/updateLocationAndReturnCallout");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"latitude\": -33.9249,\n  \"longitude\": 18.4241\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Closed callout
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "latitude": -33.9249,
  "longitude": 18.4241
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://staging-panic.aura.services/panic-api/v2/callouts/12345/updateLocationAndReturnCallout")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```