Update a Component

View the full schema here.

component_id="a81664c2b639e8db6249d70d"
version="2"
curl \
  --request PATCH \
  --header "Authorization: Bearer ${ARDOQ_API_TOKEN}" \
  --header "X-org: ${ARDOQ_ORG_LABEL}" \
  --header "Content-Type: application/json" \
  --data '{"description":"Patched","customFields":{"air_temperature":42}}' \
  --fail-with-body \
  "${ARDOQ_API_HOST-"https://app.ardoq.com"}/api/v2/components/${component_id}?ifVersionMatch=${version}"