Delete Integration Panel
Disable an active integration panel. Its stored definition and runtime data are retained.
DELETE https://api.sonorancad.com/v2/integration-panels/{panelKey}
Rate limit:
30 requests per minuteper API key.
Disable an active integration panel. Its stored definition and runtime data are retained.
Path Parameters
panelKey
string
Stable panel key.
Example Request
-- luarocks install sonoran.lua
local Sonoran = require("sonoran")
local sonoran = Sonoran.createClient({
product = Sonoran.productEnums.CAD,
communityId = "YOUR_COMMUNITY_ID",
apiKey = "YOUR_API_KEY",
defaultServerId = 1
})
local response = sonoran.cad:deleteIntegrationPanelV2("example.fire-alarms")
print(response.success)Use this tab from the server side of a FiveM resource. Never expose the API key to client scripts.
Sonoran.lua and Sonoran.js use the configured client exported by sonorancad. Sonoran.Net must read the CAD convars and create a client. Grant the resource access to the protected key with add_convar_permission your-resource-name read sonoran_apiKey.
Sonoran.lua
local cad = exports["sonorancad"]:getCadClient()
local response = cad:deleteIntegrationPanelV2("example.fire-alarms")
print(response.success)Sonoran.js
(async () => {
const cad = exports["sonorancad"].getCadClient();
const response = await cad.deleteIntegrationPanelV2('example.fire-alarms');
console.log(response.success ? response.data : response.reason);
})();Sonoran.Net
using CitizenFX.Core.Native;
using Sonoran;
var communityId = API.GetConvar("sonoran_communityID", "");
var apiKey = API.GetConvar("sonoran_apiKey", "");
var serverId = int.TryParse(API.GetConvar("sonoran_serverId", "1"), out var parsed) ? parsed : 1;
using var sonoran = new SonoranClient(new SonoranClientOptions
{
product = SonoranProduct.CAD,
communityId = communityId,
apiKey = apiKey,
defaultServerId = serverId
});
var response = await sonoran.Cad.deleteIntegrationPanelV2("example.fire-alarms");Import this YAML into Postman with Import -> Raw text.
Response
Last updated
Was this helpful?

