URL
POST https://{api-url}/api/v2/tenants/{tenantId}/resources
URL example
https://{api-url}/api/v2/tenants/client_12/resources
Parameters
All fields are required unless specified otherwise.
Field | Data Type | Description |
---|---|---|
name | String | Name of resource. |
extResourceId | String | External Id of the resource. |
resourceType | String | Type of resource. |
metadata | String | Metadata for the resource. |
Sample request
{
"name": "testresource-api",
"extResourceId": "extResourceId_123",
"hostName": "testdevice-api",
"resourceType": "Device",
"metaData" : {
"property1" : "value1",
"property2" : "value2",
"property3" : "value3"
}
}
Sample response
{
"resourceUUID": "612acfb0-6890-4d52-950b-1c4ec17a7248",
"tenantID": "client_12"
}