Come aggiungere tag tramite l'endpoint API dei post

Hai la sintassi corretta. Forse PHP sta ‘mangiando’ i tuoi []? Il comando curl effettivo (senza PHP) funziona:

curl -i -sS -X POST "http://localhost:3000/posts.json"  \
-H "Content-Type: multipart/form-data;"  \
-H "Api-Key: ba8f7..."  \
-H "Api-Username: blake.erickson"  \
-F "title=2e45e2e8a239dk29d 1f35c2db23232323444a61 1e7e8a39797234"  \
-F "raw=f9ef6749c8736db0996bad662187bee6 8a5753d79c027e5a3a576b171c5bc085 a546f59b75bca6f54edd2af2ef069cf8" \
-F "tags[]=asdf" \
-F "tags[]=fdsa" \
-F "tags[]=foo"

MODIFICA:

Aspetta. Perché stai includendo un ID del argomento? Dovresti poter aggiungere tag solo quando crei un argomento, non quando crei un post (una risposta a un argomento).