macros

Create a new macro

Changed on

Creates a new macro within the specified macro group.

Rate limit: 300 requests per minute

post/macros

Request

  • Base URL
    https://api.usepylon.com
  • URL
    https://api.usepylon.com/macros
  • Auth
    HTTP bearer

Request body

macro_group_idstring required

The ID of the macro group this macro belongs to.

namestring required

The name of the macro.

text_htmlstring required

The HTML content of the macro.

text_typestring

The type of text: "reply", "note", or "email". Defaults to "reply".

Example request

{
  "conditions": {
    "subfilters": [
      {
        "field": "state",
        "operator": "equals",
        "value": "new"
      }
    ]
  }
}

Response

request_idstring required

The request ID for tracking.

Changes

    • info

      added the new not enum value to the request property /

    • info

      added the new time_is_in_last enum value to the request property /

    • info

      added the new time_is_in_next enum value to the request property /

    • info

      added the new time_is_not_in_last enum value to the request property /

    • info

      added the new time_is_not_in_next enum value to the request property /

    • info

      the response property became required for the status