diff --git a/sda/cmd/api/api.md b/sda/cmd/api/api.md index 861d0c1d0..8aea1348e 100644 --- a/sda/cmd/api/api.md +++ b/sda/cmd/api/api.md @@ -105,6 +105,22 @@ Admin endpoints are only available to a set of whitelisted users specified in th curl -H "Authorization: Bearer $token" -X POST https://HOSTNAME/dataset/release/my-dataset-01 ``` +- `/dataset/verify/*dataset` + - accepts `PUT` requests with the dataset name as last part of the path` + - triggers reverification of all files in the dataset. + + - Error codes + - `200` Query execute ok. + - `404` Error wrong dataset name. + - `401` Token user is not in the list of admins. + - `500` Internal error due to DB or MQ failures. + + Example: + + ```bash + curl -H "Authorization: Bearer $token" -X POST https://HOSTNAME/dataset/release/my-dataset-01 + ``` + - `/users` - accepts `GET` requests` - Returns all users with active uploads as a JSON array