Update push notification.
curl --request PUT \
--url https://{host}/push/v1/Notification \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"id": 123,
"title": "<string>",
"message": "<string>",
"deliveryDate": "2023-11-07T05:31:56Z",
"isReadyToDistribute": true,
"name": "<string>",
"deepLink": {
"id": "<string>",
"parameters": {},
"url": "<string>"
},
"expirationDate": "2023-11-07T05:31:56Z",
"isSegmented": true,
"audienceIds": [
"<string>"
],
"storeId": "<string>",
"unifiedCampaignId": "<string>",
"externalId": "<string>",
"externalUrl": "<string>",
"authorId": "<string>",
"authorName": "<string>",
"isPrivate": true
}
'import requests
url = "https://{host}/push/v1/Notification"
payload = {
"id": 123,
"title": "<string>",
"message": "<string>",
"deliveryDate": "2023-11-07T05:31:56Z",
"isReadyToDistribute": True,
"name": "<string>",
"deepLink": {
"id": "<string>",
"parameters": {},
"url": "<string>"
},
"expirationDate": "2023-11-07T05:31:56Z",
"isSegmented": True,
"audienceIds": ["<string>"],
"storeId": "<string>",
"unifiedCampaignId": "<string>",
"externalId": "<string>",
"externalUrl": "<string>",
"authorId": "<string>",
"authorName": "<string>",
"isPrivate": True
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: 123,
title: '<string>',
message: '<string>',
deliveryDate: '2023-11-07T05:31:56Z',
isReadyToDistribute: true,
name: '<string>',
deepLink: {id: '<string>', parameters: {}, url: '<string>'},
expirationDate: '2023-11-07T05:31:56Z',
isSegmented: true,
audienceIds: ['<string>'],
storeId: '<string>',
unifiedCampaignId: '<string>',
externalId: '<string>',
externalUrl: '<string>',
authorId: '<string>',
authorName: '<string>',
isPrivate: true
})
};
fetch('https://{host}/push/v1/Notification', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{host}/push/v1/Notification",
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([
'id' => 123,
'title' => '<string>',
'message' => '<string>',
'deliveryDate' => '2023-11-07T05:31:56Z',
'isReadyToDistribute' => true,
'name' => '<string>',
'deepLink' => [
'id' => '<string>',
'parameters' => [
],
'url' => '<string>'
],
'expirationDate' => '2023-11-07T05:31:56Z',
'isSegmented' => true,
'audienceIds' => [
'<string>'
],
'storeId' => '<string>',
'unifiedCampaignId' => '<string>',
'externalId' => '<string>',
'externalUrl' => '<string>',
'authorId' => '<string>',
'authorName' => '<string>',
'isPrivate' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{host}/push/v1/Notification"
payload := strings.NewReader("{\n \"id\": 123,\n \"title\": \"<string>\",\n \"message\": \"<string>\",\n \"deliveryDate\": \"2023-11-07T05:31:56Z\",\n \"isReadyToDistribute\": true,\n \"name\": \"<string>\",\n \"deepLink\": {\n \"id\": \"<string>\",\n \"parameters\": {},\n \"url\": \"<string>\"\n },\n \"expirationDate\": \"2023-11-07T05:31:56Z\",\n \"isSegmented\": true,\n \"audienceIds\": [\n \"<string>\"\n ],\n \"storeId\": \"<string>\",\n \"unifiedCampaignId\": \"<string>\",\n \"externalId\": \"<string>\",\n \"externalUrl\": \"<string>\",\n \"authorId\": \"<string>\",\n \"authorName\": \"<string>\",\n \"isPrivate\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<api-key>")
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))
}HttpResponse<String> response = Unirest.put("https://{host}/push/v1/Notification")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": 123,\n \"title\": \"<string>\",\n \"message\": \"<string>\",\n \"deliveryDate\": \"2023-11-07T05:31:56Z\",\n \"isReadyToDistribute\": true,\n \"name\": \"<string>\",\n \"deepLink\": {\n \"id\": \"<string>\",\n \"parameters\": {},\n \"url\": \"<string>\"\n },\n \"expirationDate\": \"2023-11-07T05:31:56Z\",\n \"isSegmented\": true,\n \"audienceIds\": [\n \"<string>\"\n ],\n \"storeId\": \"<string>\",\n \"unifiedCampaignId\": \"<string>\",\n \"externalId\": \"<string>\",\n \"externalUrl\": \"<string>\",\n \"authorId\": \"<string>\",\n \"authorName\": \"<string>\",\n \"isPrivate\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/push/v1/Notification")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": 123,\n \"title\": \"<string>\",\n \"message\": \"<string>\",\n \"deliveryDate\": \"2023-11-07T05:31:56Z\",\n \"isReadyToDistribute\": true,\n \"name\": \"<string>\",\n \"deepLink\": {\n \"id\": \"<string>\",\n \"parameters\": {},\n \"url\": \"<string>\"\n },\n \"expirationDate\": \"2023-11-07T05:31:56Z\",\n \"isSegmented\": true,\n \"audienceIds\": [\n \"<string>\"\n ],\n \"storeId\": \"<string>\",\n \"unifiedCampaignId\": \"<string>\",\n \"externalId\": \"<string>\",\n \"externalUrl\": \"<string>\",\n \"authorId\": \"<string>\",\n \"authorName\": \"<string>\",\n \"isPrivate\": true\n}"
response = http.request(request)
puts response.read_body{
"id": 123
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Update push notification.
Accepts a request body containing all the necessary details for the push notification.
PUT
/
v1
/
Notification
Update push notification.
curl --request PUT \
--url https://{host}/push/v1/Notification \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"id": 123,
"title": "<string>",
"message": "<string>",
"deliveryDate": "2023-11-07T05:31:56Z",
"isReadyToDistribute": true,
"name": "<string>",
"deepLink": {
"id": "<string>",
"parameters": {},
"url": "<string>"
},
"expirationDate": "2023-11-07T05:31:56Z",
"isSegmented": true,
"audienceIds": [
"<string>"
],
"storeId": "<string>",
"unifiedCampaignId": "<string>",
"externalId": "<string>",
"externalUrl": "<string>",
"authorId": "<string>",
"authorName": "<string>",
"isPrivate": true
}
'import requests
url = "https://{host}/push/v1/Notification"
payload = {
"id": 123,
"title": "<string>",
"message": "<string>",
"deliveryDate": "2023-11-07T05:31:56Z",
"isReadyToDistribute": True,
"name": "<string>",
"deepLink": {
"id": "<string>",
"parameters": {},
"url": "<string>"
},
"expirationDate": "2023-11-07T05:31:56Z",
"isSegmented": True,
"audienceIds": ["<string>"],
"storeId": "<string>",
"unifiedCampaignId": "<string>",
"externalId": "<string>",
"externalUrl": "<string>",
"authorId": "<string>",
"authorName": "<string>",
"isPrivate": True
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: 123,
title: '<string>',
message: '<string>',
deliveryDate: '2023-11-07T05:31:56Z',
isReadyToDistribute: true,
name: '<string>',
deepLink: {id: '<string>', parameters: {}, url: '<string>'},
expirationDate: '2023-11-07T05:31:56Z',
isSegmented: true,
audienceIds: ['<string>'],
storeId: '<string>',
unifiedCampaignId: '<string>',
externalId: '<string>',
externalUrl: '<string>',
authorId: '<string>',
authorName: '<string>',
isPrivate: true
})
};
fetch('https://{host}/push/v1/Notification', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{host}/push/v1/Notification",
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([
'id' => 123,
'title' => '<string>',
'message' => '<string>',
'deliveryDate' => '2023-11-07T05:31:56Z',
'isReadyToDistribute' => true,
'name' => '<string>',
'deepLink' => [
'id' => '<string>',
'parameters' => [
],
'url' => '<string>'
],
'expirationDate' => '2023-11-07T05:31:56Z',
'isSegmented' => true,
'audienceIds' => [
'<string>'
],
'storeId' => '<string>',
'unifiedCampaignId' => '<string>',
'externalId' => '<string>',
'externalUrl' => '<string>',
'authorId' => '<string>',
'authorName' => '<string>',
'isPrivate' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{host}/push/v1/Notification"
payload := strings.NewReader("{\n \"id\": 123,\n \"title\": \"<string>\",\n \"message\": \"<string>\",\n \"deliveryDate\": \"2023-11-07T05:31:56Z\",\n \"isReadyToDistribute\": true,\n \"name\": \"<string>\",\n \"deepLink\": {\n \"id\": \"<string>\",\n \"parameters\": {},\n \"url\": \"<string>\"\n },\n \"expirationDate\": \"2023-11-07T05:31:56Z\",\n \"isSegmented\": true,\n \"audienceIds\": [\n \"<string>\"\n ],\n \"storeId\": \"<string>\",\n \"unifiedCampaignId\": \"<string>\",\n \"externalId\": \"<string>\",\n \"externalUrl\": \"<string>\",\n \"authorId\": \"<string>\",\n \"authorName\": \"<string>\",\n \"isPrivate\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<api-key>")
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))
}HttpResponse<String> response = Unirest.put("https://{host}/push/v1/Notification")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": 123,\n \"title\": \"<string>\",\n \"message\": \"<string>\",\n \"deliveryDate\": \"2023-11-07T05:31:56Z\",\n \"isReadyToDistribute\": true,\n \"name\": \"<string>\",\n \"deepLink\": {\n \"id\": \"<string>\",\n \"parameters\": {},\n \"url\": \"<string>\"\n },\n \"expirationDate\": \"2023-11-07T05:31:56Z\",\n \"isSegmented\": true,\n \"audienceIds\": [\n \"<string>\"\n ],\n \"storeId\": \"<string>\",\n \"unifiedCampaignId\": \"<string>\",\n \"externalId\": \"<string>\",\n \"externalUrl\": \"<string>\",\n \"authorId\": \"<string>\",\n \"authorName\": \"<string>\",\n \"isPrivate\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/push/v1/Notification")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": 123,\n \"title\": \"<string>\",\n \"message\": \"<string>\",\n \"deliveryDate\": \"2023-11-07T05:31:56Z\",\n \"isReadyToDistribute\": true,\n \"name\": \"<string>\",\n \"deepLink\": {\n \"id\": \"<string>\",\n \"parameters\": {},\n \"url\": \"<string>\"\n },\n \"expirationDate\": \"2023-11-07T05:31:56Z\",\n \"isSegmented\": true,\n \"audienceIds\": [\n \"<string>\"\n ],\n \"storeId\": \"<string>\",\n \"unifiedCampaignId\": \"<string>\",\n \"externalId\": \"<string>\",\n \"externalUrl\": \"<string>\",\n \"authorId\": \"<string>\",\n \"authorName\": \"<string>\",\n \"isPrivate\": true\n}"
response = http.request(request)
puts response.read_body{
"id": 123
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Authorizations
Body
application/json
The payload containing the information required to update a push notification.
Last modified on August 10, 2026