Skip to main content
Question

POST comment reactions | Is emoji a body parameter or query parameter

  • November 2, 2023
  • 1 reply
  • 315 views

Hi!
At a guide for comment reactions REST API (https://www.figma.com/developers/api#post-comment-reactions-endpoint), I’m supposed to send the emoji string as a body parameter but the test cURL command showed me that the URL looks like

curl -X POST -H 'X-FIGMA-TOKEN: <personal access token>' 
'https://api.figma.com/v1/files/:file_key/comments/:comment_id/reactions?emoji=:eyes:'

Then, do I need to send it over as a query parameter?
How can I post the emoji for this API?

This topic has been closed for replies.

1 reply

James_Yang
Figmate
  • Figmate
  • November 17, 2023

It should be a request body parameter. The test curl is being generated incorrectly.