Premium APIsSoftware ManagementSoftware Management V2API Reference V2

Modify a callback listener

Modify a Callback Listener URL

PUT /callbacks/{accountName}

Modifies the secure URL (HTTPS) at which an account receives messages from the Software Management FOTA callback service when new software versions are available and when upgrades start and finish.

This request replaces the previously registered FOTA callback listener if there is one.

Usage and Requirements

The callback messages will conform to the JSON callback schema shown on the About Callback Services page. You can follow these instructions to create a simple callback listener that will report the callback type and display any received callbacks on the console.

HTTP Request

PUT https://thingspace.verizon.com/api/fota/v2/callbacks/{accountName}

Resource Path and Query Parameters

The account name must be included in the path.

Parameter NameData TypeDescription
accountName
required
stringThe name of the billing account for which you want to receive callback messages. An account name is usually numeric, and must include any leading zeros.

Header Parameters

The request header must contain a current ThingSpace authorization token and a current VZ-M2M session token. For more details on how to get these tokens, visit Getting Started.

Parameter NameData TypeDescription
Authorization
required
stringHTTP Authorization bearer token:
Authorization: Bearer {token}
VZ-M2M-Token
required
stringA valid session token:
VZ-M2M-Token: {M2Mtoken}

Request Body

The body specifies the URL where the listening service is running.

Parameter NameData TypeDescription
callback
required
required stringThe secure address on your server where you have enabled a listening service for Software Management Services callback messages. Specify a secure URL (HTTPS) that is reachable from the Verizon data centers.

Example Request Body

{
    "url": "https://255.255.11.135:50559/CallbackListener/FirmwareServiceMessages.asmx"
}

Success Responses

Status 200

Parameter NameData TypeDescription
urlstringThe secure address on your server where you have enabled the listening service for Software Management Services callback messages.

Example Success Response

{
    "url": "https://255.255.11.135:50559/CallbackListener/FirmwareServiceMessages.asmx"
}

Failure Responses

Status 400

All error messages are returned in this format:

{
    "errorCode": "error code string",
    "errorMessage": "error message string"
}

Error codes and messages are listed on the Error Messages page, along with explanations and suggestions for corrective actions.

On this page