hornet icon

hornet

Interact with hornet API

Actions452

Content Control → Content Control Put

AI-generated

Summary

Update the content control settings for a specific customer object by modifying incoming and outgoing mail configurations.

Inputs

  • Object Id (required) — The numeric ID of the customer object to update.
  • Group Id — Optional numeric ID of the customer's group.
  • APP ID (required) — A unique string identifier issued for your app, sent as a header.
  • Use Same Settings — Boolean flag to override outgoing settings with incoming ones; if true, outgoing settings are ignored.
  • Incoming (required) — JSON object defining settings for incoming mails, including forbidden attachment extensions.
  • Outgoing (required) — JSON object defining settings for outgoing mails, including forbidden attachment extensions.

Output shape

a single updated content control record per request

The operation sends a PUT request with the specified query parameters and JSON body to update content control settings. The response is expected to be JSON matching the updated resource. Optional parameters include Group Id. The APP ID is sent as a request header. The Use Same Settings flag controls outgoing settings behavior.

Examples

Example 1: Update content control settings for customer 123 with specific incoming and outgoing rules and app ID 'my-app-id'. Group Id omitted, use_same_settings true.

Object Id: 123, APP ID: 'my-app-id', Use Same Settings: true, Incoming and Outgoing JSON bodies as per rules.

Links

Discussion