Skip to content

Commit a9fec73

Browse files
authored
Merge pull request #54 from pipedrive/GRAL-2270
GRAL-2270 updateADeal readme update
2 parents 2d2ccf2 + 49a40c4 commit a9fec73

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

README.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1553,14 +1553,15 @@ function updateADeal($options)
15531553
| title | ``` Optional ``` | Deal title |
15541554
| value | ``` Optional ``` | Value of the deal. If omitted, value will be set to 0. |
15551555
| currency | ``` Optional ``` | Currency of the deal. Accepts a 3-character currency code. If omitted, currency will be set to the default currency of the authorized user. |
1556-
| userId | ``` Optional ``` | ID of the user who will be marked as the owner of this deal. If omitted, the authorized user ID will be used. |
1557-
| personId | ``` Optional ``` | ID of the person this deal will be associated with |
1558-
| orgId | ``` Optional ``` | ID of the organization this deal will be associated with |
1559-
| stageId | ``` Optional ``` | ID of the stage this deal will be placed in a pipeline (note that you can't supply the ID of the pipeline as this will be assigned automatically based on stage_id). If omitted, the deal will be placed in the first stage of the default pipeline. |
1556+
| user_id | ``` Optional ``` | ID of the user who will be marked as the owner of this deal. If omitted, the authorized user ID will be used. |
1557+
| person_id | ``` Optional ``` | ID of the person this deal will be associated with |
1558+
| org_id | ``` Optional ``` | ID of the organization this deal will be associated with |
1559+
| stage_id | ``` Optional ``` | ID of the stage this deal will be placed in a pipeline (note that you can't supply the ID of the pipeline as this will be assigned automatically based on stage_id). If omitted, the deal will be placed in the first stage of the default pipeline. |
15601560
| status | ``` Optional ``` | open = Open, won = Won, lost = Lost, deleted = Deleted. If omitted, status will be set to open. |
1561+
| expected_close_date | ``` Optional ``` | The expected close date of the Deal. In ISO 8601 format: YYYY-MM-DD. |
15611562
| probability | ``` Optional ``` | Deal success probability percentage. Used/shown only when deal_probability for the pipeline of the deal is enabled. |
1562-
| lostReason | ``` Optional ``` | Optional message about why the deal was lost (to be used when status=lost) |
1563-
| visibleTo | ``` Optional ``` | Visibility of the deal. If omitted, visibility will be set to the default visibility setting of this item type for the authorized user.<dl class="fields-list"><dt>1</dt><dd>Owner &amp; followers (private)</dd><dt>3</dt><dd>Entire company (shared)</dd></dl> |
1563+
| lost_reason | ``` Optional ``` | Optional message about why the deal was lost (to be used when status=lost) |
1564+
| visible_to | ``` Optional ``` | Visibility of the deal. If omitted, visibility will be set to the default visibility setting of this item type for the authorized user.<dl class="fields-list"><dt>1</dt><dd>Owner &amp; followers (private)</dd><dt>3</dt><dd>Entire company (shared)</dd></dl> |
15641565

15651566

15661567

@@ -1580,16 +1581,16 @@ $currency = 'currency';
15801581
$collect['currency'] = $currency;
15811582

15821583
$userId = 27;
1583-
$collect['userId'] = $userId;
1584+
$collect['user_id'] = $userId;
15841585

15851586
$personId = 27;
1586-
$collect['personId'] = $personId;
1587+
$collect['person_id'] = $personId;
15871588

15881589
$orgId = 27;
1589-
$collect['orgId'] = $orgId;
1590+
$collect['org_id'] = $orgId;
15901591

15911592
$stageId = 27;
1592-
$collect['stageId'] = $stageId;
1593+
$collect['stage_id'] = $stageId;
15931594

15941595
$status = string::OPEN;
15951596
$collect['status'] = $status;
@@ -1598,10 +1599,10 @@ $probability = 27.9633801840075;
15981599
$collect['probability'] = $probability;
15991600

16001601
$lostReason = 'lost_reason';
1601-
$collect['lostReason'] = $lostReason;
1602+
$collect['lost_reason'] = $lostReason;
16021603

16031604
$visibleTo = int::ENUM_1;
1604-
$collect['visibleTo'] = $visibleTo;
1605+
$collect['visible_to'] = $visibleTo;
16051606

16061607

16071608
$result = $deals->updateADeal($collect);

0 commit comments

Comments
 (0)