Create
Create new code comment
- Http Method
- POST
- End Point
-
/~api/code-comments
- Request Body
-
- Content Type
- application/json
- Example
-
{
"projectId" : 1 ,"userId" : 1 ,"content" : "string" ,"lastActivity" : { } ,"replyCount" : 1 ,"mark" : {"commitHash" : "string" ,"path" : "string" ,"range" : {"fromRow" : 1 ,"fromColumn" : 1 ,"toRow" : 1 ,"toColumn" : 1 ,"tabWidth" : 1"compareContext" : {"pullRequestId" : 1 ,"oldCommitHash" : "string" ,"newCommitHash" : "string" ,"pathFilter" : "string" ,"currentFile" : "string" ,"resolved" : true ,"uuid" : "string"
- Response
- cURL Example
-
$ curl -u <login name>:<password or access token> -X POST [email protected] -H "Content-Type: application/json" https://crash.software/~api/code-comments