Tasks > Task

This endpoint duplicates a task.

post/api/2026-10-01/resources/tasks/tasks/copy

Request

  • Base URL
    https://api.factorialhr.com
  • URL
    https://api.factorialhr.com/api/2026-10-01/resources/tasks/tasks/copy
  • Auth
    • OAuth 2
      Authorization code: https://id.factorialhr.com/oauth/authorize
      Token URL: https://id.factorialhr.com/api/oauth/token scopes: tasks
    • or API key in header x-api-key

Request body

idstring required

id of the task.

namestring

name of the task

Example request

{
  "id": "1",
  "name": "My task"
}

Response

OK

idstring required

Identifier of the task

namestring required

Name of the task

company_idstring required

Company identifier of the author of the task

contentstring

Content of the task

due_onstring

Due on date of the task

assignee_idsstring[] required

Employees assigned to the task, assignee_id references to access_id

author_employee_idstring

Employee id of the author of the task

completed_atstring

Completed at date of the task

completed_by_idstring

Completed by identifier

created_atstring required
updated_atstring required

Updated at date of the task

status'todo' | 'in_progress' | 'done' | 'discarded'

Status of the task

Example response

{
  "id": "1",
  "name": "My task",
  "company_id": "1",
  "content": "Complete your performance review before Friday",
  "due_on": "2024-06-06",
  "assignee_ids": [
    "1"
  ],
  "author_employee_id": "1",
  "completed_at": "2024-01-01T00:00:00Z",
  "completed_by_id": "1",
  "created_at": "2024-01-20T18:05:45.000Z",
  "updated_at": "2024-01-20T18:05:45.000Z",
  "status": "todo"
}

Changes