API version v3.0
Update report fields
PATCH | POST | PUT https://plagiarismsearch.com/api/v3/reports/update/{id}
Parameter | Type | Description | Optional | Default |
---|---|---|---|---|
id | integer | Report ID. Used in the request URL. | ||
report | array | Associative array of update report fields |
PATCH https://plagiarismsearch.com/api/v3/reports/update/100500
/* @var $api Reports */
require_once 'init-api.php';
$id = 100500;
$updateReportFields = [
'auth_key' => md5('secret' . $id),
'remote_id' => 'my-remote-id-100',
'callback_url' => 'https://public-url.com/callback.php?id=' . $id,
'title' => 'Title ' . $id,
];
$data = ['report' => $updateReportFields];
echo $api->updateAction($id, $data);
// or
$data = $updateReportFields;
echo $api->updateAction($id, $data);
{
"status": true,
"code": 200,
"data": 100500,
"version": "3.0.0"
}
{
"status": false,
"code": 404,
"version": "3.0.0",
"message": "Report not found",
"errors": [
"Report not found"
]
}
{
"status": false,
"code": 401,
"version": "3.0.0",
"message": "Authentication failed",
"errors": null
}
Rate Limited | True |
Authentication | HTTP basic |
Response Format | JSON |