AdHub App icon

AdHub App

Manage AdHub leads, activities, sources, statuses, tags, and custom fields

Task → Create

AI-generated

Summary

Create a new task in AdHub associated with a specified lead by submitting task details either as individual form fields or as a raw JSON object.

Inputs

  • Body Type — Choose between submitting the task details as form fields or as a JSON string.
  • Lead ID (required) — The identifier of the lead to which the task will be linked. Required when using form body type.
  • Title (required) — The title of the task, defining its subject or purpose. Required when using form body type.
  • Type (required) — The category of the task, such as call, email, meeting, sms, etc. Required when using form body type.
  • Due Date — The due date for the task in YYYY-MM-DD format.
  • Due Time — The due time for the task in HH:mm format.
  • Notes — Additional notes or comments about the task.
  • Body (JSON) — Raw JSON string representing the entire task object; used when Body Type is set to JSON.

Output shape

a JSON object representing the newly created task returned from the AdHub API

The task details are returned as a JSON object on successful creation. Either the form fields or the JSON body must be provided based on the selected Body Type. Errors from API requests will follow the AdHub API error format.

Links

Discussion