McMain icon

McMain

Interact with McMain API

Contract → Update

AI-generated

Summary

Update a contract with new fields.

Inputs

  • id (required) — ID of the contract to update
  • updateFields — Fields to update in the contract (e.g., description, vendorId, startDate, endDate, cost)
  • requestOptions — HTTP request configuration such as batching, timeout, proxy, and SSL handling

Output shape

a single updated contract object

Returns the updated contract details; with batching may return multiple responses or success/failure only

Examples

Example 1: Update contract 12345 with a new description and cost

id = '12345', updateFields = {description: 'Renewal', cost: 2500}, requestOptions = {timeout: 15000}

Discussion