McMain icon

McMain

Interact with McMain API

Call → Create

AI-generated

Summary

Create a new Call record via the McMain API

Inputs

  • description — Short description of the call
  • status — Status of the call
  • batchSize — Input will be split in batches to throttle requests. -1 for disabled. 0 will be treated as 1.
  • batchInterval — Time (in milliseconds) between each batch of requests. 0 for disabled.
  • allowUnauthorizedCerts — Whether to accept the response even if SSL certificate validation is not possible
  • proxy — HTTP proxy to use. If authentication is required it can be defined as follow: http://username:password@myproxy:3128
  • timeout — Time in ms to wait for the server to send response headers (and start the response body) before aborting the request

Output shape

a single record representing the newly created call

If batching is enabled, the response may contain a collection of created items; otherwise it returns the created object.

Examples

Example 1: Create a single call with basic fields

Set Additional Fields → description='Support request', status='Open'; leave other options default.

Example 2: Create multiple calls using batching

Enable Batching, set batchSize=50, batchInterval=1000; send an array of call payloads.

Discussion