Skip to main content
Question

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

  • November 2, 2023
  • 1 reply
  • 299 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
  • 82 replies
  • November 17, 2023

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings