Skip to main content

NodeSwitchLog

Definition

NodeSwitchLog Type
nodeSwitchLog.json
{
"id": 0,
"userID": 0,
"nodeSwitchID": 0,
"ratio": 0,
"openedBy": 0,
"closedBy": 0,
"openedByName": "",
"closedByName": "",
"openedAt": "",
"closedAt": "",
"createdAt": "",
}

Get NodeSwitchLogs

curl -X GET "https://${baseUrl}/node-switch-log/?\$filter=&\$orderBy=&\$page=1&\$pageSize=10" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Get NodeSwitchLog

curl -X GET "https://${baseUrl}/node-switch-log/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Apply NodeSwitchLog.ID

curl -X POST "https://${baseUrl}/apply/node-switch-log/id/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Create NodeSwitchLog

curl -X POST "https://${baseUrl}/node-switch-log/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d @nodeSwitchLog.json
info
nodeSwitchLog.json
{
"userID": 0,
"nodeSwitchID": 0,
"ratio": 0,
"openedBy": 0,
"closedBy": 0,
"openedByName": "",
"closedByName": "",
"openedAt": "",
"closedAt": "",
}
tip

success status: 201

Update NodeSwitchLog

curl -X PUT "https://${baseUrl}/node-switch-log/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d @nodeSwitchLog.json
info
nodeSwitchLog.json
{
"userID": 0,
"nodeSwitchID": 0,
"ratio": 0,
"openedBy": 0,
"closedBy": 0,
"openedByName": "",
"closedByName": "",
"openedAt": "",
"closedAt": "",
}

Update NodeSwitchLog Partial

curl -X PATCH "https://${baseUrl}/node-switch-log/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Attrs: userID,nodeSwitchID,ratio,openedBy,closedBy,openedByName,closedByName,openedAt,closedAt" \
-d @nodeSwitchLog.json
info
nodeSwitchLog.json
{
"userID": 0,
"nodeSwitchID": 0,
"ratio": 0,
"openedBy": 0,
"closedBy": 0,
"openedByName": "",
"closedByName": "",
"openedAt": "",
"closedAt": "",
}

Destroy NodeSwitchLog

curl -X DELETE "https://${baseUrl}/node-switch-log/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"