Sha256: b8453a6ec50555a3ca97627b1614cfc95003186da6b9c87e75abcdf7e393f4ee

Contents?: true

Size: 1.46 KB

Versions: 3

Compression:

Stored size: 1.46 KB

Contents

# Sharing

## POST `/api/1/vehicles/{id}/command/share`

Sends a location for the car to start navigation or play a video in theatre mode.

These docs take from the Android app, which sends the data in JSON form. However, a urlencoded POST body will work as well. The basic format to a request looks like this:

```json
{
  "type": "share_ext_content_raw",
  "value": {
    "android.intent.extra.TEXT": "123 Main St, City, ST 12345\n\nhttps://goo.gl/maps/X"
  },
  "locale": "en-US",
  "timestamp_ms": "1539465730"
}
```

Note: This API was previously `navigation_request`, but has been updated to support video links as well.

### Parameters

| Parameter                        | Example                     | Description                                                    |
| :------------------------------- | :-------------------------- | :------------------------------------------------------------- |
| type                             | share_ext_content_raw       | Must be `share_ext_content_raw`.                               |
| locale                           | en-US                       | The locale for the navigation request.                         |
| timestamp_ms                     | 1539465730                  | The current UNIX timestamp.                                    |
| value[android.intent.extra.TEXT] | 123 Main St, City, ST 12345 | The address or video URL to set as the navigation destination. |

### Response

```json
{
  "reason": "",
  "result": true
}
```

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tesla_api-3.0.4 docs/vehicle/commands/sharing.md
tesla_api-3.0.3 docs/vehicle/commands/sharing.md
tesla_api-3.0.2 docs/vehicle/commands/sharing.md