Switch to RTD Generic Webhook API
[ci-management.git] / jjb / doc / doc-post-rtd.sh
index 5c8d8c5..78b8d0b 100644 (file)
@@ -6,4 +6,7 @@ else
 fi
 
 # shellcheck disable=SC1083
-curl -X POST --data "version_slug=$RTD_BUILD_VERSION" https://readthedocs.org/build/{rtdproject}
+curl -X POST \
+    -d "branches=$RTD_BUILD_VERSION" \
+    -d "token=$DOCS_RTD_TOKEN"  \
+    https://readthedocs.org/api/v2/webhook/{rtdproject}