Description

Get a credential assignment

Parameters

Name Type Required Optional Searchable Note
credentialid numeric REQUIRED, Passed via URI
assignmentid numeric REQUIRED, Passed via URI

Examples

Example Request

http://devsandbox.targetsolutions.com/v1/credentials/{credentialid}/assignments/{assignmentid}

Example Header

GET /credentials/{credentialid}/assignments/{assignmentid} HTTP/1.1
Host: http://devsandbox.targetsolutions.com/v1
AccessToken: 7dkoUCETjIwTMu7QJTOJvA==
Cache-Control: no-cache

Possible Results Sets

Results Set

[
  {
    "expirationdate":"01/01/2015",
    "credentialid":10242,
    "startdate":"5/28/2009",
    "link":"http://devsandbox.targetsolutions.com/v1/credentials/10242/assignments/10242-326797",
    "credentialnumber":123,
    "status":"inactive",
    "attachmentcount":1,
    "notes":"Test Notes"
  }
]

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