Skip to main content
POST
Create a comment

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

author_id
string
required

ID of comment author. Must be a staff member at your gym.

commentable
object
required
text
string
required

Content of comment

parent_id
string

If you are replying to another comment, the ID of the comment you are replying to.

Response

200 - application/json

Create comment response

can_modify
boolean
required

Whether the comment can be edited or deleted by your API key.

created_at
string<timestamptz>
required

Date comment created. ISO8601 timestamp in UTC

id
string
required

Comment ID

author
CommentAuthor · object

Can be null if comment has been deleted

Example:
text
string

Comment text