Get all profile groups in a profile category
Name | Type | Required | Optional | Searchable | Note |
---|---|---|---|---|---|
categoryid | numeric | REQUIRED, Passed via URI | |||
groupname | string | via search string |
http://devsandbox.targetsolutions.com/v1/sites/categories/profile/{categoryid}/groups
http://devsandbox.targetsolutions.com/v1/sites/categories/profile/{categoryid}/groups?q={"groupname":"random groupname"}
GET /sites/categories/profile/{categoryid}/groups HTTP/1.1
Host: http://devsandbox.targetsolutions.com/v1
AccessToken: 4KelpUJ4cFnHOR32xr1vCQ==
Cache-Control: no-cache
{ "profilegroups":[ { "links":{ "users":"http://devsandbox.targetsolutions.com/v1/sites/12/categories/profile/5468/groups/307414/users", "resourcelink":"http://devsandbox.targetsolutions.com/v1/sites/12/categories/profile/5468/groups/307414" }, "usercount":1, "groupid":307414, "siteid":12, "categoryid":5468, "groupname":"Dave's Group 2020" } ], "pagination":{ "next":"http://devsandbox.targetsolutions.com/v1/sites/categories/profile/5468/groups?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" }