Delete reaction definition
delete
https://api.serialized.io
/reactions/definitions/{reactionName}
Delete a reaction definition

Example

cURL
Java
C#
Node
1
curl -i \
2
--header "Serialized-Access-Key: <YOUR_ACCESS_KEY>" \
3
--header "Serialized-Secret-Access-Key: <YOUR_SECRET_ACCESS_KEY>" \
4
-X DELETE https://api.serialized.io/reactions/definitions/payment-notifier
Copied!
1
import javax.ws.rs.client.Client;
2
import javax.ws.rs.client.ClientBuilder;
3
4
Client client = ClientBuilder.newClient();
5
URI apiRoot = URI.create("https://api.serialized.io");
6
7
Response response = client.target(apiRoot)
8
.path("reactions")
9
.path("definitions")
10
.path("payment-notifier")
11
.request()
12
.header("Serialized-Access-Key", "<YOUR_ACCESS_KEY>")
13
.header("Serialized-Secret-Access-Key", "<YOUR_SECRET_ACCESS_KEY>")
14
.delete();
Copied!
1
using RestSharp;
2
using System;
3
4
var client = new RestClient("https://api.serialized.io");
5
6
var request = new RestRequest("reactions/definitions/{reactionName}", Method.DELETE)
7
.AddUrlSegment("reactionName", "payment-notifier")
8
.AddHeader("Serialized-Access-Key", "<YOUR_ACCESS_KEY>")
9
.AddHeader("Serialized-Secret-Access-Key", "<YOUR_SECRET_ACCESS_KEY>");
10
11
var response = client.Execute<Dictionary<string, Object>>(request);
Copied!
1
const axios = require("axios");
2
3
const client = axios.create({
4
baseURL: "https://api.serialized.io",
5
headers: {"Serialized-Access-Key": "<YOUR_ACCESS_KEY>"},
6
headers: {"Serialized-Secret-Access-Key": "<YOUR_SECRET_ACCESS_KEY>"}
7
});
8
9
client.delete("reactions/definitions/payment-notifier")
10
.then(function (response) {
11
// Handle response
12
})
13
.catch(function (error) {
14
// Handle error
15
});
Copied!
Last modified 1yr ago