POST
/
api
/
v1
/
comments
curl --request POST \
  --url https://memberkit.com.br/api/v1/comments \
  --header 'Content-Type: application/json' \
  --data '""'
{
  "id": 123,
  "content": "<string>",
  "status": "<string>",
  "parent_id": 123,
  "classroom_id": 123,
  "created_at": "<string>",
  "updated_at": "<string>",
  "lesson": {
    "id": 123,
    "title": "<string>",
    "url": "<string>",
    "course": {
      "id": 123,
      "name": "<string>"
    }
  },
  "user": {
    "id": 123,
    "full_name": "<string>",
    "email": "jsmith@example.com",
    "profile_image_url": "<string>",
    "sign_in_count": 123,
    "current_sign_in_at": "2023-11-07T05:31:56Z",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

api_key
string
query
required

Body

application/json
content
string
required

Texto do comentário.

status
enum<string>
required
Available options:
pending,
approved,
rejected
user_id
integer
required

ID do membro.

lesson_id
integer
required

ID da aula.

classroom_id
integer
required

ID da turma.

parent_id
integer

ID do comentário respondido.

Response

201 - application/json
id
integer
required
content
string
required
status
string
required
parent_id
integer | null
required
classroom_id
integer
required
created_at
string
required
updated_at
string
required
lesson
object
required
user
object
required