POST comments API response "Missing required parameter message_meta"

POST comments API

curl 'https://api.figma.com/v1/files/[FILE_KEY]/comments' \
  -H 'authority: api.figma.com' \
  -H 'x-figma-token: [PERSONAL_ACCESS_TOKEN]' \
  -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) figma-linux/0.9.2 Chrome/89.0.4389.128 Electron/12.2.2 Safari/537.36' \
  -H 'content-type: text/plain;charset=UTF-8' \
  -H 'accept: */*' \
  -H 'origin: null' \
  -H 'sec-fetch-site: cross-site' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-dest: empty' \
  -H 'accept-language: en-US' \
  --data-raw '{"message":"My Message","client_meta":{"node_id":"3718:6626","node_offset":{"x":0,"y":0}}}' \
  --compressed

responses with the following body…

{"error":true,"status":400,"message":"Missing required parameter message_meta","l10n":null}

I posted here because I could not find in the document with the message_meta error message. Will you explain to me what seems to be a problem?
Thank you in advance.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.