kintone developer network

Delete Comment

Follow

Delete CommentDELETE /comment.json

Delete a comment in a record in an app.
URI
https://{subdomain}.kintone.com/k/v1/record/comment.json
URI for Guest Space Apps
https://{subdomain}.kintone.com/k/guest/{SpaceID}/v1/record/comment.json

Permissions

The user or API Token must have permission to view the record to delete a comment.

Request Parameters

PARAMETER VALUE REQUIRED DESCRIPTION
app Integer or String Yes The App ID.
record Integer or String Yes The Record ID.
comment Integer or String Yes The Comment ID.

Sample Request using Query Strings

The query string is sent by joining the request parameters with an "&", and a URL encoded query value.

HTTP Query String

app=1&record=1&comment=1

Request Header

DELETE /k/v1/record/comment.json? app%3D1%26record%3D1%26comment%3D1 HTTP/1.1
Host: example.kintone.com:443
X-Cybozu-Authorization: a2ludG9uZTpkZXZlbG9wZXI=
Authorization: Basic a2ludG9uZTpkZXZlbG9wZXI=

The Content-Type header is not needed.

Sample Request using JSON

Request Header

DELETE /k/v1/record/comment.json HTTP/1.1
Host: example.kintone.com:443
X-Cybozu-Authorization: a2ludG9uZTpkZXZlbG9wZXI=
Authorization: Basic a2ludG9uZTpkZXZlbG9wZXI=
Content-Type: application/json

Specify application/json for the Content-Type.

Body

{
    "app": 1,
    "record": 1,
    "comment": 1
}

Response

None. An empty JSON will be returned.

Limitations

  • If user authentication is used to delete a comment, only comments created by that user can be deleted.
  • If an API Token is used to delete a comment, only comments created by the user "Administrator" can be deleted.
  • An error will return if the commenting feature of the app is turned off.
  • For other limitations, check the limitations on this page
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request
Comments