Skip to Content
trumpetdocs

Update Pod

Update Pods programmatically.

PATCH /v1/pods/{id}

Updates a Pod. Change the Pod's status via a custom status ID and link the Pod to a CRM record — ideal for keeping trumpet in sync with your CRM.

Authentication

Requires the UpdatePod scope. See Authentication.

Path parameters

ParameterTypeRequiredDescription
idstringRequiredThe ID of the Pod to update. You can find it in the Pod's edit URL, e.g. 69f0bafc4cc54b506b0355d8.

Body parameters

ParameterTypeRequiredDescription
statusstringOptionalA custom status ID to move the Pod to. Get valid IDs from the List Custom Statuses endpoint. trumpet resolves the correct internal status and transition timestamps automatically.
crm_typestringOptionalThe CRM provider to link the Pod to. Same values as Create Pod. Required if crm_id or crm_object is provided.
crm_objectstringOptionalThe CRM object type of the record. Valid values depend on the crm_type, the same as Create Pod. Required if crm_id or crm_type is provided.
crm_idstringOptionalThe unique identifier of the record in your CRM. Required if crm_type or crm_object is provided.

Send at least one change: status, the three CRM fields, or both in the same request. If any part of the request is invalid, nothing is updated.

Setting a status

Pass a custom status id from the List Custom Statuses endpoint. trumpet resolves the underlying internal status (draft / active / completed / lost) and updates the Pod, its statistics, and transition timestamps correctly.

Built to grow

The endpoint rejects any field it doesn't recognise, so future additions won't silently change behaviour for existing integrations.

Linking a CRM record

Use crm_type, crm_object, and crm_id to link a Pod to a record in your CRM — for example when Pods are created automatically and the CRM details are only known later. The three fields go together and follow the same rules as Create Pod: if any one is provided, all three are required, and crm_object must be valid for the crm_type.

CRM TypeValid Objects
hubspotcontacts, deals, companies
salesforceLead, Opportunity, Account, Contact
activecampaigncontacts, deals, companies
msdynamicscontacts, deals, companies
sugarcrmcontacts, deals, companies
brevodeals, companies
pipedrivedeals, contacts

When the link changes

When a Pod is linked to a new CRM record, trumpet sets the Pod's company and domain from the record's company, moves the Pod to the matching customer account (creating it if needed), and logs a "Pod created" activity on the CRM record — the same as when a Pod is created with CRM details.

Safe to send repeatedly

Sending the link a Pod already has changes nothing: the company, domain, and account aren't overwritten and no new activity is logged.

Webhooks and loop avoidance

This endpoint does not emit a status webhook

Status changes made through this API do not trigger the event.pod_status_changed webhook. That lets you push CRM stage changes into trumpet without a webhook firing straight back to your CRM and creating a loop. Manual changes in the trumpet UI still emit the event. See the Event Reference.

Example requests

Change status

curl -X PATCH https://trumpet.app/api/v1/pods/69f0bafc4cc54b506b0355d8 \
  -H "Authorization: Bearer trpt_a1b2c3_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "status": "69f0bafc4cc54b506b0355e2"
  }'
curl -X PATCH https://trumpet.app/api/v1/pods/69f0bafc4cc54b506b0355d8 \
  -H "Authorization: Bearer trpt_a1b2c3_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "crm_type": "hubspot",
    "crm_object": "deals",
    "crm_id": "12345"
  }'

You can send status and CRM fields in the same request when you need both changes in one call.

Success response

Returns 200 OK with the Pod's status, CRM link, and company after the update:

{
  "success": true,
  "data": {
    "id": "69f0bafc4cc54b506b0355d8",
    "status": "active",
    "custom_status": "69f0bafc4cc54b506b0355e2",
    "crm_type": "hubspot",
    "crm_object": "deals",
    "crm_id": "12345",
    "crm_link": "https://app.hubspot.com/contacts/...",
    "recipient_company": "Acme Corp",
    "recipient_company_domain": "acme.com",
    "customer_account": "69f0bafc4cc54b506b0355f1"
  }
}

Response fields

FieldTypeDescription
idstringThe ID of the updated Pod.
statusstringThe Pod's internal status after the update — one of draft, active, completed, lost.
custom_statusstring | nullThe custom status ID the Pod now displays, or null if the brand has no custom status for that internal status.
crm_typestring | nullThe CRM the Pod is linked to, or null if it isn't linked.
crm_objectstring | nullThe CRM object type of the linked record, or null.
crm_idstring | nullThe ID of the linked CRM record, or null. Salesforce IDs are returned in their 18-character form.
crm_linkstring | nullA link to the record in your CRM, or null.
recipient_companystring | nullThe company the Pod is for, or null if it has none.
recipient_company_domainstring | nullThe company's website domain, or null if it has none.
customer_accountstring | nullThe ID of the customer account the Pod belongs to, or null.

Error responses

StatusErrorCause
400Invalid pod IDThe id in the path is not a valid Pod ID.
400Unsupported field(s)The body contains a field this endpoint does not (yet) support. Supported fields are status, crm_type, crm_object, and crm_id.
400At least one updatable field is requiredThe body is empty. Send status, the three CRM fields, or both.
400status must be a valid custom status IDThe status value is not a valid custom status ID.
400CRM validation errorOne of the CRM fields is missing, or crm_type or crm_object isn't valid.
400No crm_type integration foundThe specified CRM isn't connected to the brand. Connect it in Settings → Integrations.
400Invalid status for this podThe custom status doesn't exist for your brand, or isn't assignable to this Pod's type.
400Not supported for enablement podsEnablement Pods can't use custom statuses or CRM links.
401Invalid or revoked API keyThe API key is missing, malformed, revoked, or deleted.
403Insufficient permissionsThe API key lacks the UpdatePod scope.
404Pod not foundNo Pod with that id exists in the brand associated with the API key.
404CRM record not foundThe crm_id doesn't match any record of the specified crm_object type in the CRM.
429Rate limit exceededMore than 30 requests per minute for this key. Retry after a short delay.

Need a status ID?

Call the List Custom Statuses endpoint to fetch the custom status IDs configured for your brand.

On this page