---
title: "Update a pipeline activity"
method: PATCH
path: "/pipeline-activities/{id}"
tags: ["Pipeline Activities"]
---

# Update a pipeline activity

`PATCH /pipeline-activities/{id}`

## Request

- Base URL: `https://www.ruddr.io/api/workspace`
- URL: `https://www.ruddr.io/api/workspace/pipeline-activities/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- object
  - `subject` string: The subject of the pipeline activity. Max 255 characters.
  - `content` string, nullable: The content or body of the pipeline activity. Max 5000 characters.
  - `direction` 'inbound' | 'outbound', nullable: Whether the activity was initiated by your team (`outbound`) or by the other party (`inbound`).
  - `date` string, date: The date of the pipeline activity. Will be in the form YYYY-MM-DD.
  - `duration` integer, nullable: The duration of the pipeline activity in minutes.
  - `typeId` string: The `uuid` of the pipeline activity type.
  - `memberIds` string[]: When provided, replaces the set of members associated with this activity. Omit to leave members unchanged. Send an empty array to clear.
  - `contactIds` string[]: When provided, replaces the set of contacts associated with this activity. Omit to leave contacts unchanged. Send an empty array to clear.
  - `companyIds` string[]: When provided, replaces the set of companies associated with this activity. Omit to leave companies unchanged. Send an empty array to clear.
  - `opportunityIds` string[]: When provided, replaces the set of opportunities associated with this activity. Omit to leave opportunities unchanged. Send an empty array to clear.

## Response `200`

200

- PipelineActivity
  - `id` string: The unique identifier for the object.
  - `subject` string: The subject of the pipeline activity.
  - `content` string, nullable: The content or body of the pipeline activity.
  - `direction` 'inbound' | 'outbound', nullable: Whether the activity was initiated by your team (`outbound`) or by the other party (`inbound`).
  - `date` string, date: The date of the pipeline activity. Will be in the form YYYY-MM-DD.
  - `duration` integer, nullable: The duration of the pipeline activity in minutes.
  - `createdAt` string, date-time: The timestamp when the object was created.
  - `pipelineActivityType` object: The pipeline activity type associated with this activity.
    - `id` string: The unique identifier for the object.
    - `name` string: The name of the pipeline activity type.
  - `members` object[]: The members associated with this activity.
    - `id` string: The unique identifier for the object.
    - `name` string: The name of the member.
  - `contacts` object[]: The contacts associated with this activity.
    - `id` string: The unique identifier for the object.
    - `name` string: The name of the contact.
  - `companies` object[]: The companies associated with this activity.
    - `id` string: The unique identifier for the object.
    - `name` string: The name of the company.
  - `opportunities` object[]: The opportunities associated with this activity.
    - `id` string: The unique identifier for the object.
    - `name` string: The name of the opportunity.

## Other responses

- `400`: 400
- `403`: 403
- `404`: 404

---

[API](https://skmtc.dev/ruddr/apis/ruddr-api.md) · [All operations](https://skmtc.dev/ruddr/apis/ruddr-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ruddr/apis/ruddr-api/revisions/01c3f2a969ba?raw)
