v1

latestOpenAPI 3.0.2Apache-2.02026-07-142963051.0 MB
Task assignments

Assign task

Assigns a task to a user.

A task can be assigned to more than one user by creating multiple assignments.

post/task_assignments

Request body

Example request

{
  "task": {
    "id": "11446498",
    "type": "task"
  },
  "assign_to": {
    "id": "3242343",
    "login": "john@example.com"
  }
}

Response

Returns a new task assignment object.

idstring

The unique identifier for this task assignment.

type'task_assignment'

The value will always be task_assignment.

messagestring

A message that will is included with the task assignment. This is visible to the assigned user in the web and mobile UI.

completed_atstring date-time

The date at which this task assignment was completed. This will be null if the task is not completed yet.

assigned_atstring date-time

The date at which this task was assigned to the user.

reminded_atstring date-time

The date at which the assigned user was reminded of this task assignment.

resolution_state'completed' | 'incomplete' | 'approved' | 'rejected'

The current state of the assignment. The available states depend on the action value of the task object.

Example response

{
  "id": "11446498",
  "type": "task_assignment",
  "item": {
    "id": "12345",
    "etag": "1",
    "type": "file",
    "sequence_id": "3",
    "name": "Contract.pdf",
    "sha1": "85136C79CBF9FE36BB9D05D0639C70C265C18D37",
    "file_version": {
      "id": "12345",
      "type": "file_version",
      "sha1": "134b65991ed521fcfe4724b7d814ab8ded5185dc"
    }
  },
  "assigned_to": {
    "id": "11446498",
    "type": "user",
    "name": "Aaron Levie",
    "login": "ceo@example.com"
  },
  "message": "Please review",
  "completed_at": "2012-12-12T10:53:43-08:00",
  "assigned_at": "2012-12-12T10:53:43-08:00",
  "reminded_at": "2012-12-12T10:53:43-08:00",
  "resolution_state": "incomplete",
  "assigned_by": {
    "id": "11446498",
    "type": "user",
    "name": "Aaron Levie",
    "login": "ceo@example.com"
  }
}