import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.automations.stop(
'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
);
$resend = Resend::client('re_xxxxxxxxx');
$resend->automations->stop('c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd');
import resend
resend.api_key = "re_xxxxxxxxx"
resend.Automations.stop("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
require "resend"
Resend.api_key = "re_xxxxxxxxx"
Resend::Automations.stop("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
package main
import "github.com/resend/resend-go/v3"
func main() {
client := resend.NewClient("re_xxxxxxxxx")
client.Automations.Stop("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
}
use resend_rs::{Resend, Result};
#[tokio::main]
async fn main() -> Result<()> {
let resend = Resend::new("re_xxxxxxxxx");
let _automation = resend
.automations
.stop("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
.await?;
Ok(())
}
import com.resend.*;
public class Main {
public static void main(String[] args) {
Resend resend = new Resend("re_xxxxxxxxx");
StopAutomationResponseSuccess data = resend.automations().stop("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd");
}
}
using Resend;
IResend resend = ResendClient.Create( "re_xxxxxxxxx" );
var resp = await resend.AutomationStopAsync( new Guid( "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd" ) );
Console.WriteLine( "Status={0}", resp.Content.Status );
curl -X POST 'https://api.resend.com/automations/c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd/stop' \
-H 'Authorization: Bearer re_xxxxxxxxx'
resend automations stop c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd
{
"object": "automation",
"id": "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd",
"status": "disabled"
}
Stop Automation
Stop a running automation.
POST
/
automations
/
:automation_id
/
stop
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.automations.stop(
'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
);
$resend = Resend::client('re_xxxxxxxxx');
$resend->automations->stop('c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd');
import resend
resend.api_key = "re_xxxxxxxxx"
resend.Automations.stop("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
require "resend"
Resend.api_key = "re_xxxxxxxxx"
Resend::Automations.stop("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
package main
import "github.com/resend/resend-go/v3"
func main() {
client := resend.NewClient("re_xxxxxxxxx")
client.Automations.Stop("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
}
use resend_rs::{Resend, Result};
#[tokio::main]
async fn main() -> Result<()> {
let resend = Resend::new("re_xxxxxxxxx");
let _automation = resend
.automations
.stop("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
.await?;
Ok(())
}
import com.resend.*;
public class Main {
public static void main(String[] args) {
Resend resend = new Resend("re_xxxxxxxxx");
StopAutomationResponseSuccess data = resend.automations().stop("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd");
}
}
using Resend;
IResend resend = ResendClient.Create( "re_xxxxxxxxx" );
var resp = await resend.AutomationStopAsync( new Guid( "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd" ) );
Console.WriteLine( "Status={0}", resp.Content.Status );
curl -X POST 'https://api.resend.com/automations/c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd/stop' \
-H 'Authorization: Bearer re_xxxxxxxxx'
resend automations stop c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd
{
"object": "automation",
"id": "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd",
"status": "disabled"
}
Path Parameters
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.automations.stop(
'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
);
$resend = Resend::client('re_xxxxxxxxx');
$resend->automations->stop('c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd');
import resend
resend.api_key = "re_xxxxxxxxx"
resend.Automations.stop("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
require "resend"
Resend.api_key = "re_xxxxxxxxx"
Resend::Automations.stop("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
package main
import "github.com/resend/resend-go/v3"
func main() {
client := resend.NewClient("re_xxxxxxxxx")
client.Automations.Stop("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
}
use resend_rs::{Resend, Result};
#[tokio::main]
async fn main() -> Result<()> {
let resend = Resend::new("re_xxxxxxxxx");
let _automation = resend
.automations
.stop("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
.await?;
Ok(())
}
import com.resend.*;
public class Main {
public static void main(String[] args) {
Resend resend = new Resend("re_xxxxxxxxx");
StopAutomationResponseSuccess data = resend.automations().stop("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd");
}
}
using Resend;
IResend resend = ResendClient.Create( "re_xxxxxxxxx" );
var resp = await resend.AutomationStopAsync( new Guid( "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd" ) );
Console.WriteLine( "Status={0}", resp.Content.Status );
curl -X POST 'https://api.resend.com/automations/c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd/stop' \
-H 'Authorization: Bearer re_xxxxxxxxx'
resend automations stop c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd
{
"object": "automation",
"id": "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd",
"status": "disabled"
}
Was this page helpful?
⌘I