Sets a task to undone in the specified project.

Endpoint

GET http(s)://hostname/api/task/undone

Request Parameters

Header field
Type Value
X-Api-Key
string Required. A valid access token from a registered MT-EQuAl account. The access token must have been issued on behalf of the current user.

Request data Type Value
id string Required. The project id.

task {evalformat, import_corpus, guidelines, check_corpus, evaluation, review, finalize} Required. The task name.

Response

On success, the HTTP status code in the response header is 200 (OK) and the response is structured in JSON as follow:

{
  "header": {
    "date": "Date and time of the response generation process",
    "description": "Description of the invoked method or error message",
    "status": "status/error code"
  },
  "result": {
    
  }
}

On error, the header status and description fields contain the error code and message, respectively.

Example

curl -X GET "https://hostname/api/task/undone?id=1&task=evalformat" -H "X-Api-Key: {user access token}"
{
  "header": {
    "date": "Monday, 2016-05-16 11:54:17 Europe/Paris",
    "description": "Sets a task to undone in the specified project.",
    "status": "200"
  },
  "result": {
  }
}