Update a Component
Warning
Updating components via PATCH requests to /api/v2/components/{id}
is deprecated. Please use the Batch API that allows for updating multiple components in a single request.
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}"