Remote

Register a new reusable remote callback.

Create a new reusable callback.

post/fleets/{fid}/remote/callbacks

Request

Path parameters

fidstring required

Resource is related to this fleet ID only.

Request body

labelstring
remoteTypesRemoteType[] required

Example request

{
  "retryPolicy": {
    "policy": "None",
    "retryNumber": 10,
    "retryDelay": 60
  },
  "callback": {
    "webhook": {
      "target": "https://my.post.callback",
      "name": "My_Webhook",
      "attributes": [
        {
          "type": "Header",
          "key": "X-Vehicle_Id",
          "value": "$vin"
        }
      ]
    }
  },
  "remoteTypes": [
    "Doors"
  ]
}

Response

Remote callback creation or update success response

callbackIdstring

Uniq remote callback ID returned when the callback was subscribed (created) succefuly.

status'Running' | 'Paused' | 'Failed'

Example response

{
  "_links": {
    "fleet": {
      "href": "http://example.com",
      "deprecation": "http://example.com"
    },
    "callback": {
      "href": "http://example.com",
      "deprecation": "http://example.com"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.