Skip to content

Docs / API objects

Task assignments

Choose which tasks a project offers and whether each one is billable on that project.

View as Markdown

List task assignments

GET/api/v2/task_assignments
Scope
reports:read

Differs from Harvest

budget and hourly_rate are null: a task rate applies to projects billed by task, which the time tracker does not have. A member is refused (403).

Query parameters

Query parameters of List task assignments
NameTypeDescription
is_activebooleanOptionalbooleantrue for active records only, false for archived only. Another value is ignored, as in Harvest.
updated_sincedatetimeOptionaldatetimeOnly records changed at or after this ISO 8601 date-time. A value that is not a date-time is refused with 400.
pageintegerOptionalintegerThe page to return, from 1. Default 1. A page past the end returns no records.
per_pageintegerOptionalintegerRecords per page, 1 to 2000. Default 2000. Another value is refused with 400.

Returns

Status 200 with a page of task assignment objects under task_assignments, and the pagination fields.

curl "https://t.momentic.studio/api/v2/task_assignments" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "task_assignments": [
    {
      "id": 5001,
      "project": {
        "id": 3001,
        "name": "Website Refresh",
        "code": null
      },
      "task": {
        "id": 4001,
        "name": "Design"
      },
      "is_active": true,
      "billable": true,
      "hourly_rate": null,
      "budget": null,
      "created_at": "2026-01-05T15:00:00Z",
      "updated_at": "2026-01-05T15:00:00Z"
    }
  ],
  "per_page": 2000,
  "total_pages": 1,
  "total_entries": 1,
  "next_page": null,
  "previous_page": null,
  "page": 1,
  "links": {
    "first": "https://t.momentic.studio/api/v2/task_assignments?page=1&per_page=2000&ref=first",
    "next": null,
    "previous": null,
    "last": "https://t.momentic.studio/api/v2/task_assignments?page=1&per_page=2000&ref=last"
  }
}

List a project's task assignments

GET/api/v2/projects/{project_id}/task_assignments
Scope
reports:read

Differs from Harvest

Query parameters

Query parameters of List a project's task assignments
NameTypeDescription
is_activebooleanOptionalbooleantrue for active records only, false for archived only. Another value is ignored, as in Harvest.
updated_sincedatetimeOptionaldatetimeOnly records changed at or after this ISO 8601 date-time. A value that is not a date-time is refused with 400.
pageintegerOptionalintegerThe page to return, from 1. Default 1. A page past the end returns no records.
per_pageintegerOptionalintegerRecords per page, 1 to 2000. Default 2000. Another value is refused with 400.

Returns

Status 200 with a page of task assignment objects under task_assignments, and the pagination fields.

curl "https://t.momentic.studio/api/v2/projects/3001/task_assignments" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "task_assignments": [
    {
      "id": 5001,
      "project": {
        "id": 3001,
        "name": "Website Refresh",
        "code": null
      },
      "task": {
        "id": 4001,
        "name": "Design"
      },
      "is_active": true,
      "billable": true,
      "hourly_rate": null,
      "budget": null,
      "created_at": "2026-01-05T15:00:00Z",
      "updated_at": "2026-01-05T15:00:00Z"
    }
  ],
  "per_page": 2000,
  "total_pages": 1,
  "total_entries": 1,
  "next_page": null,
  "previous_page": null,
  "page": 1,
  "links": {
    "first": "https://t.momentic.studio/api/v2/projects/3001/task_assignments?page=1&per_page=2000&ref=first",
    "next": null,
    "previous": null,
    "last": "https://t.momentic.studio/api/v2/projects/3001/task_assignments?page=1&per_page=2000&ref=last"
  }
}

Retrieve a task assignment

GET/api/v2/projects/{project_id}/task_assignments/{task_assignment_id}
Scope
reports:read

Differs from Harvest

Returns

Status 200 with a task assignment object.

curl "https://t.momentic.studio/api/v2/projects/3001/task_assignments/5001" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "id": 5001,
  "project": {
    "id": 3001,
    "name": "Website Refresh",
    "code": null
  },
  "task": {
    "id": 4001,
    "name": "Design"
  },
  "is_active": true,
  "billable": true,
  "hourly_rate": null,
  "budget": null,
  "created_at": "2026-01-05T15:00:00Z",
  "updated_at": "2026-01-05T15:00:00Z"
}

Add a task to a project

POST/api/v2/projects/{project_id}/task_assignments
Scope
projects:write

Differs from Harvest

hourly_rate and budget are ignored: rates are set on people and projects.

Body, as JSON or form fields

Body fields of Add a task to a project
NameTypeDescription
task_idintegerRequiredintegerThe task.
billablebooleanOptionalbooleanWhether time on the task is billable on this project. Default: the task's default.

Returns

Status 201 with a task assignment object.

curl -X POST "https://t.momentic.studio/api/v2/projects/3001/task_assignments" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)" \
  -H "Content-Type: application/json" \
  -d '{"task_id":4001}'
Response201
{
  "id": 5001,
  "project": {
    "id": 3001,
    "name": "Website Refresh",
    "code": null
  },
  "task": {
    "id": 4001,
    "name": "Design"
  },
  "is_active": true,
  "billable": true,
  "hourly_rate": null,
  "budget": null,
  "created_at": "2026-01-05T15:00:00Z",
  "updated_at": "2026-01-05T15:00:00Z"
}

Update a task assignment

PATCH/api/v2/projects/{project_id}/task_assignments/{task_assignment_id}
Scope
projects:write

Differs from Harvest

Changes billable. is_active, hourly_rate and budget are ignored.

Body, as JSON or form fields

Body fields of Update a task assignment
NameTypeDescription
billablebooleanOptionalbooleanWhether time on the task is billable on this project.

Returns

Status 200 with a task assignment object.

curl -X PATCH "https://t.momentic.studio/api/v2/projects/3001/task_assignments/5001" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "id": 5001,
  "project": {
    "id": 3001,
    "name": "Website Refresh",
    "code": null
  },
  "task": {
    "id": 4001,
    "name": "Design"
  },
  "is_active": true,
  "billable": true,
  "hourly_rate": null,
  "budget": null,
  "created_at": "2026-01-05T15:00:00Z",
  "updated_at": "2026-01-05T15:00:00Z"
}

Remove a task from a project

DELETE/api/v2/projects/{project_id}/task_assignments/{task_assignment_id}
Scope
projects:write

Differs from Harvest

Refused (422) while the project has entries on the task, as in Harvest.

Returns

Status 200. No body.

curl -X DELETE "https://t.momentic.studio/api/v2/projects/3001/task_assignments/5001" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response 200

No body.

The task assignment object

Fields of the task assignment object
FieldTypeDescription
idintegerintegerThe task assignment's id.
projectobject (project_ref)object (project_ref)The project.
taskobject (task_ref)object (task_ref)The task.
is_activebooleanbooleanFalse when the task or the project is archived.
billablebooleanbooleanWhether time on the task is billable on this project.
hourly_ratenumber or nullnumber or nullNull: a task rate applies to projects billed by task, which the time tracker does not have. The rate is on the project and the person. The time tracker has no such data, so this is the empty value.
budgetnumber or nullnumber or nullNull. The time tracker has no such data, so this is the empty value.
created_atdatetimedatetimeWhen the record was created.
updated_atdatetimedatetimeWhen the record was last changed.

The project ref object

Fields of the project ref object
FieldTypeDescription
idintegerintegerThe project's id.
namestringstringThe project's name.
codestring or nullstring or nullNull.

The task ref object

Fields of the task ref object
FieldTypeDescription
idintegerintegerThe task's id.
namestringstringThe task's name.