curl --request POST \
--url https://dash.dmly.io/api/agency/v1/packs/{pack}/entries \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"template_id": "appt-confirmation-reminders"
}
'import requests
url = "https://dash.dmly.io/api/agency/v1/packs/{pack}/entries"
payload = { "template_id": "appt-confirmation-reminders" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({template_id: 'appt-confirmation-reminders'})
};
fetch('https://dash.dmly.io/api/agency/v1/packs/{pack}/entries', 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://dash.dmly.io/api/agency/v1/packs/{pack}/entries",
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([
'template_id' => 'appt-confirmation-reminders'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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://dash.dmly.io/api/agency/v1/packs/{pack}/entries"
payload := strings.NewReader("{\n \"template_id\": \"appt-confirmation-reminders\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<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.post("https://dash.dmly.io/api/agency/v1/packs/{pack}/entries")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"template_id\": \"appt-confirmation-reminders\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dash.dmly.io/api/agency/v1/packs/{pack}/entries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"template_id\": \"appt-confirmation-reminders\"\n}"
response = http.request(request)
puts response.read_body{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}{
"message": "<string>"
}{
"message": "<string>"
}Add an automation to a pack.
Adds an automation at the end of the pack, from one of two sources. Send template_id (max 120, an id from the library endpoint) to add a built-in automation, or send workspace and automation (uuids, as listed by the import sources endpoint) to copy a published flow automation from one of the agency’s sub-accounts; the copy is scrubbed and the steps it cleared are recorded as slots. Copying requires an API key with the packs.import ability (403 otherwise). New entries are core tier with suggested requires. Returns 201 with the entry resource. Returns 404 if the pack is not the agency’s, or when copying, if the sub-account or automation is not found. Returns 422 when neither source is sent, the template is not in the library or is already in the pack, the automation is unpublished or contains steps that cannot be copied, the pack already holds nine automations, it would be a second catch-all, or an automation of the same name is already in the pack.
curl --request POST \
--url https://dash.dmly.io/api/agency/v1/packs/{pack}/entries \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"template_id": "appt-confirmation-reminders"
}
'import requests
url = "https://dash.dmly.io/api/agency/v1/packs/{pack}/entries"
payload = { "template_id": "appt-confirmation-reminders" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({template_id: 'appt-confirmation-reminders'})
};
fetch('https://dash.dmly.io/api/agency/v1/packs/{pack}/entries', 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://dash.dmly.io/api/agency/v1/packs/{pack}/entries",
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([
'template_id' => 'appt-confirmation-reminders'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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://dash.dmly.io/api/agency/v1/packs/{pack}/entries"
payload := strings.NewReader("{\n \"template_id\": \"appt-confirmation-reminders\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<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.post("https://dash.dmly.io/api/agency/v1/packs/{pack}/entries")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"template_id\": \"appt-confirmation-reminders\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dash.dmly.io/api/agency/v1/packs/{pack}/entries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"template_id\": \"appt-confirmation-reminders\"\n}"
response = http.request(request)
puts response.read_body{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}{
"message": "<string>"
}{
"message": "<string>"
}Authorizations
Response
Success.
Was this page helpful?

