hornet icon

hornet

Interact with hornet API

Actions452

Content Control → Content Control Post

AI-generated

Summary

Send content control settings for a specific customer object via a POST request to the Hornet Security API, optionally including group ID, priority, and detailed incoming and outgoing mail settings.

Inputs

  • Object Id (required) — The numeric ID of the customer object for which the content control settings apply.
  • Group Id — Optional numeric ID representing a group of the customer to associate the settings with.
  • APP ID (required) — A unique string identifier specific to your app, required in the request header as 'APP-ID'.
  • Use Same Settings — Boolean flag indicating whether to override outgoing settings with incoming; if true, outgoing settings are ignored.
  • Priority — Numeric priority of this setting; lower integers indicate higher priority, with 1 being the highest.
  • Incoming — JSON object specifying content control settings for incoming mails, e.g., forbidden attachment extensions.
  • Outgoing — JSON object specifying content control settings for outgoing mails, e.g., forbidden attachment extensions.
  • Request Options — Optional advanced HTTP request options such as batching, proxy, timeouts, and SSL certificate behavior.

Output shape

a single response record from the Hornet Security API representing the result of creating or updating content control settings

The API request is sent to https://cp.hornetsecurity.com/api/v0 with required headers and query parameters for object_id and optionally group_id. The body includes use_same_settings, priority, and JSON-parsed incoming and outgoing settings. Proper credentials for Hornet API are required. Error handling depends on the API response.

Links

Discussion