Update a user's credential assignment
| Name | Type | Required | Optional | Searchable | Note |
|---|---|---|---|---|---|
| credentialid | numeric | REQUIRED, Passed via URI | |||
| assignmentid | numeric | REQUIRED, Passed via URI | |||
| startdate | datetime | OPTIONAL, Passed via BODY | |||
| expirationdate | datetime | OPTIONAL, Passed via BODY | |||
| credentialnumber | string | OPTIONAL, Passed via BODY | |||
| notes | string | OPTIONAL, Passed via BODY | |||
| status | string | OPTIONAL, Passed via BODY |
http://devsandbox.targetsolutions.com/v1/credentials/{credentialid}/assignments/{assignmentid}
PUT /credentials/{credentialid}/assignments/{assignmentid} HTTP/1.1
Host: http://devsandbox.targetsolutions.com/v1
AccessToken: PrdKTOC7V0+IxmdtIhgB3Q==
Cache-Control: no-cache
{
"startdate":"random startdate data",
"expirationdate":"random expirationdate data",
"credentialnumber":"random credentialnumber data",
"notes":"random notes data",
"status":"random status data"
}
{
"httpcode":202,
"moreinfo":"http://developers.targetsolutions.com/v1/responsecodes/702",
"developermessage":"The request has been fulfilled and resulted in a resource being updated.",
"statuscode":702,
"status":"accepted"
}
{
"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"
}