DC 5.7 GetMetafieldTreeNodes

This search is used for getting the tree nodes of a metafield of the type tree.

URL : /SearchService.js

Method : POST

Auth required : Yes

Required parameters

NameExampleDescription
SearchNameDigizuite_system_metadatav2_treeFixed parameter that identifies the endpoint method.
sfMetafieldLabelId50751id of the metafieldlabel
accessKey2d8319f4-7a57-4ca0-a027-c44c2f259aacaccessKey for api


cUrl data example

--data "SearchName=Digizuite_system_metadatav2_tree&accesskey=eb774621-1c2f-467b-b006-a8efa67094a7&sfMetafieldLabelId=50751"

Success Response

Code : 200 OK

Content example

{
	"success": true,
	"error": "",
	"total": "4",
	"items": [{		
		"itemId": "7540",
		"totalCases": "6",
		"id": "33",
		"text": "Images",
		"optionvalue": "42207e5c-b48e-43f6-af0a-f767415a24eb",
		"showCheck": "1",
		"prevref": "0",
		"Children": "0",
		"writeaccess": "1",
		"idpath": "/33/",
		"item_tree_valueid": "33"
	},
	{
		"itemId": "8562",
		"totalCases": "6",
		"id": "41",
		"text": "Videos",
		"optionvalue": "43148bca-5e70-4a2e-bd81-391c339bf991",
		"showCheck": "1",
		"prevref": "0",
		"Children": "0",
		"writeaccess": "1",
		"idpath": "/41/",
		"item_tree_valueid": "41"
	},
	{
		"itemId": "8570",
		"totalCases": "6",
		"id": "49",
		"text": "Documents",
		"optionvalue": "08fe69c5-ecce-46b0-8555-6f4c70aa67de",
		"showCheck": "1",
		"prevref": "0",
		"Children": "0",
		"writeaccess": "1",
		"idpath": "/49/",
		"item_tree_valueid": "49"
	},
	{
		"itemId": "8566",
		"totalCases": "6",
		"id": "45",
		"text": "Others",
		"optionvalue": "e5da1d49-769d-4cdd-8946-3b6f305a8e2c",
		"showCheck": "1",
		"prevref": "0",
		"Children": "0",
		"writeaccess": "1",
		"idpath": "/45/",
		"item_tree_valueid": "45"
	}]
}

Error Response

Code : 200 OK

Content  example

{
	"success": false,
	"total": 0,
	"error": "A critical exception occurred while we executed the search.\r\n",
	"items": null,
	"warnings": [{
		"Severity": 150,
		"Code": 420,
		"Description": "A critical exception occurred while we executed the search."
	}]
}