Skip to content

Project Snapshots

Project snapshots capture the state of a project at a specific point in time. Snapshots are useful for gaining a historical perspective on a project, and for comparing the current state of a project to a previous state.

Project financials, tasks, and resources are all captured in a snapshot, as well as project and task custom field values.

To use these endpoints, you must have the Edit Financials permission or higher in a project.

Fetching a list of Project Snapshots

Request

Gets a list of Project Snapshots. You can only see snapshots for projects where you have the Edit Financials project permission or higher.

This endpoint returns structured Project Snapshots objects. As with all Kantata OX API endpoints, the returned data will be referenced in sorted order in the results array and will be indexed by ID in the project_snapshots top-level JSON key. Please see our Response Format section for more information.

Query
by_titlestring

Filter for snapshots with a title that match the specified search term. This filter is not case sensitive.

includestring

Any of the below associations can be included in your request by providing the include param, e.g. include=association1,association2.

  • project_snapshot_assignments (Project::Snapshots::Models::ProjectSnapshotAssignment) - Retrieves task assignments saved in snapshots. The response will include project_snapshot_assignment_ids, which references the data in the project_snapshot_assignments top-level key.
  • project_snapshot_custom_field_values (Project::Snapshots::Models::ProjectSnapshotCustomFieldValue) - Retrieves project custom fields saved in snapshots. The response will include project_snapshot_custom_field_value_ids, which references the data in the project_snapshot_custom_field_values top-level key.
  • project_snapshot_resources (Project::Snapshots::Models::ProjectSnapshotResource) - Retrieves the resources saved in snapshots. The response will include project_snapshot_resource_ids, which references the data in the project_snapshot_resources top-level key.
  • project_snapshot_task_custom_field_values (Project::Snapshots::Models::ProjectSnapshotCustomFieldValue) - Retrieves task custom fields saved in snapshots. The response will include project_snapshot_task_custom_field_value_ids, which references the data in the project_snapshot_custom_field_values top-level key.
  • project_snapshot_tasks (Project::Snapshots::Models::ProjectSnapshotTask) - Retrieves the tasks saved in snapshots. The response will include project_snapshot_task_ids, which references the data in the project_snapshot_tasks top-level key.
is_baselineboolean

Return only snapshots that are marked as the baseline.

onlystring

Allows you to request one or more resources directly by ID. Multiple IDs can be supplied in a comma separated list, like GET /api/v1/workspaces.json?only=5,6,7.

orderstring

Supply order with the name of a valid sort field for the endpoint and a direction.

Valid values: created_at:asc and created_at:desc.

Default:"created_at:desc"
pageinteger, (int32)
Default:1
per_pageinteger, (int32), <= 200
Default:20
workspace_idinteger, (int32)

Filter for snapshots by workspace ID.

GET
/project_snapshots
curl -i -X GET \
  'https://api.mavenlink.com/api/v1/project_snapshots?by_title=string&include=string&is_baseline=true&only=string&order=created_at%3Adesc&page=1&per_page=20&workspace_id=0'

Responses

A list of Project Snapshots have been retrieved.

Bodyapplication/json
countinteger, (int32)
metaobject
resultsArray of objects
project_snapshotsobject
project_snapshot_resourcesobject
project_snapshot_tasksobject
project_snapshot_custom_field_valuesobject
project_snapshot_assignmentsobject
Response
{ "count": 0, "meta": { "count": 0, "page_count": 0, "page_number": 0, "page_size": 0 }, "results": [ { "key": "string", "id": "string" } ], "project_snapshots": { "property1": { "budget_in_cents": 0, "created_at": "2019-08-24T14:15:22Z", "currency": "string", "description": "string", "due_date": "2019-08-24", "duration": "string", "is_baseline": true, "project_snapshot_assignment_ids": [ "string" ], "project_snapshot_custom_field_value_ids": [ "string" ], "project_snapshot_resource_ids": [ "string" ], "project_snapshot_task_custom_field_value_ids": [ "string" ], "project_snapshot_task_ids": [ "string" ], "start_date": "2019-08-24", "status_as_text": "string", "status_color": "string", "title": "string", "workspace_id": "string" }, "property2": { "budget_in_cents": 0, "created_at": "2019-08-24T14:15:22Z", "currency": "string", "description": "string", "due_date": "2019-08-24", "duration": "string", "is_baseline": true, "project_snapshot_assignment_ids": [ "string" ], "project_snapshot_custom_field_value_ids": [ "string" ], "project_snapshot_resource_ids": [ "string" ], "project_snapshot_task_custom_field_value_ids": [ "string" ], "project_snapshot_task_ids": [ "string" ], "start_date": "2019-08-24", "status_as_text": "string", "status_color": "string", "title": "string", "workspace_id": "string" } }, "project_snapshot_resources": { "property1": { "allocated_minutes": 0, "name": "string", "project_snapshot_id": 0, "resource_id": 0, "role_id": 0, "user_id": 0 }, "property2": { "allocated_minutes": 0, "name": "string", "project_snapshot_id": 0, "resource_id": 0, "role_id": 0, "user_id": 0 } }, "project_snapshot_tasks": { "property1": { "archived": true, "billable": true, "budget_estimate_in_cents": 0, "description": "string", "due_date": "string", "percentage_complete": 0, "priority_level": 0, "project_plan": true, "project_snapshot_id": 0, "start_date": "string", "state": "string", "story_id": 0, "story_type": "string", "time_estimate_in_minutes": 0, "title": "string", "wbs": 0 }, "property2": { "archived": true, "billable": true, "budget_estimate_in_cents": 0, "description": "string", "due_date": "string", "percentage_complete": 0, "priority_level": 0, "project_plan": true, "project_snapshot_id": 0, "start_date": "string", "state": "string", "story_id": 0, "story_type": "string", "time_estimate_in_minutes": 0, "title": "string", "wbs": 0 } }, "project_snapshot_custom_field_values": { "property1": { "custom_field_name": "string", "subject_id": 0, "subject_type": "string", "value": "string", "value_type": "string" }, "property2": { "custom_field_name": "string", "subject_id": 0, "subject_type": "string", "value": "string", "value_type": "string" } }, "project_snapshot_assignments": { "property1": { "bill_rate_in_cents": 0, "cost_rate_in_cents": 0, "estimated_minutes": 0, "project_snapshot_resource_id": 0, "project_snapshot_task_id": 0, "scheduled_minutes": 0 }, "property2": { "bill_rate_in_cents": 0, "cost_rate_in_cents": 0, "estimated_minutes": 0, "project_snapshot_resource_id": 0, "project_snapshot_task_id": 0, "scheduled_minutes": 0 } } }