/
DC 5.5 GetAssetTypes

DC 5.5 GetAssetTypes

This search is used for getting the available asset types in the system.

URL : /SearchService.js

Method : POST

Auth required : Yes

Required parameters

NameExampleDescription
SearchNameGetAssetTypesFixed parameter that identifies the endpoint method.
accessKey2d8319f4-7a57-4ca0-a027-c44c2f259aacaccessKey for api

Optional parameters

NameExampleDescription
queryimagefree text searching on asset type name

cUrl data example

--data "SearchName=GetAssetTypes&query=image&accesskey=eb774621-1c2f-467b-b006-a8efa67094a7"

Success Response

Code : 200 OK

Content example

{
	"success": true,
	"error": "",
	"total": "1",
	"items": [{
		"itemId": "3",
		"total": "1",
		"assetTypeId": "4",
		"name": "Image",
		"metafieldGroupId": "10025"
	}]
}

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."
	}]
}

Related content

DC 5.5 GetAssets
DC 5.5 GetAssets
Read with this
DC 5.4 GetAssetTypes
DC 5.4 GetAssetTypes
More like this
DC 5.5 Search
DC 5.5 Search
Read with this
DC 5.7 GetAssetTypes
DC 5.7 GetAssetTypes
More like this
DC 5.5 GetMetafields
DC 5.5 GetMetafields
Read with this
DC 5.6 GetAssetTypes
DC 5.6 GetAssetTypes
More like this