PUT
/
api
/
public
/
comments
/
{id}
Update a comment
curl --request PUT \
  --url https://api.wodup.dev/api/public/comments/{id} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "text": "Really good job!"
}'
{
  "author": {
    "name": "Jane Doe"
  },
  "created_at": "2000-01-01T00:00:00Z",
  "id": "c_123abc",
  "replies": [],
  "text": "Really good job!"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Headers

wodup-gym
string

Only used by platform integrations
ID of gym to execute on behalf of

Path Parameters

id
string
required

ID of comment to update

Body

application/json

Update comment params

POST body for updating a comment

Response

200 - application/json

Update comment response

The response is of type object.