rfctl deals create#
Create a new deal for an organization.
Synopsis#
rfctl deals create [flags]Flags#
| Flag | Type | Required | Description |
|---|---|---|---|
--org | int | Yes | Organization ID |
--name | string | Yes | Deal name |
--stage | int | Yes | Pipeline stage ID |
--owner | int | Yes | Owner user ID |
--amount | float | No | Deal amount |
--currency | string | No | Currency (e.g., USD, EUR) |
--probability | float | No | Win probability (0-100) |
--close-date | string | No | Expected close date (YYYY-MM-DD) |
Examples#
Create minimal deal#
rfctl deals create --org 1 --name "New Deal" --stage 1 --owner 1Create with all fields#
rfctl deals create \
--org 1 \
--name "Enterprise License" \
--stage 2 \
--owner 1 \
--amount 50000 \
--currency "USD" \
--probability 75 \
--close-date "2024-03-15"Output#
Returns JSON with the created deal:
{
"id": 1,
"name": "Enterprise License",
"amount": 50000,
"currency": "USD",
"probability": 75,
"stage_id": 2,
"owner_id": 1,
"organization_id": 1,
"expected_close_date": "2024-03-15",
"created_at": "2024-01-15T10:30:00Z"
}Errors#
Error: --org is required
Error: --name is required
Error: --stage is required
Error: --owner is required
Organization not found: 1