> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://api.docs.modulards.com/modular-ds-public-api/notification-configurations/configurations/update-a-notification-configuration/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://api.docs.modulards.com/_mcp/server. # Update a notification configuration PATCH https://api.modulards.com/api/public/v1/alerts/{alert_id} Content-Type: application/json Changes what you send on a notification configuration and leaves the rest as it is: fields you leave out, and events you do not list in `items`, keep their stored value. Send only the fields you want to change. **Body** All fields are optional and take the same values as in "Create a notification configuration". * `name` (string, optional): at most 30 characters. * `default` (boolean, optional): whether it is the organization's default configuration. * `status` (`enabled` or `disabled`, optional): whether the configuration is active. * `email_channel`, `whatsapp_channel`, `slack_channel`, `discord_channel` (boolean, optional): which channels are active. WhatsApp, Slack and Discord depend on the organization's plan, as in "Create a notification configuration". * `items` (array, optional): entries of `{type, status}` for the events you want to change. Reference: https://api.docs.modulards.com/modular-ds-public-api/notification-configurations/configurations/update-a-notification-configuration ## Authentication - `Authorization` header (bearer token, required) — Personal access token created in the Modular DS dashboard; read-only tokens can only call GET endpoints. ## Request ### Path parameters - `alert_id` (string, required) ### Body (application/json) This endpoint expects an object. - `status` (string, optional) ## Response ### 200 200 - Configuration - `data` (ApiPublicV1AlertsAlertIdPatchResponsesContentApplicationJsonSchemaData, optional) - `jsonapi` (ApiPublicV1AlertsAlertIdPatchResponsesContentApplicationJsonSchemaJsonapi, optional) ## Types ### ApiPublicV1AlertsAlertIdPatchResponsesContentApplicationJsonSchemaData - `attributes` (ApiPublicV1AlertsAlertIdPatchResponsesContentApplicationJsonSchemaDataAttributes, optional) - `id` (string, optional) - `links` (ApiPublicV1AlertsAlertIdPatchResponsesContentApplicationJsonSchemaDataLinks, optional) - `type` (string, optional) ### ApiPublicV1AlertsAlertIdPatchResponsesContentApplicationJsonSchemaJsonapi - `version` (string, optional) ### ApiPublicV1AlertsAlertIdPatchResponsesContentApplicationJsonSchemaDataAttributes - `created_at` (string, optional) - `discord_channel` (boolean, optional) - `email_channel` (boolean, optional) - `is_default` (boolean, optional) - `name` (string, optional) - `slack_channel` (boolean, optional) - `status` (string, optional) - `updated_at` (string, optional) - `whatsapp_channel` (boolean, optional) ### ApiPublicV1AlertsAlertIdPatchResponsesContentApplicationJsonSchemaDataLinks - `self` (string, optional) ## Examples ### 200 - Configuration **Response** ```json { "data": { "attributes": { "created_at": "2026-09-20T09:00:00.000000Z", "discord_channel": false, "email_channel": true, "is_default": false, "name": "Operations", "slack_channel": false, "status": "enabled", "updated_at": "2026-09-28T09:05:00.000000Z", "whatsapp_channel": false }, "id": "12", "links": { "self": "https://api.modulards.com/api/public/v1/alerts/12" }, "type": "alerts" }, "jsonapi": { "version": "1.1" } } ``` **SDK Code** ```python 200 - Configuration import requests url = "https://api.modulards.com/api/public/v1/alerts/alert_id" headers = {"Authorization": "Bearer "} response = requests.patch(url, headers=headers) print(response.json()) ``` ```javascript 200 - Configuration const url = 'https://api.modulards.com/api/public/v1/alerts/alert_id'; const options = {method: 'PATCH', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go 200 - Configuration package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.modulards.com/api/public/v1/alerts/alert_id" req, _ := http.NewRequest("PATCH", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby 200 - Configuration require 'uri' require 'net/http' url = URI("https://api.modulards.com/api/public/v1/alerts/alert_id") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Patch.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java 200 - Configuration import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.patch("https://api.modulards.com/api/public/v1/alerts/alert_id") .header("Authorization", "Bearer ") .asString(); ``` ```php 200 - Configuration request('PATCH', 'https://api.modulards.com/api/public/v1/alerts/alert_id', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp 200 - Configuration using RestSharp; var client = new RestClient("https://api.modulards.com/api/public/v1/alerts/alert_id"); var request = new RestRequest(Method.PATCH); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift 200 - Configuration import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://api.modulards.com/api/public/v1/alerts/alert_id")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "PATCH" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ``` ### Update a notification configuration **Request** ```json { "status": "disabled" } ``` **Response** ```json { "data": { "attributes": { "created_at": "2026-09-20T09:00:00.000000Z", "discord_channel": false, "email_channel": true, "is_default": false, "name": "Operations", "slack_channel": false, "status": "enabled", "updated_at": "2026-09-28T09:05:00.000000Z", "whatsapp_channel": false }, "id": "12", "links": { "self": "https://api.modulards.com/api/public/v1/alerts/12" }, "type": "alerts" }, "jsonapi": { "version": "1.1" } } ``` **SDK Code** ```python Update a notification configuration import requests url = "https://api.modulards.com/api/public/v1/alerts/alert_id" payload = { "status": "disabled" } headers = { "Authorization": "Bearer ", "Content-Type": "application/json" } response = requests.patch(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Update a notification configuration const url = 'https://api.modulards.com/api/public/v1/alerts/alert_id'; const options = { method: 'PATCH', headers: {Authorization: 'Bearer ', 'Content-Type': 'application/json'}, body: '{"status":"disabled"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Update a notification configuration package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.modulards.com/api/public/v1/alerts/alert_id" payload := strings.NewReader("{\n \"status\": \"disabled\"\n}") req, _ := http.NewRequest("PATCH", url, payload) req.Header.Add("Authorization", "Bearer ") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby Update a notification configuration require 'uri' require 'net/http' url = URI("https://api.modulards.com/api/public/v1/alerts/alert_id") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Patch.new(url) request["Authorization"] = 'Bearer ' request["Content-Type"] = 'application/json' request.body = "{\n \"status\": \"disabled\"\n}" response = http.request(request) puts response.read_body ``` ```java Update a notification configuration import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.patch("https://api.modulards.com/api/public/v1/alerts/alert_id") .header("Authorization", "Bearer ") .header("Content-Type", "application/json") .body("{\n \"status\": \"disabled\"\n}") .asString(); ``` ```php Update a notification configuration request('PATCH', 'https://api.modulards.com/api/public/v1/alerts/alert_id', [ 'body' => '{ "status": "disabled" }', 'headers' => [ 'Authorization' => 'Bearer ', 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp Update a notification configuration using RestSharp; var client = new RestClient("https://api.modulards.com/api/public/v1/alerts/alert_id"); var request = new RestRequest(Method.PATCH); request.AddHeader("Authorization", "Bearer "); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"status\": \"disabled\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Update a notification configuration import Foundation let headers = [ "Authorization": "Bearer ", "Content-Type": "application/json" ] let parameters = ["status": "disabled"] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.modulards.com/api/public/v1/alerts/alert_id")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "PATCH" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```