Update an expiry workflow attachment
post
https://api.expiryedge.com/v1/updateExpiryWorkflowAttachmenteditor or admin60/minAny method
Request
curl -X POST 'https://api.expiryedge.com/v1/updateExpiryWorkflowAttachment?id=att_1Mz7' \
-H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"trigger_type": "before_expiry",
"trigger_days": 45,
"trigger_time": "08:30"
}'Response
{
"message": "Attachment updated",
"attachment_id": "att_1Mz7"
}Id in ?id= (or attachment_id in query or body). Changing trigger_type recomputes trigger_date and resets a not-yet-fired trigger to pending (paused for manual).
Notification settings must be sent nested in notification_config here (flat fields are ignored on update).
The web app sends PUT; any HTTP method is accepted.
idstringAttachment id.
attachment_idstringAlternative to?id=.trigger_typestringAllowedbefore_expiryon_expiryafter_expiryon_doneon_renewalmanualtrigger_daysintegermin: 0 · max: 365trigger_timestringpattern: ^\d{2}:\d{2}$carry_to_renewalbooleannotification_configobject
200
Updated.
messagestringrequiredattachment_idstringrequired
400 | The request is missing required fields or contains invalid values. |
401 | Missing, expired or invalid bearer token. |
403 | Authenticated, but your role or organization does not allow this action. |
404 | The record does not exist or is not in your organization. |
429 | Too many requests for this endpoint from your IP. Wait Retry-After seconds. |
500 | Unexpected server error. Retry later; quote requestId to support. |
