1. Connect
JOIN EDITZ

Function correction_set_status

Function Name: correction_set_status
Description: Set the status of a correction
Parameters:

  • id: The correction ID that we want to change.
  • type: The type of correction we want to change. (This is important, otherwise will not work). Possible values:
    • grammar: Return only grammar error type.
    • factual: Return only factual error type.
    • spelling: Return only spelling error type.
    • other: Return only other error type.
  • status: The new status for the correction. Possible values:
    • pending: This will filter only pending errors.
    • accepted: This will filter only accepted errors.
    • declined: This will filter only declined errors.

Return:

  • status: The status of the result, 0 for OK, 1 for error (look at the error code and messages)
  • message: A message describing the result.