// Replace API_KEY with your api key
curl --location --request PUT 'https://api.supahub.com/api/v1/comments/:commentId' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer API_KEY' \
--data-urlencode 'commentDescription=Updated comment text' \
--data-urlencode 'pinComment=false'
PUT
method
/comments/:commentId
path

Path Parameters

commentId
string
required

Unique identifier of the comment being requested.

Body Parameters

commentDescription
string | undefined

Description of the comment.

pinComment
boolean | undefined

Flag to pin or unpin the comment.

// Replace API_KEY with your api key
curl --location --request PUT 'https://api.supahub.com/api/v1/comments/:commentId' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer API_KEY' \
--data-urlencode 'commentDescription=Updated comment text' \
--data-urlencode 'pinComment=false'