Docs / API objects
Task assignments
Choose which tasks a project offers and whether each one is billable on that project.
A task assignment adds a task to a project's task list.
List task assignments
/ api/ v2/ task_assignmentsDiffers 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
| Name | Type | Description |
|---|---|---|
is_activebooleanOptional | boolean | true for active records only, false for archived only. Another value is ignored, as in Harvest. |
updated_sincedatetimeOptional | datetime | Only records changed at or after this ISO 8601 date-time. A value that is not a date-time is refused with 400. |
pageintegerOptional | integer | The page to return, from 1. Default 1. A page past the end returns no records. |
per_pageintegerOptional | integer | Records 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)"const response = await fetch("https://t.momentic.studio/api/v2/task_assignments", {
headers: {
"Authorization": `Bearer ${process.env.TOKEN}`,
"Harvest-Account-Id": process.env.ACCOUNT_ID,
"User-Agent": "MyApp (admin@example.com)",
},
});
const data = await response.json();import os
import requests
response = requests.get(
"https://t.momentic.studio/api/v2/task_assignments",
headers={
"Authorization": f"Bearer {os.environ['TOKEN']}",
"Harvest-Account-Id": os.environ["ACCOUNT_ID"],
"User-Agent": "MyApp (admin@example.com)",
},
)
data = response.json(){
"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
/ api/ v2/ projects/ {project_id}/ task_assignmentsDiffers from Harvest
Query parameters
| Name | Type | Description |
|---|---|---|
is_activebooleanOptional | boolean | true for active records only, false for archived only. Another value is ignored, as in Harvest. |
updated_sincedatetimeOptional | datetime | Only records changed at or after this ISO 8601 date-time. A value that is not a date-time is refused with 400. |
pageintegerOptional | integer | The page to return, from 1. Default 1. A page past the end returns no records. |
per_pageintegerOptional | integer | Records 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)"const response = await fetch("https://t.momentic.studio/api/v2/projects/3001/task_assignments", {
headers: {
"Authorization": `Bearer ${process.env.TOKEN}`,
"Harvest-Account-Id": process.env.ACCOUNT_ID,
"User-Agent": "MyApp (admin@example.com)",
},
});
const data = await response.json();import os
import requests
response = requests.get(
"https://t.momentic.studio/api/v2/projects/3001/task_assignments",
headers={
"Authorization": f"Bearer {os.environ['TOKEN']}",
"Harvest-Account-Id": os.environ["ACCOUNT_ID"],
"User-Agent": "MyApp (admin@example.com)",
},
)
data = response.json(){
"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
/ api/ v2/ projects/ {project_id}/ task_assignments/ {task_assignment_id}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)"const response = await fetch("https://t.momentic.studio/api/v2/projects/3001/task_assignments/5001", {
headers: {
"Authorization": `Bearer ${process.env.TOKEN}`,
"Harvest-Account-Id": process.env.ACCOUNT_ID,
"User-Agent": "MyApp (admin@example.com)",
},
});
const data = await response.json();import os
import requests
response = requests.get(
"https://t.momentic.studio/api/v2/projects/3001/task_assignments/5001",
headers={
"Authorization": f"Bearer {os.environ['TOKEN']}",
"Harvest-Account-Id": os.environ["ACCOUNT_ID"],
"User-Agent": "MyApp (admin@example.com)",
},
)
data = response.json(){
"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
/ api/ v2/ projects/ {project_id}/ task_assignmentsDiffers from Harvest
hourly_rate and budget are ignored: rates are set on people and projects.
Body, as JSON or form fields
| Name | Type | Description |
|---|---|---|
task_idintegerRequired | integer | The task. |
billablebooleanOptional | boolean | Whether 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}'const response = await fetch("https://t.momentic.studio/api/v2/projects/3001/task_assignments", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.TOKEN}`,
"Harvest-Account-Id": process.env.ACCOUNT_ID,
"User-Agent": "MyApp (admin@example.com)",
"Content-Type": "application/json",
},
body: JSON.stringify({
task_id: 4001,
}),
});
const data = await response.json();import os
import requests
response = requests.post(
"https://t.momentic.studio/api/v2/projects/3001/task_assignments",
headers={
"Authorization": f"Bearer {os.environ['TOKEN']}",
"Harvest-Account-Id": os.environ["ACCOUNT_ID"],
"User-Agent": "MyApp (admin@example.com)",
},
json={
"task_id": 4001,
},
)
data = response.json(){
"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
/ api/ v2/ projects/ {project_id}/ task_assignments/ {task_assignment_id}Differs from Harvest
Changes billable. is_active, hourly_rate and budget are ignored.
Body, as JSON or form fields
| Name | Type | Description |
|---|---|---|
billablebooleanOptional | boolean | Whether 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)"const response = await fetch("https://t.momentic.studio/api/v2/projects/3001/task_assignments/5001", {
method: "PATCH",
headers: {
"Authorization": `Bearer ${process.env.TOKEN}`,
"Harvest-Account-Id": process.env.ACCOUNT_ID,
"User-Agent": "MyApp (admin@example.com)",
},
});
const data = await response.json();import os
import requests
response = requests.patch(
"https://t.momentic.studio/api/v2/projects/3001/task_assignments/5001",
headers={
"Authorization": f"Bearer {os.environ['TOKEN']}",
"Harvest-Account-Id": os.environ["ACCOUNT_ID"],
"User-Agent": "MyApp (admin@example.com)",
},
)
data = response.json(){
"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
/ api/ v2/ projects/ {project_id}/ task_assignments/ {task_assignment_id}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)"const response = await fetch("https://t.momentic.studio/api/v2/projects/3001/task_assignments/5001", {
method: "DELETE",
headers: {
"Authorization": `Bearer ${process.env.TOKEN}`,
"Harvest-Account-Id": process.env.ACCOUNT_ID,
"User-Agent": "MyApp (admin@example.com)",
},
});
console.log(response.status);import os
import requests
response = requests.delete(
"https://t.momentic.studio/api/v2/projects/3001/task_assignments/5001",
headers={
"Authorization": f"Bearer {os.environ['TOKEN']}",
"Harvest-Account-Id": os.environ["ACCOUNT_ID"],
"User-Agent": "MyApp (admin@example.com)",
},
)
print(response.status_code)No body.
The task assignment object
| Field | Type | Description |
|---|---|---|
idinteger | integer | The task assignment's id. |
projectobject (project_ref) | object (project_ref) | The project. |
taskobject (task_ref) | object (task_ref) | The task. |
is_activeboolean | boolean | False when the task or the project is archived. |
billableboolean | boolean | Whether time on the task is billable on this project. |
hourly_ratenumber or null | number or null | Null: 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 null | number or null | Null. The time tracker has no such data, so this is the empty value. |
created_atdatetime | datetime | When the record was created. |
updated_atdatetime | datetime | When the record was last changed. |
The project ref object
| Field | Type | Description |
|---|---|---|
idinteger | integer | The project's id. |
namestring | string | The project's name. |
codestring or null | string or null | Null. |
The task ref object
| Field | Type | Description |
|---|---|---|
idinteger | integer | The task's id. |
namestring | string | The task's name. |