Get a user's credential assignments
Name | Type | Required | Optional | Searchable | Note |
---|---|---|---|---|---|
credentialid | numeric | REQUIRED, Passed via URI | |||
startdate | datetime | via search string | |||
expirationdate | datetime | via search string | |||
credentialnumber | string | via search string | |||
attachmentcount | numeric | via search string | |||
notes | string | via search string | |||
status | string | via search string | |||
firstname | string | via search string | |||
lastname | string | via search string |
http://devsandbox.targetsolutions.com/v1/credentials/{credentialid}/assignments
http://devsandbox.targetsolutions.com/v1/credentials/{credentialid}/assignments?q={"startdate":"random startdate","expirationdate":"random expirationdate","credentialnumber":"random credentialnumber","attachmentcount":"random attachmentcount","notes":"random notes","status":"random status","firstname":"random firstname","lastname":"random lastname"}
GET /credentials/{credentialid}/assignments HTTP/1.1
Host: http://devsandbox.targetsolutions.com/v1
AccessToken: pDmxjWxmbfaKIEooycTl3Q==
Cache-Control: no-cache
{ "Assignments":[ { "expirationdate":"01/01/2015", "firstname":"Kyle", "credentialid":10242, "startdate":"05/28/2009", "link":"http://devsandbox.targetsolutions.com/v1/credentials/10242/assignments/10242-326797", "credentialnumber":123, "status":"inactive", "attachmentcount":1, "notes":"Test Notes", "lastname":"Ashley" } ], "pagination":{ "next":"http://devsandbox.targetsolutions.com/v1/credentials/10242/assignments?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" }