curl --request PATCH \
--url https://api.shingleai.com/v1/automations/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Auto-reply to inquiries",
"description": "Sends an auto-reply to new inquiries",
"triggerEvent": "message.received",
"cronExpression": "0 9 * * MON-FRI",
"condition": {},
"instructions": "Reply to the sender thanking them for their inquiry and let them know we will respond within 24 hours.",
"enabled": true,
"groupId": "123e4567-e89b-12d3-a456-426614174000",
"groupName": "Customer Support",
"groupMetadata": {
"purpose": "<string>",
"createdBy": "<string>",
"aiTaskId": "<string>",
"tags": [
"<string>"
]
},
"maxExecutions": 100,
"currentExecutions": 0,
"expiresAt": "2025-12-31T23:59:59Z",
"status": "active"
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"triggerEvent": "<string>",
"cronExpression": "<string>",
"condition": {},
"instructions": "<string>",
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"enabled": true,
"permissions": {},
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupName": "<string>",
"groupMetadata": {},
"maxExecutions": 123,
"currentExecutions": 123,
"expiresAt": "2023-11-07T05:31:56Z",
"status": "active"
},
"meta": {
"pagination": {
"limit": 123,
"offset": 123,
"hasMore": true,
"total": 123
}
}
}Partially update an existing automation. Only provided fields will be updated.
curl --request PATCH \
--url https://api.shingleai.com/v1/automations/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Auto-reply to inquiries",
"description": "Sends an auto-reply to new inquiries",
"triggerEvent": "message.received",
"cronExpression": "0 9 * * MON-FRI",
"condition": {},
"instructions": "Reply to the sender thanking them for their inquiry and let them know we will respond within 24 hours.",
"enabled": true,
"groupId": "123e4567-e89b-12d3-a456-426614174000",
"groupName": "Customer Support",
"groupMetadata": {
"purpose": "<string>",
"createdBy": "<string>",
"aiTaskId": "<string>",
"tags": [
"<string>"
]
},
"maxExecutions": 100,
"currentExecutions": 0,
"expiresAt": "2025-12-31T23:59:59Z",
"status": "active"
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"triggerEvent": "<string>",
"cronExpression": "<string>",
"condition": {},
"instructions": "<string>",
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"enabled": true,
"permissions": {},
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupName": "<string>",
"groupMetadata": {},
"maxExecutions": 123,
"currentExecutions": 123,
"expiresAt": "2023-11-07T05:31:56Z",
"status": "active"
},
"meta": {
"pagination": {
"limit": 123,
"offset": 123,
"hasMore": true,
"total": 123
}
}
}API key authentication via Bearer token
Automation UUID
"123e4567-e89b-12d3-a456-426614174000"
"Auto-reply to inquiries"
"Sends an auto-reply to new inquiries"
"message.received"
"0 9 * * MON-FRI"
"Reply to the sender thanking them for their inquiry and let them know we will respond within 24 hours."
true
"123e4567-e89b-12d3-a456-426614174000"
"Customer Support"
100
x >= 00
"2025-12-31T23:59:59Z"
active, paused, completed, expired "active"
Automation updated successfully
Show child attributes
active, paused, completed, expired