Brand
Macros
Update Macro Data

Update Macro Data

Updates a macro

Overview

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

Parameters

id (path)

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

Request Body

  • Content Type: application/json
  • Required: Yes

Fields

FieldTypeRequiredDetails
datastringNo
smsTemplateIdstringNo
requireLoginbooleanNo
sendEmailbooleanNo
sendSmsbooleanNo
smsMessagestringNo

Responses

200

Successful response

Content Type: application/json

{
  "macro": "string",
  "name": "string",
  "data": {}
}

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-data/<id> \
  -H "Content-Type: application/json" \
  -d '{"example": "data"}'