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
| Field | Type | Required | Details |
|---|---|---|---|
| data | string | No | |
| smsTemplateId | string | No | |
| requireLogin | boolean | No | |
| sendEmail | boolean | No | |
| sendSms | boolean | No | |
| smsMessage | string | No |
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"}'