Update report fields

Resource URL

PATCH | POST | PUT https://plagiarismsearch.com/api/v3/reports/update/{id}

Parameters

Parameter Type Description Optional Default
id integer Report ID. Used in the request URL.
report array Associative array of update report fields

Example

PATCH https://plagiarismsearch.com/api/v3/reports/update/100500

Request

  
  /* @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);  

Response

  
  {
      "status": true,
      "code": 200,
      "data": 100500,
      "version": "3.0.0"
  }  

Error Response

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

Resource Information

Rate Limited True
Authentication HTTP basic
Response Format JSON