Home / Docs Center / Pet Feeder (ODM Case) / Push Feeding Plan (ToDeviceFeedPlan)
Push Feeding Plan (ToDeviceFeedPlan)
Project: Pet Feeder | page_id: 1718
Brief Description
- Logical interface name. The actual request path on the server side is /xsw/api/sys/commandReceive, and the command is fixed to feed_plan.
- xstrive receives through /tmp/xstrive_in_pip, and the return result is written to /tmp/xstrive_out_pip
Request URL
http://192.168.0.15/xsw/api/sys/commandReceive
Request Method
- post
Request BODY Parameter Example
{
"command": "feed_plan",
"data": [
{
"id": 0,
"deviceId": "string",
"time": "string",
"amount": 0,
"days": "string",
"enabled": true,
"createdAt": "2026-05-09 11:12:11",
"updatedAt": "2026-05-09 11:12:11"
}
]
}
JSON Field Description
| Field Name | Required | Type | Description |
|---|---|---|---|
| command | Yes | string | Command string: feed_plan |
| data | Yes | array | |
| id | No | integer | Plan ID |
| deviceId | Yes | string | Device serial number |
| time | Yes | string | Feeding time, HH:mm |
| amount | Yes | integer | Feeding amount |
| days | Yes | string | Weekday list, example 1,2,3,4,5,6,7 |
| enabled | Yes | boolean | Whether it is enabled |
| createdAt | No | string | |
| updatedAt | No | string |
Success Response Example
{
"code": 0,
"msg": "ok"
}
Parameter Description of the Success Response Example
| Parameter Name | Type | Description |
|---|---|---|
| code | integer | Error code; 0 means success, others mean failure |
| msg | string | Error message |
Didn't find what you need?Contact us,Talk to our engineers directly.