curl --request PUT \
--url https://api.leadping.ai/notifications/push/installations/current \
--header 'Content-Type: application/json' \
--data '
{
"installationId": "<string>",
"platform": "<string>",
"pushChannel": "<string>",
"appIdentifier": "<string>",
"appName": "<string>",
"appVersion": "<string>",
"appBuild": "<string>",
"devicePlatform": "<string>",
"deviceVersion": "<string>",
"deviceModel": "<string>",
"metadata": {}
}
'import requests
url = "https://api.leadping.ai/notifications/push/installations/current"
payload = {
"installationId": "<string>",
"platform": "<string>",
"pushChannel": "<string>",
"appIdentifier": "<string>",
"appName": "<string>",
"appVersion": "<string>",
"appBuild": "<string>",
"devicePlatform": "<string>",
"deviceVersion": "<string>",
"deviceModel": "<string>",
"metadata": {}
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.leadping.ai/notifications/push/installations/current");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"installationId\": \"<string>\",\n \"platform\": \"<string>\",\n \"pushChannel\": \"<string>\",\n \"appIdentifier\": \"<string>\",\n \"appName\": \"<string>\",\n \"appVersion\": \"<string>\",\n \"appBuild\": \"<string>\",\n \"devicePlatform\": \"<string>\",\n \"deviceVersion\": \"<string>\",\n \"deviceModel\": \"<string>\",\n \"metadata\": {}\n}", false);
var response = await client.PutAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.put("https://api.leadping.ai/notifications/push/installations/current")
.header("Content-Type", "application/json")
.body("{\n \"installationId\": \"<string>\",\n \"platform\": \"<string>\",\n \"pushChannel\": \"<string>\",\n \"appIdentifier\": \"<string>\",\n \"appName\": \"<string>\",\n \"appVersion\": \"<string>\",\n \"appBuild\": \"<string>\",\n \"devicePlatform\": \"<string>\",\n \"deviceVersion\": \"<string>\",\n \"deviceModel\": \"<string>\",\n \"metadata\": {}\n}")
.asString();const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
installationId: '<string>',
platform: '<string>',
pushChannel: '<string>',
appIdentifier: '<string>',
appName: '<string>',
appVersion: '<string>',
appBuild: '<string>',
devicePlatform: '<string>',
deviceVersion: '<string>',
deviceModel: '<string>',
metadata: {}
})
};
fetch('https://api.leadping.ai/notifications/push/installations/current', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.leadping.ai/notifications/push/installations/current"
payload := strings.NewReader("{\n \"installationId\": \"<string>\",\n \"platform\": \"<string>\",\n \"pushChannel\": \"<string>\",\n \"appIdentifier\": \"<string>\",\n \"appName\": \"<string>\",\n \"appVersion\": \"<string>\",\n \"appBuild\": \"<string>\",\n \"devicePlatform\": \"<string>\",\n \"deviceVersion\": \"<string>\",\n \"deviceModel\": \"<string>\",\n \"metadata\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.leadping.ai/notifications/push/installations/current",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'installationId' => '<string>',
'platform' => '<string>',
'pushChannel' => '<string>',
'appIdentifier' => '<string>',
'appName' => '<string>',
'appVersion' => '<string>',
'appBuild' => '<string>',
'devicePlatform' => '<string>',
'deviceVersion' => '<string>',
'deviceModel' => '<string>',
'metadata' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}true{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Register a current-user mobile push installation
Registers or refreshes the authenticated user’s mobile push installation so Leadping can deliver account and workflow notifications to the device.
curl --request PUT \
--url https://api.leadping.ai/notifications/push/installations/current \
--header 'Content-Type: application/json' \
--data '
{
"installationId": "<string>",
"platform": "<string>",
"pushChannel": "<string>",
"appIdentifier": "<string>",
"appName": "<string>",
"appVersion": "<string>",
"appBuild": "<string>",
"devicePlatform": "<string>",
"deviceVersion": "<string>",
"deviceModel": "<string>",
"metadata": {}
}
'import requests
url = "https://api.leadping.ai/notifications/push/installations/current"
payload = {
"installationId": "<string>",
"platform": "<string>",
"pushChannel": "<string>",
"appIdentifier": "<string>",
"appName": "<string>",
"appVersion": "<string>",
"appBuild": "<string>",
"devicePlatform": "<string>",
"deviceVersion": "<string>",
"deviceModel": "<string>",
"metadata": {}
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.leadping.ai/notifications/push/installations/current");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"installationId\": \"<string>\",\n \"platform\": \"<string>\",\n \"pushChannel\": \"<string>\",\n \"appIdentifier\": \"<string>\",\n \"appName\": \"<string>\",\n \"appVersion\": \"<string>\",\n \"appBuild\": \"<string>\",\n \"devicePlatform\": \"<string>\",\n \"deviceVersion\": \"<string>\",\n \"deviceModel\": \"<string>\",\n \"metadata\": {}\n}", false);
var response = await client.PutAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.put("https://api.leadping.ai/notifications/push/installations/current")
.header("Content-Type", "application/json")
.body("{\n \"installationId\": \"<string>\",\n \"platform\": \"<string>\",\n \"pushChannel\": \"<string>\",\n \"appIdentifier\": \"<string>\",\n \"appName\": \"<string>\",\n \"appVersion\": \"<string>\",\n \"appBuild\": \"<string>\",\n \"devicePlatform\": \"<string>\",\n \"deviceVersion\": \"<string>\",\n \"deviceModel\": \"<string>\",\n \"metadata\": {}\n}")
.asString();const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
installationId: '<string>',
platform: '<string>',
pushChannel: '<string>',
appIdentifier: '<string>',
appName: '<string>',
appVersion: '<string>',
appBuild: '<string>',
devicePlatform: '<string>',
deviceVersion: '<string>',
deviceModel: '<string>',
metadata: {}
})
};
fetch('https://api.leadping.ai/notifications/push/installations/current', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.leadping.ai/notifications/push/installations/current"
payload := strings.NewReader("{\n \"installationId\": \"<string>\",\n \"platform\": \"<string>\",\n \"pushChannel\": \"<string>\",\n \"appIdentifier\": \"<string>\",\n \"appName\": \"<string>\",\n \"appVersion\": \"<string>\",\n \"appBuild\": \"<string>\",\n \"devicePlatform\": \"<string>\",\n \"deviceVersion\": \"<string>\",\n \"deviceModel\": \"<string>\",\n \"metadata\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.leadping.ai/notifications/push/installations/current",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'installationId' => '<string>',
'platform' => '<string>',
'pushChannel' => '<string>',
'appIdentifier' => '<string>',
'appName' => '<string>',
'appVersion' => '<string>',
'appBuild' => '<string>',
'devicePlatform' => '<string>',
'deviceVersion' => '<string>',
'deviceModel' => '<string>',
'metadata' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}true{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Body
The application, device, platform, and provider push-channel details to register.
Describes a mobile push installation. Identity and Azure tags are derived by the API.
The stable installation identifier assigned by the mobile client.
The Azure Notification Hubs platform name, such as apns or fcmv1.
The provider-issued push token or channel used to deliver notifications.
The application bundle identifier or package name.
The human-readable application name reported by the client.
The semantic application version reported by the client.
The application build number reported by the client.
The mobile operating-system platform reported by the device.
The mobile operating-system version reported by the device.
The device model reported by the client.
Optional client metadata stored with the push installation.
Show child attributes
Show child attributes
Response
OK
The response is of type boolean.

