Get all credential categories in a site
Name | Type | Required | Optional | Searchable | Note |
---|---|---|---|---|---|
siteid | numeric | REQUIRED, Passed via URI | |||
categoryname | string | via search string |
http://devsandbox.targetsolutions.com/v1/sites/{siteid}/categories/credential
http://devsandbox.targetsolutions.com/v1/sites/{siteid}/categories/credential?q={"categoryname":"random categoryname"}
GET /sites/{siteid}/categories/credential HTTP/1.1
Host: http://devsandbox.targetsolutions.com/v1
AccessToken: H9cZCBtiEKb/sc0fCAjPMg==
Cache-Control: no-cache
{ "categories":[ { "links":[ { "credentials":"http://devsandbox.targetsolutions.com/v1/sites/12/categories/credential/111/credentials", "resourcelink":"http://devsandbox.targetsolutions.com/v1/sites/12/categories/credential/111" } ], "credentialcount":4, "siteid":12, "categoryid":111, "categoryname":"CA-DPH Water Distributions" } ], "pagination":{ "next":"http://devsandbox.targetsolutions.com/v1/sites/12/categories/credential?startrow=2&limit=1" } }
{ "httpcode":200, "moreinfo":"http://developers.targetsolutions.com/v1/responsecodes/901", "developermessage":"The request returned zero results.", "statuscode":901, "status":"ok" }
{ "httpcode":401, "moreinfo":"http://developers.targetsolutions.com/v1/responsecodes/800", "developermessage":"A request was made to a resource that you do not have ownership of.", "statuscode":800, "status":"access denied" }