curl --request PATCH \
--url https://app.base44.com/api/apps/{app_id}/imported/agent-deployments/{deployment_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"disabled": true
}
'import requests
url = "https://app.base44.com/api/apps/{app_id}/imported/agent-deployments/{deployment_id}"
payload = { "disabled": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({disabled: true})
};
fetch('https://app.base44.com/api/apps/{app_id}/imported/agent-deployments/{deployment_id}', 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://app.base44.com/api/apps/{app_id}/imported/agent-deployments/{deployment_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'disabled' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://app.base44.com/api/apps/{app_id}/imported/agent-deployments/{deployment_id}"
payload := strings.NewReader("{\n \"disabled\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://app.base44.com/api/apps/{app_id}/imported/agent-deployments/{deployment_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"disabled\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/apps/{app_id}/imported/agent-deployments/{deployment_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"disabled\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "6820f3a4e7b91d003c45a1f2",
"app_id": "6820f3a4e7b91d003c45a1f1",
"organization_id": "6820f3a4e7b91d003c45a1f0",
"package_digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"name": "team-reviewer",
"output_contract": "review.v1",
"disabled": true,
"created_date": "2026-10-30T00:00:00Z"
}{
"error": {
"code": "invalid_cursor",
"message": "The cursor does not match this query.",
"details": {}
}
}{
"error": {
"code": "unauthenticated",
"message": "Sign in with Bearer credentials.",
"details": {}
}
}{
"error": {
"code": "forbidden",
"message": "App or repository access denied.",
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "Agent run not found.",
"details": {}
}
}{
"error": {
"code": "idempotency_conflict",
"message": "Use a new Idempotency-Key for different input.",
"details": {}
}
}{
"error": {
"code": "invalid_request",
"message": "The agent manifest is invalid.",
"details": {}
}
}{
"error": {
"code": "rate_limited",
"message": "Too many agent requests.",
"details": {}
}
}{
"error": {
"code": "database_unavailable",
"message": "Database temporarily unavailable, please retry",
"details": {}
}
}Disable agent deployment
Authenticate with a platform Bearer credential or full-access workspace key permitted to edit this app. Scoped workspace keys are not accepted. Shares 60 reads or 6 mutations per minute per credential. Responses include request and rate-limit headers; 429 includes Retry-After. Disable new and queued executions of this version. Already running executions must be cancelled individually. This operation is idempotent; create another deployment for a new version.
curl --request PATCH \
--url https://app.base44.com/api/apps/{app_id}/imported/agent-deployments/{deployment_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"disabled": true
}
'import requests
url = "https://app.base44.com/api/apps/{app_id}/imported/agent-deployments/{deployment_id}"
payload = { "disabled": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({disabled: true})
};
fetch('https://app.base44.com/api/apps/{app_id}/imported/agent-deployments/{deployment_id}', 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://app.base44.com/api/apps/{app_id}/imported/agent-deployments/{deployment_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'disabled' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://app.base44.com/api/apps/{app_id}/imported/agent-deployments/{deployment_id}"
payload := strings.NewReader("{\n \"disabled\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://app.base44.com/api/apps/{app_id}/imported/agent-deployments/{deployment_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"disabled\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/apps/{app_id}/imported/agent-deployments/{deployment_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"disabled\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "6820f3a4e7b91d003c45a1f2",
"app_id": "6820f3a4e7b91d003c45a1f1",
"organization_id": "6820f3a4e7b91d003c45a1f0",
"package_digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"name": "team-reviewer",
"output_contract": "review.v1",
"disabled": true,
"created_date": "2026-10-30T00:00:00Z"
}{
"error": {
"code": "invalid_cursor",
"message": "The cursor does not match this query.",
"details": {}
}
}{
"error": {
"code": "unauthenticated",
"message": "Sign in with Bearer credentials.",
"details": {}
}
}{
"error": {
"code": "forbidden",
"message": "App or repository access denied.",
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "Agent run not found.",
"details": {}
}
}{
"error": {
"code": "idempotency_conflict",
"message": "Use a new Idempotency-Key for different input.",
"details": {}
}
}{
"error": {
"code": "invalid_request",
"message": "The agent manifest is invalid.",
"details": {}
}
}{
"error": {
"code": "rate_limited",
"message": "Too many agent requests.",
"details": {}
}
}{
"error": {
"code": "database_unavailable",
"message": "Database temporarily unavailable, please retry",
"details": {}
}
}Authorizations
Personal access token, sent as Authorization: Bearer <token>. Each operation lists the permission it needs: read_only or full_access. A full-access token can call every operation. A read-only token can call only the operations that list read_only; anything else returns 403 read_only_credential_route_not_allowed.
Path Parameters
The deployment identifier returned by creation.
^[a-f0-9]{24}$"6820f3a4e7b91d003c45a1f2"
The imported app whose connected repository the agent may read.
^[a-f0-9]{24}$"6820f3a4e7b91d003c45a1f1"
Body
Disable new runs. Create a new deployment to enable another version.
Was this page helpful?