Update a Reference

View the full schema here.

reference_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":{"my_field":0}}' \
  --fail-with-body \
  "${ARDOQ_API_HOST-"https://app.ardoq.com"}/api/v2/references/${reference_id}?ifVersionMatch=${version}"