Skip to content

Docs / API objects

User assignments

Put people on projects, choose who manages each project, and set each person's rate there.

View as Markdown

List user assignments

GET/api/v2/user_assignments
Scope
reports:read

Differs from Harvest

budget is null. A member is refused (403).

Query parameters

Query parameters of List user assignments
NameTypeDescription
user_idintegerOptionalintegerOnly this person's assignments.
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 user assignment objects under user_assignments, and the pagination fields.

curl "https://t.momentic.studio/api/v2/user_assignments" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "user_assignments": [
    {
      "id": 6001,
      "project": {
        "id": 3001,
        "name": "Website Refresh",
        "code": null
      },
      "user": {
        "id": 1001,
        "name": "Alex Example"
      },
      "is_active": true,
      "is_project_manager": false,
      "use_default_rates": true,
      "hourly_rate": 150,
      "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/user_assignments?page=1&per_page=2000&ref=first",
    "next": null,
    "previous": null,
    "last": "https://t.momentic.studio/api/v2/user_assignments?page=1&per_page=2000&ref=last"
  }
}

List a project's user assignments

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

Differs from Harvest

Query parameters

Query parameters of List a project's user assignments
NameTypeDescription
user_idintegerOptionalintegerOnly this person's assignment.
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 user assignment objects under user_assignments, and the pagination fields.

curl "https://t.momentic.studio/api/v2/projects/3001/user_assignments" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "user_assignments": [
    {
      "id": 6001,
      "project": {
        "id": 3001,
        "name": "Website Refresh",
        "code": null
      },
      "user": {
        "id": 1001,
        "name": "Alex Example"
      },
      "is_active": true,
      "is_project_manager": false,
      "use_default_rates": true,
      "hourly_rate": 150,
      "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/user_assignments?page=1&per_page=2000&ref=first",
    "next": null,
    "previous": null,
    "last": "https://t.momentic.studio/api/v2/projects/3001/user_assignments?page=1&per_page=2000&ref=last"
  }
}

Retrieve a user assignment

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

Differs from Harvest

Returns

Status 200 with a user assignment object.

curl "https://t.momentic.studio/api/v2/projects/3001/user_assignments/6001" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "id": 6001,
  "project": {
    "id": 3001,
    "name": "Website Refresh",
    "code": null
  },
  "user": {
    "id": 1001,
    "name": "Alex Example"
  },
  "is_active": true,
  "is_project_manager": false,
  "use_default_rates": true,
  "hourly_rate": 150,
  "budget": null,
  "created_at": "2026-01-05T15:00:00Z",
  "updated_at": "2026-01-05T15:00:00Z"
}

Assign a person to a project

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

Differs from Harvest

is_project_manager needs an owner or admin token, as in the app. hourly_rate is the person's rate on the project when use_default_rates is false. budget is ignored.

Body, as JSON or form fields

Body fields of Assign a person to a project
NameTypeDescription
user_idintegerRequiredintegerThe person.
is_project_managerbooleanOptionalbooleantrue makes them a manager of the project.
use_default_ratesbooleanOptionalbooleanfalse to use hourly_rate on this project.
hourly_ratenumberOptionalnumberTheir billable rate on this project, in dollars.

Returns

Status 201 with a user assignment object.

curl -X POST "https://t.momentic.studio/api/v2/projects/3001/user_assignments" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)" \
  -H "Content-Type: application/json" \
  -d '{"user_id":1001}'
Response201
{
  "id": 6001,
  "project": {
    "id": 3001,
    "name": "Website Refresh",
    "code": null
  },
  "user": {
    "id": 1001,
    "name": "Alex Example"
  },
  "is_active": true,
  "is_project_manager": false,
  "use_default_rates": true,
  "hourly_rate": 150,
  "budget": null,
  "created_at": "2026-01-05T15:00:00Z",
  "updated_at": "2026-01-05T15:00:00Z"
}

Update a user assignment

PATCH/api/v2/projects/{project_id}/user_assignments/{user_assignment_id}
Scope
projects:write

Differs from Harvest

is_active and budget are ignored: remove the assignment to take the person off the project.

Body, as JSON or form fields

Body fields of Update a user assignment
NameTypeDescription
is_project_managerbooleanOptionalbooleantrue makes them a manager of the project.
use_default_ratesbooleanOptionalbooleantrue removes their own rate on the project.
hourly_ratenumberOptionalnumberTheir billable rate on this project.

Returns

Status 200 with a user assignment object.

curl -X PATCH "https://t.momentic.studio/api/v2/projects/3001/user_assignments/6001" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "id": 6001,
  "project": {
    "id": 3001,
    "name": "Website Refresh",
    "code": null
  },
  "user": {
    "id": 1001,
    "name": "Alex Example"
  },
  "is_active": true,
  "is_project_manager": false,
  "use_default_rates": true,
  "hourly_rate": 150,
  "budget": null,
  "created_at": "2026-01-05T15:00:00Z",
  "updated_at": "2026-01-05T15:00:00Z"
}

Remove a user assignment

DELETE/api/v2/projects/{project_id}/user_assignments/{user_assignment_id}
Scope
projects:write

Differs from Harvest

Allowed when the person has time on the project; their entries stay. A person on the project through a team stays on it.

Returns

Status 200. No body.

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

No body.

The user assignment object

Fields of the user assignment object
FieldTypeDescription
idintegerintegerThe assignment's id.
projectobject (project_ref)object (project_ref)The project.
userobject (user_ref)object (user_ref)The person.
is_activebooleanbooleanFalse when the project or the person is archived.
is_project_managerbooleanbooleanTrue when the person manages the project.
use_default_ratesbooleanbooleanFalse when the person has their own rate on the project.
hourly_ratenumber or nullnumber or nullThe person's billable rate on the project. Null unless the token has rates:read and its person is an owner, an admin or a manager of the project.
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 user ref object

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