Diagnostics Callbacks

Register callbacks (custom headers)

POST
/diagnostics/v1/callbacks

This endpoint allows user update the callback HTTPS address of an existing diagnostics subscription.

Authorization

thingspace_oauth VZ-M2M-Token
AuthorizationBearer <token>

This is the ThingSpace token, from Credentials and Tokens is used

In: header

VZ-M2M-Token<token>

M2M Session Token (How to generate an M2M session token?)

In: header

Request Body

*/*

Callback URL registration request.

Callback URL registration request.

accountName*string

The name of the billing account for which callback messages will be sent. Format: "##########-#####".

serviceName*string

The name of the callback service, which identifies the type and format of messages that will be sent to the registered URL.

endpoint*string

The URL for your web server.

httpHeaders?

Your HTTP headers.

Response Body

application/json

application/json

curl -X POST "https://example.com/diagnostics/v1/callbacks" \  -H "Content-Type: */*" \  -d '<accountName>TestQAAccount</accountName>  <serviceName>Diagnostics</serviceName>  <endpoint>https://yourwebsite.com</endpoint>  <httpHeaders/>'
{  "accountName": "TestQAAccount",  "serviceName": "string",  "endpoint": "https://yourwebsite.com",  "httpHeaders": {},  "createdOn": "2019-09-07T23:57:53.292Z"}