Update a Reference

Warning

Updating references via PATCH requests to /api/v2/references/{id} is deprecated. Please use the Batch API that allows for updating multiple references in a single request.

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}"