...
** Actions ending in _form are for web form input
You cannot delete a default org, location or script.
Request Method | id | action | sub_resource | sub_resource_id | Resulting Action | Notes | URL Example |
---|---|---|---|---|---|---|---|
GET | N | collection | /devices | ||||
GET | N | create | create_form | /devices?action=create | |||
GET | Y/N | create | Y | sub_resource_create_form | /devices?action=create&sub_resource=credentials | ||
GET | N | import | import_form | /devices?action=import | |||
GET | Y | read | /devices/{id} | ||||
GET | Y | update | update_form | /devices/{id}?action=update | |||
GET | Y | download | download | /scripts/{id}?action=download | |||
GET | N | update | bulk_update_form | Should provide attribute "ids" which is a comma separated list of ID's upon which to bulk update. | /devices?action=update&ids=1,2,3,4 | ||
POST | N | create | /devices | ||||
POST | N | import | import | /devices?action=import | |||
POST / PUT / PATCH | Y | update | /devices/{id}?action=update | ||||
POST | Y | Y | sub_resource_create | /devices/{id}?sub_resource=credential | |||
DELETE | Y | N | delete | You cannot delete a default org, location or script. | /scripts/{id} | ||
DELETE | Y | Y | Y | sub_resource_delete | /devices/{id}/credential/{sub_resource_id} | ||
ALL | <empty> or list | collection | |||||
...