dealUpdate

Graphql fields and variables for the dealUpdate mutation

Update a deal

Scope required: standard:write

For a complete list of input attributes see the DealAttributes type

mutation dealUpdate ($id: ID!, $attributes: DealAttributes!) {
  dealUpdate (id: $id, attributes: $attributes) {
      deal {
        accountId
        amount
        closeDate
        code
        contactId
        createdAt
        currencyId
        dealStageId
        description
        entityId
        id
        leadSourceId
        name
        notForRevenue
        ownerUserId
        probability
        stageDescription
        updatedAt
        viaPortal
      }
      errors
  }
}

Arguments

{
  "id": "456123",
  "attributes": {
    "accountId": "456123",
    "name": "",
    "code": "",
    "ownerUserId": "456123",
    "amount": "1.00",
    "probability": 123,
    "description": "",
    "closeDate": "2022-06-01",
    "dealStageId": "456123",
    "leadSourceId": "456123",
    "contactId": "456123",
    "kind": "DealKind",
    "notForRevenue": true,
    "viaPortal": true,
    "currencyId": "456123",
    "origin": "DealOrigin"
  }
}
Name
Type
Description

id

ID

attributes

Response

Name
Type
Description

deal

errors

List (String)

Last updated

Was this helpful?