Deletes an accreditor from specified user's profile.
Request
- HTTP Verb: DELETE
- URI: /user/{user_id}/accreditor/{id}
Query Parameters
- user_id: user identifier. It could be either user id, user email or custom member_id.
- id: accreditor id.
You need the latest version of the PHP SDK for this, located here: https://github.com/wcealliance/php-sdk
Request example
$API->deleteUserAccreditor('adrian.perez@wcea.education', 1);
Output Example
array( "id" => 1, "name" => "Accreditation board of Pharmacists", "abbreviation" => "ABP", "user_fields" => array( "Date of birth" => array( "type" => "date", "default_value" => "", "required" => true, "user_value" => "01 January 1988", ) ) )