How to pass array when calling PUT API?
-
I am trying to call api/v3/categories/111/privileges/groups:posts:upvote to set privileges for a group. It's a PUT API, and it seems to accept array of privileges on server side. I tried multiple ways to pass array in the URL and all attempts failed.
for example /api/v3/categories/111/privileges/privilege[]=groups:posts:upvote&privilege[]=groups:posts:delete
Any idea how to pass array of privileges to PUT API?
The API doc is here https://docs.nodebb.org/api/write/#tag/categories/paths/~1categories~1{cid}~1privileges~1{privilege}/put
Thanks in advance!
Copyright © 2024 NodeBB | Contributors