Below are the various requests that can be performed against the
Instance Custom Node resource, as well as the expected
parameters and the potential responses.
A valid api access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Instance, all.User, instanceCustomNode.*, or instanceCustomNode.delete.
Request Path Components
Path Component
Description
Example
INSTANCE_ID
ID associated with the instance
575ec7417ae143cd83dc4a96
INSTANCECUSTOMNODE_ID
ID associated with the Custom Node
575ec7417ae143cd83dc4a95
Request Headers
Name
Required
Description
Default
Authorization
Y
The token for authenticating the request, prepended with Bearer
Get information about errors that occurred during runs of this Custom Node
Method And Url
GET https://api.losant.com/instances/INSTANCE_ID/nodes/INSTANCE_CUSTOM_NODE_ID/errors
Authentication
A valid api access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Instance, all.Instance.read, all.User, all.User.read, instanceCustomNode.*, or instanceCustomNode.errors.
Request Path Components
Path Component
Description
Example
INSTANCE_ID
ID associated with the instance
575ec7417ae143cd83dc4a96
INSTANCECUSTOMNODE_ID
ID associated with the Custom Node
575ec7417ae143cd83dc4a95
Request Query Parameters
Name
Required
Description
Default
Example
duration
N
Duration of time range in milliseconds
86400000
duration=86400000
end
N
End of time range in milliseconds since epoch
0
end=0
limit
N
Maximum number of errors to return
25
limit=25
sortDirection
N
Direction to sort the results by. Accepted values are: asc, desc
desc
sortDirection=desc
Request Headers
Name
Required
Description
Default
Authorization
Y
The token for authenticating the request, prepended with Bearer
Curl Example
curl-H'Content-Type: application/json'\-H'Accept: application/json'\-H'Authorization: Bearer YOUR_API_ACCESS_TOKEN'\-X GET \
https://api.losant.com/instances/INSTANCE_ID/nodes/INSTANCE_CUSTOM_NODE_ID/errors
GET https://api.losant.com/instances/INSTANCE_ID/nodes/INSTANCE_CUSTOM_NODE_ID
Authentication
A valid api access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Instance, all.Instance.read, all.User, all.User.read, instanceCustomNode.*, or instanceCustomNode.get.
Request Path Components
Path Component
Description
Example
INSTANCE_ID
ID associated with the instance
575ec7417ae143cd83dc4a96
INSTANCECUSTOMNODE_ID
ID associated with the Custom Node
575ec7417ae143cd83dc4a95
Request Headers
Name
Required
Description
Default
Authorization
Y
The token for authenticating the request, prepended with Bearer
Curl Example
curl-H'Content-Type: application/json'\-H'Accept: application/json'\-H'Authorization: Bearer YOUR_API_ACCESS_TOKEN'\-X GET \
https://api.losant.com/instances/INSTANCE_ID/nodes/INSTANCE_CUSTOM_NODE_ID
A valid api access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Instance, all.User, instanceCustomNode.*, or instanceCustomNode.patch.
Request Path Components
Path Component
Description
Example
INSTANCE_ID
ID associated with the instance
575ec7417ae143cd83dc4a96
INSTANCECUSTOMNODE_ID
ID associated with the Custom Node
575ec7417ae143cd83dc4a95
Request Headers
Name
Required
Description
Default
Authorization
Y
The token for authenticating the request, prepended with Bearer
Request Body
The body of the request should be serialized JSON that validates against
the Instance Custom Node Patch schema. For example, the following would be a
valid body for this request:
GET https://api.losant.com/instances/INSTANCE_ID/nodes/INSTANCE_CUSTOM_NODE_ID/stats
Authentication
A valid api access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Instance, all.Instance.read, all.User, all.User.read, instanceCustomNode.*, or instanceCustomNode.stats.
Request Path Components
Path Component
Description
Example
INSTANCE_ID
ID associated with the instance
575ec7417ae143cd83dc4a96
INSTANCECUSTOMNODE_ID
ID associated with the Custom Node
575ec7417ae143cd83dc4a95
Request Query Parameters
Name
Required
Description
Default
Example
duration
N
Duration of time range in milliseconds
86400000
duration=86400000
end
N
End of time range in milliseconds since epoch
0
end=0
resolution
N
Resolution in milliseconds
3600000
resolution=3600000
Request Headers
Name
Required
Description
Default
Authorization
Y
The token for authenticating the request, prepended with Bearer
Curl Example
curl-H'Content-Type: application/json'\-H'Accept: application/json'\-H'Authorization: Bearer YOUR_API_ACCESS_TOKEN'\-X GET \
https://api.losant.com/instances/INSTANCE_ID/nodes/INSTANCE_CUSTOM_NODE_ID/stats