Skip to main content
POST
/
api
/
external
/
v2
/
bulk-automations
/
hide-subscriptions
Hide subscriptions in bulk
curl --request POST \
  --url https://subscription-admin.appstle.com/api/external/v2/bulk-automations/hide-subscriptions \
  --header 'Content-Type: application/json' \
  --data '
{
  "subscriptionIds": "<string>"
}
'
import requests

url = "https://subscription-admin.appstle.com/api/external/v2/bulk-automations/hide-subscriptions"

payload = { "subscriptionIds": "<string>" }
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({subscriptionIds: '<string>'})
};

fetch('https://subscription-admin.appstle.com/api/external/v2/bulk-automations/hide-subscriptions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
const url = 'https://subscription-admin.appstle.com/api/external/v2/bulk-automations/hide-subscriptions';
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({subscriptionIds: '<string>'})
};

fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://subscription-admin.appstle.com/api/external/v2/bulk-automations/hide-subscriptions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'subscriptionIds' => '<string>'
]),
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;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://subscription-admin.appstle.com/api/external/v2/bulk-automations/hide-subscriptions"

payload := strings.NewReader("{\n \"subscriptionIds\": \"<string>\"\n}")

req, _ := http.NewRequest("POST", 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))

}
require 'uri'
require 'net/http'

url = URI("https://subscription-admin.appstle.com/api/external/v2/bulk-automations/hide-subscriptions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"subscriptionIds\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{}

Query Parameters

api_key
string
required

Your API Key

allSubscriptions
boolean

allSubscriptions

Body

application/json
subscriptionIds
string

Response

Bulk hide operation successfully queued and initiated. Subscriptions will be hidden asynchronously.