blob: 1c6718e57c82e0a9b75133ff07255c21beb9dc53 (
plain) (
tree)
|
|
#!/bin/sh
set -xeuo pipefail
curl "$1/api/v1/indexer/schema" -H "X-Api-Key: $2" | jq -c '.[]|select(.privacy=="public")' | while read -r l
do
sed 's/"appProfileId":0,/"appProfileId":1,/' <<<$l | curl -i "$1/api/v1/indexer?" -X POST -H "Content-Type: application/json" -H "X-Api-Key: $2" --data-binary @-
done
|