Simulate product update notification
curl --request POST \
--url https://api.stabyl.com/v1/simulate/notifications/product-updatesimport requests
url = "https://api.stabyl.com/v1/simulate/notifications/product-updates"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.stabyl.com/v1/simulate/notifications/product-updates', 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://api.stabyl.com/v1/simulate/notifications/product-updates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.stabyl.com/v1/simulate/notifications/product-updates"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.stabyl.com/v1/simulate/notifications/product-updates")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stabyl.com/v1/simulate/notifications/product-updates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"notification_key": "product_update_0197f1f0",
"product_update_id": "0197f1f0-0000-7000-8000-000000000007",
"state": "created"
},
"status": "success"
}{
"error": {
"code": "FORBIDDEN",
"message": "request is not allowed"
},
"status": "error"
}Simulation
Simulate product update notification
Creates a non-production product update notification for integration and UI testing. This endpoint is disabled in production.
POST
/
simulate
/
notifications
/
product-updates
Simulate product update notification
curl --request POST \
--url https://api.stabyl.com/v1/simulate/notifications/product-updatesimport requests
url = "https://api.stabyl.com/v1/simulate/notifications/product-updates"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.stabyl.com/v1/simulate/notifications/product-updates', 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://api.stabyl.com/v1/simulate/notifications/product-updates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.stabyl.com/v1/simulate/notifications/product-updates"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.stabyl.com/v1/simulate/notifications/product-updates")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stabyl.com/v1/simulate/notifications/product-updates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"notification_key": "product_update_0197f1f0",
"product_update_id": "0197f1f0-0000-7000-8000-000000000007",
"state": "created"
},
"status": "success"
}{
"error": {
"code": "FORBIDDEN",
"message": "request is not allowed"
},
"status": "error"
}Response
Simulated product update created
Result returned after creating a non-production product update notification.
Show child attributes
Show child attributes
Example:
{
"notification_key": "product_update_019d1a2a-ec7a-7e51-a488-b001931e0faa",
"product_update_id": "019d1a2a-ec7a-7e51-a488-b001931e0faa",
"state": "created"
}
Available options:
success Was this page helpful?
⌘I