POST
/
api
/
public
/
comments
Create a comment
curl --request POST \
  --url https://api.wodup.dev/api/public/comments \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "author_id": "ath_123abc",
  "commentable": {
    "id": "r_123abc",
    "type": "result"
  },
  "text": "Great job!"
}'
{
  "author": {
    "name": "Jane Doe"
  },
  "created_at": "2000-01-01T00:00:00Z",
  "id": "c_123abc",
  "replies": [],
  "text": "Great 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

Body

application/json

Create comment params

POST body for creating a comment

Response

200 - application/json

Create comment response

The response is of type object.