Line 440: |
Line 440: |
| API allows creating, reading, updating, or deleting configurations using the allowed API endpoints from a list. | | API allows creating, reading, updating, or deleting configurations using the allowed API endpoints from a list. |
| | | |
− | [[File:Networking rutos manual mobile utilities sms utilities modify sms rule api v1.png|border|class=tlt-border]] | + | [[File:Networking rutos manual mobile utilities sms utilities modify sms rule api v2.png|border|class=tlt-border]] |
| ---- | | ---- |
| The following are syntax examples for the API rule: | | The following are syntax examples for the API rule: |
Line 453: |
Line 453: |
| <td>api <b>get</b> <method>.<config>.<section></td> | | <td>api <b>get</b> <method>.<config>.<section></td> |
| <td>Returns specified config options.</td> | | <td>Returns specified config options.</td> |
− | <td><ul><li><i>api get /auto_reboot/periodic/config</i></li></ul>Returns periodic reboot options.</td> | + | <td><ul><li><i>api get /auto_reboot/schedular/config</i></li></ul>Returns periodic reboot options.</td> |
| </tr> | | </tr> |
| <tr> | | <tr> |
| <td>api <b>post</b><method> <config>.<section>.<option_name>="value"</td> | | <td>api <b>post</b><method> <config>.<section>.<option_name>="value"</td> |
| <td>Sets the value of a specified configuration option.</td> | | <td>Sets the value of a specified configuration option.</td> |
− | <td><ul><li><i>api post /auto_reboot/periodic/config {"data": {"action": "1", "period": "week", "days": ["mon"], "time": ["12:00"]}}</i></li></ul>Creates a periodic reboot configuration with options to reboot device every monday on 12:00.</td> | + | <td><ul><li><i>api post /auto_reboot/schedular/config {"data": {"action": "1", "period": "week", "days": ["mon"], "time": ["12:00"]}}</i></li></ul>Creates a periodic reboot configuration with options to reboot device every monday on 12:00.</td> |
| </tr> | | </tr> |
| <tr> | | <tr> |
| <td>api <b>put</b> <method> <config>.<section>.<option_name>="value"</td> | | <td>api <b>put</b> <method> <config>.<section>.<option_name>="value"</td> |
| <td>Edits a specified config options.</td> | | <td>Edits a specified config options.</td> |
− | <td><ul><li><i>api put /auto_reboot/periodic/config/{id} {"data": { "enable": "1"}}</i></li></ul>Sets a specified periodic reboot config to enabled.</td> | + | <td><ul><li><i>api put /auto_reboot/schedular/config/{id} {"data": { "enable": "1"}}</i></li></ul>Sets a specified periodic reboot config to enabled.</td> |
| </tr> | | </tr> |
| <tr> | | <tr> |
| <td>api <b>delete</b> <method> <config>.<section>.<config_id></td> | | <td>api <b>delete</b> <method> <config>.<section>.<config_id></td> |
| <td>Deletes a specified configuration.</td> | | <td>Deletes a specified configuration.</td> |
− | <td><ul><li><i>api delete /auto_reboot/periodic/config/{id}</i></li></ul>Deletes a specified periodic reboot configuration.</td> | + | <td><ul><li><i>api delete /auto_reboot/schedular/config/{id}</i></li></ul>Deletes a specified periodic reboot configuration.</td> |
| </tr> | | </tr> |
| </table> | | </table> |