The Add Machine API

Using the Add Machine API, you can add a server in a Historian system.
METHOD POST
URI
https://<historianservername>/historian-rest-api/v1/machine
SAMPLE URI
https://<historianservername>/historian-rest-api/v1/machine

Payload

{
"nodeName": "node1"
}
SAMPLE RESPONSE
{

    "ErrorCode": 0,

    "ErrorMessage": null

}
SAMPLE cURL COMMAND
curl -i -H "Accept: application/json" -i -H "Content-Type: application/json" -H "Authorization: Bearer <TOKEN>” 
-d “{ \”nodeName \”:\”name\”}” -X POST https://<historianservername>/historian-rest-api/v1/machine

Query Parameters

Parameter Description Required? Values
Payload Contains the machine name of the server that you want to add. Yes Multiple

Response Parameters

Parameter Data Type Required? Description
ErrorCode Integer Yes For example, ErrorCode = 0 implies the operation was successful.
ErrorMessage String Yes For example, NULL.