Description

Get all credential categories

Parameters

Name Type Required Optional Searchable Note
categoryname string via search string

Examples

Example Request

http://devsandbox.targetsolutions.com/v1/sites/categories/credential

Example Request with Search String

http://devsandbox.targetsolutions.com/v1/sites/categories/credential?q={"categoryname":"random categoryname"}

Example Header

GET /sites/categories/credential HTTP/1.1
Host: http://devsandbox.targetsolutions.com/v1
AccessToken: Qy+PBQH7+wZ/a7nqqYd4Cg==
Cache-Control: no-cache

Possible Results Sets

Results Set

{
  "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"
  }
}

No Results Set

{
  "httpcode":200,
  "moreinfo":"http://developers.targetsolutions.com/v1/responsecodes/901",
  "developermessage":"The request returned zero results.",
  "statuscode":901,
  "status":"ok"
}

Access Denied Set

{
  "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"
}