dealUpdate

Update a deal. The dealUpdate mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.

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
        closeUrgency
        code
        contactId
        createdAt
        currencyId
        customFieldsData
        dealStageId
        description
        entityId
        hasCustomFields
        id
        leadSourceId
        name
        notForRevenue
        ownerUserId
        pipeline
        probability
        renewalCurrentAmount
        renewalMrr
        renewalNeedsAttention
        stageDescription
        updatedAt
        viaPortal
      }
      errors
  }
}

ArgumentsLink to Arguments section

{
  "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 DealAttributes  

ResponseLink to Response section

Name Type Description
deal Deal  
errors List (String)