Replace POST with PUT in this line:
Quote:
JSONUrlMethod %json POST

Also your bot must have editor access in the channel.