Asset Search by Name
- 1 Minute to read
- DarkLight
Asset Search by Name
- 1 Minute to read
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
In a scenario in which you'd like to view the asset's guid, you can use an API request mentioned below. You can view the product's guid by knowing its filename.
To search for a specific asset's GUID, mention the following endpoint and hit Send.
POST
Query Parameters
Expand to see the parameters and description
Parameter | Parameter Type | Data Type | Accepted Values | Description |
skip | Optional | Integer | >=0; (skipCount+takeCount)<10,000 | Used in combination with taketo paginate large numbers of product records. Quantity of records to skip before you start taking products. Whatever value is used for the take, add to skip for the subsequent call. |
take | Optional | Integer | >= 0; Max: 500 | Sets quantity of results to return at one time. Used for parsing large numbers of product records. |
Specify the required values for params dataOwner and fileName.
Headers
Authorization: Specify required Auth Token in the header.
Request Parameters
Expand to see the parameters and description
Parameter | Parameter Type | Data Type | Accepted Values | Description |
DataOwner | Required | String | GUID | Company ID GUID |
OrderBy | Optional | String | Attribute GUID (Ex. Product Name, Date Created, etc.) | Sets return results order. |
Desc | Optional | Boolean | true/false | Determines sort order (ascending or descending). |
NameSearchVal | Required | String | Filename | Searches for the specific file. |
Request
{
"DataOwner": "0642243f-73e6-4f04-9037-a118112c2e99",
"OrderBy": "UploadDate",
"Desc": true,
// Extra quotes for exact match (case insensitive in this case)
"NameSearchVal": "\"test_image.png\""
}
Response 200 OK
{
"Results": [
"ef1fcd7a-a807-4f98-b936-6f2ec0387423"
],
"ResultCount": 1,
"TotalHitCount": 1,
"Aggregations": {}
}
Was this article helpful?