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.

FieldData TypeDescription
nameStringName of resource.
extResourceIdStringExternal Id of the resource.
resourceTypeStringType of resource.
metadataStringMetadata 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"
}