curl --request PATCH \
--url 'https://api.nsr.stateset.com/api/v1/macros/{id}' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"auto_send": true,
"channel": "string",
"rule_name": "string",
"status": {
"0": "c",
"1": "a",
"2": "n",
"3": "d",
"4": "i",
"5": "d",
"6": "a",
"7": "t",
"8": "e"
},
"tags": [
"priority"
],
"title": "Replacement tent pole set"
}'
{
"auto_send": true,
"body": "Two-person tent, green — replacement for damaged pole set.",
"channel": "string",
"created_at": "2026-08-31T14:22:05Z",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Two-Person Tent",
"org_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"rule_name": "string",
"slots": [
"string"
],
"source": "string",
"status": "candidate",
"tags": [
"priority"
],
"title": "Replacement tent pole set",
"tool": {
"arguments": {},
"name": "Two-Person Tent"
},
"updated_at": "2026-08-31T14:22:05Z"
}
Update macro metadata — approve it, bind it to a rule, toggle auto-send.
Required scope: write
PATCH
/
api
/
v1
/
macros
/
{id}
curl --request PATCH \
--url 'https://api.nsr.stateset.com/api/v1/macros/{id}' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"auto_send": true,
"channel": "string",
"rule_name": "string",
"status": {
"0": "c",
"1": "a",
"2": "n",
"3": "d",
"4": "i",
"5": "d",
"6": "a",
"7": "t",
"8": "e"
},
"tags": [
"priority"
],
"title": "Replacement tent pole set"
}'
{
"auto_send": true,
"body": "Two-person tent, green — replacement for damaged pole set.",
"channel": "string",
"created_at": "2026-08-31T14:22:05Z",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Two-Person Tent",
"org_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"rule_name": "string",
"slots": [
"string"
],
"source": "string",
"status": "candidate",
"tags": [
"priority"
],
"title": "Replacement tent pole set",
"tool": {
"arguments": {},
"name": "Two-Person Tent"
},
"updated_at": "2026-08-31T14:22:05Z"
}
Required scope:
write
Path parameters
Request body
UpdateMacroRequest
Response
Macro
Status codes
| Code | Meaning |
|---|---|
200 | Updated macro |
401 | Unauthorized — missing or invalid credentials |
403 | Forbidden — the key/token lacks the required scope |
404 | No such macro in this organization |
429 | Rate limited — see Retry-After / X-RateLimit-Reset |
curl --request PATCH \
--url 'https://api.nsr.stateset.com/api/v1/macros/{id}' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"auto_send": true,
"channel": "string",
"rule_name": "string",
"status": {
"0": "c",
"1": "a",
"2": "n",
"3": "d",
"4": "i",
"5": "d",
"6": "a",
"7": "t",
"8": "e"
},
"tags": [
"priority"
],
"title": "Replacement tent pole set"
}'
{
"auto_send": true,
"body": "Two-person tent, green — replacement for damaged pole set.",
"channel": "string",
"created_at": "2026-08-31T14:22:05Z",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Two-Person Tent",
"org_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"rule_name": "string",
"slots": [
"string"
],
"source": "string",
"status": "candidate",
"tags": [
"priority"
],
"title": "Replacement tent pole set",
"tool": {
"arguments": {},
"name": "Two-Person Tent"
},
"updated_at": "2026-08-31T14:22:05Z"
}
Last modified on August 31, 2026