This endpoint will add a comment to a change request
POST <your-unleash-url>/api/admin/projects/:projectId/change-requests/:id/comments
Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
This endpoint will add a comment to a change request for the user making the request.
Request
Path Parameters
- projectId string required
- id string required
- application/json
Body
required
changeRequestAddCommentSchema
- text string required
The content of the comment.
Responses
- 204
This response has no body.
Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
Request
Request
curl / cURL
curl -L -X POST '<your-unleash-url>/api/admin/projects/:projectId/change-requests/:id/comments' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"text": "This is a comment"
}'
python / requests
curl -L -X POST '<your-unleash-url>/api/admin/projects/:projectId/change-requests/:id/comments' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"text": "This is a comment"
}'
go / native
curl -L -X POST '<your-unleash-url>/api/admin/projects/:projectId/change-requests/:id/comments' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"text": "This is a comment"
}'
nodejs / native
curl -L -X POST '<your-unleash-url>/api/admin/projects/:projectId/change-requests/:id/comments' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"text": "This is a comment"
}'
ruby / Net::HTTP
curl -L -X POST '<your-unleash-url>/api/admin/projects/:projectId/change-requests/:id/comments' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"text": "This is a comment"
}'
csharp / httpclient
curl -L -X POST '<your-unleash-url>/api/admin/projects/:projectId/change-requests/:id/comments' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"text": "This is a comment"
}'
php / cURL
curl -L -X POST '<your-unleash-url>/api/admin/projects/:projectId/change-requests/:id/comments' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"text": "This is a comment"
}'
java / OkHttp
curl -L -X POST '<your-unleash-url>/api/admin/projects/:projectId/change-requests/:id/comments' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"text": "This is a comment"
}'
powershell / RestMethod
curl -L -X POST '<your-unleash-url>/api/admin/projects/:projectId/change-requests/:id/comments' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"text": "This is a comment"
}'