---
title: "Bulk modify resource data-sync settings"
method: PATCH
path: "/workspaces/{workspace_id}/projects/{project_id}/resource-dependencies"
tags: ["Projects"]
---

# Bulk modify resource data-sync settings

`PATCH /workspaces/{workspace_id}/projects/{project_id}/resource-dependencies`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/workspaces/{workspace_id}/projects/{project_id}/resource-dependencies`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-KEY` and API key in header `X-API-SECRET` and API key in header `X-WORKSPACE-ID`

Toggles data_pass_through on the given dataviews/tasks/actions and triggers pending recompute where needed.

## Path parameters

- `workspace_id` integer, required: Workspace refers to a collection of projects. Workspace ID is unique identifier for workspace.
- `project_id` integer, required: Project ID of the workspace

## Request body

- DataSyncPatchRequest: Data-sync patches to apply, in JSON-PATCH form.
  - `patches` DataSyncPatchItem[], required
    - `op` 'replace', required: Patch operation
    - `path` 'data_sync', required: Field being patched
    - `value` DataSyncPatchValue, required
      - `context_type` 'dataview' | 'task' | 'action', required: Type of the object being patched
      - `context_id` integer, required: ID of the object being patched
      - `data_pass_through` boolean, nullable: New data_pass_through value
      - `run_pending_update` boolean, nullable: Force a pending data update to run for this object

## Response `202`

Data-sync update accepted; returns the tracking job.

- JobResponse
  - `job` JobSchema, required
    - `id` integer, required
    - `status` 'success' | 'failure' | 'processing' | 'error', required: Job status can be success, failure or processing
    - `response` object, required: Result of async task is stored in response
    - `last_updated_at` string, date-time, required: Job last updated at is the time when Job status was last updated
    - `created_at` string, date-time, required: Create at is time when async task was created
    - `path` string, required: API request path of the Job operation
    - `operation` string, required: Operation is async task name which Job is tracking

## Other responses

- `400`: Bad Request
- `401`: Authorization error
- `403`: Request forbidden -- authorization will not help

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/fe078afe239b?raw)
