Brand
Macros
Update Macro Messaging

Update Macro Messaging

Update messaging templates and channel configuration for a macro, maintaining legacy compatibility.

Overview

  • Method: PUT
  • Path: /brand/macros/update-macro-messaging/<id>
  • Tags: brand

Parameters

id (path)

  • Type: string
  • Required: Yes
  • Description: id parameter

Request Body

  • Content Type: application/json
  • Required: Yes

Fields

FieldTypeRequiredDetails
emailstringYes
messagestringYes

Responses

200

Successful response

Content Type: application/json

{
  "macro": "string",
  "name": "string",
  "type": "string",
  "visibility": "string",
  "order": 123,
  "data": {
    "key": {}
  },
  "created_at": "2024-01-01T00:00:00.000Z",
  "updated_at": "2024-01-01T00:00:00.000Z"
}

400

Bad Request

Content Type: application/json

{
  "error": "string",
  "details": [
    {}
  ]
}

401

Unauthorized

404

Not Found

500

Internal Server Error

Example Usage

curl -X PUT \
  https://api.pillexa.com/brand/macros/update-macro-messaging/<id> \
  -H "Content-Type: application/json" \
  -d '{"example": "data"}'