also read ops for admin
This commit is contained in:
@@ -93,6 +93,9 @@ CREATED_ID=$(curl -s -X POST https://go-api.poc.fló.fo/api/v1/registrations \
|
|||||||
-d '{"gender":"unknown","location":"Tórshavn","abuse_type":"psychological","status":"new"}' \
|
-d '{"gender":"unknown","location":"Tórshavn","abuse_type":"psychological","status":"new"}' \
|
||||||
| sed -n 's/.*"id":"\([^"]*\)".*/\1/p')
|
| sed -n 's/.*"id":"\([^"]*\)".*/\1/p')
|
||||||
|
|
||||||
|
curl -s "https://go-api.poc.fló.fo/api/v1/registrations/$CREATED_ID" \
|
||||||
|
-H "Authorization: $ADMIN_TOKEN"
|
||||||
|
|
||||||
curl -s -X PUT "https://go-api.poc.fló.fo/api/v1/registrations/$CREATED_ID" \
|
curl -s -X PUT "https://go-api.poc.fló.fo/api/v1/registrations/$CREATED_ID" \
|
||||||
-H "Authorization: $ADMIN_TOKEN" \
|
-H "Authorization: $ADMIN_TOKEN" \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
|
|||||||
Reference in New Issue
Block a user