Edits or adds external education to the specified user's profile.
Request
- HTTP Verb: PUT / POST
- URI: /user/{user_id}/externalEducation/{id}
Query Parameters
- user_id: user identifier. It could be either user id, user email or custom member_id.
- id: externalEducation id.
PUT / POST Parameters
| name | Name of the piece of education * |
|---|---|
| date_completion | Date the education was completed (must be in yyyy-mm-dd) * |
| duration | Duration (must be in hh:mm) * |
| cpd_hours | CE credits ** |
| has_exam | Does it have an exam (1 or 0) |
| exam_score | User's score in the exam ^ |
| exam_score_out_of | Maximum the user could have scored ^ |
| exam_attempts | Number of times exam was attempted ^ |
| certificate_url | URL of the certificate file |
(*) Required always.
(**) Required only by some organizations.
(^) Required only if has_exam is true.
Request example
curl -X PUT \ -H "Request-Time: Wed, 11 Dec 2013 15:38:32 +0000" \ -H "Api-Key: 78b47a40f93378a6a487919edea6e92c" \ -H "Signature: 18cfbb5a9bd71f3d4475c8758b9c1281819f954468842737fbf16c72b4198cbe" \ -d "name=Really Awesome education on APIs" \ http://wceaapi.org/v1.1/user/1234/externalEducation/1
Output Example
{
"_meta": {
...
},
"records": {
"id" : 1,
"name" : "Really Awesome education on APIs",
"date_completion" : "2017-05-12",
"duration" : "02:15",
"cpd_hours" : "2.25",
"certificate_url" : "",
"has_exam" : 0,
"exam_score" : "",
"exam_score_out_of" : "",
"exam_attempts" : "0"
}
}
