Get a site
Name | Type | Required | Optional | Searchable | Note |
---|---|---|---|---|---|
siteid | numeric | REQUIRED, Passed via URI |
http://devsandbox.targetsolutions.com/v1/sites/{siteid}
GET /sites/{siteid} HTTP/1.1
Host: http://devsandbox.targetsolutions.com/v1
AccessToken: ynXDDoHNS3cqUJ9xMj6wMg==
Cache-Control: no-cache
{ "links":[ { "resourcelink":"http://devsandbox.targetsolutions.com/v1/sites/12" }, { "profilecategories":"http://devsandbox.targetsolutions.com/v1/sites/12/categories/profile" }, { "credentialcategories":"http://devsandbox.targetsolutions.com/v1/sites/12/categories/credential" }, { "credentials":"http://devsandbox.targetsolutions.com/v1/sites/12/credentials" }, { "users":"http://devsandbox.targetsolutions.com/v1/sites/12/users" }, { "access":"http://devsandbox.targetsolutions.com/v1/sites/12/access/" } ], "sitename":"TargetSafety Demo Site", "loginpage":"https://app.targetsolutions.com/targetsafety", "siteid":12 }
{ "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" }