# New Project Upgraded — Diabatix ColdStream

> Emit new event when a specific project has been upgraded or edited in ColdStream.

- Key: `diabatix_coldstream-project-upgraded`
- Type: Trigger (Polling)
- Version: 0.0.1
- App: Diabatix ColdStream (`diabatix_coldstream`) — https://pipedream.com/apps/diabatix-coldstream.md
- This page (HTML): https://pipedream.com/apps/diabatix-coldstream/triggers/project-upgraded
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/diabatix_coldstream/sources/project-upgraded/project-upgraded.mjs

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `timer` | `$.interface.timer` | Yes | Timer |
| `organizationId` | `integer` | Yes | The ID of the organization in ColdStream. Options are loaded from the connected account. |
| `projectId` | `integer` | Yes | The ID of the project in ColdStream. Options are loaded from the connected account. |

## Returns

Events emitted by Diabatix ColdStream.

## Run it

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const deployed = await pd.triggers.deploy({
  id: "diabatix_coldstream-project-upgraded",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    diabatix_coldstream: { authProvisionId: "apn_xxxxxxx" },
    timer: { "intervalSeconds": 900 },
    organizationId: 10,
  },
  webhookUrl: "https://example.com/webhooks/diabatix-coldstream",
})

console.log(deployed.id)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/triggers/deploy \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "diabatix_coldstream-project-upgraded",
    "webhook_url": "https://example.com/webhooks/diabatix-coldstream",
    "configured_props": {
      "diabatix_coldstream": { "authProvisionId": "apn_xxxxxxx" },
      "timer": { "intervalSeconds": 900 },
      "organizationId": 10
    }
  }'
```

**MCP**

MCP servers expose Diabatix ColdStream actions as on-demand tools.

New Project Upgraded is an event source, so your application deploys it with the Connect SDK or API and then either receives each event at a webhook URL or retrieves events on demand with the trigger events API.

## Event delivery

Every event is sent to the HTTP endpoint you choose when you deploy the source. Or: no webhook required — your app or agent can fetch recent events from the [trigger events API](https://pipedream.com/docs/connect/api-reference/list-trigger-events.md) instead.

---

- App: https://pipedream.com/apps/diabatix-coldstream.md · All apps: https://pipedream.com/apps
