Restore Archived Macro
Restores an archived macro and records the user performing the action.
Overview
- Method: POST
- Path:
/brand/macros/restore-archived-macro/<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 |
|---|---|---|---|
| description | string | Yes |
Responses
200
Successful response
Content Type: application/json
{
"id": "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",
"restored_at": "2024-01-01T00:00:00.000Z",
"restored_by": "string"
}400
Bad Request
Content Type: application/json
{
"error": "string",
"details": [
{}
]
}401
Unauthorized
404
Not Found
500
Internal Server Error
Example Usage
curl -X POST \
https://api.pillexa.com/brand/macros/restore-archived-macro/<id> \
-H "Content-Type: application/json" \
-d '{"example": "data"}'