code-changes

Update

POST
Updates a code change object.

Request

This endpoint expects an object.
id
stringRequired
The ID of the code change object to be updated.

Response

This endpoint returns an object
code_change
object
POST
1curl -X POST https://api.devrev.ai/code-changes.update \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "id": "id"
6}'
200Successful
1{
2 "code_change": {
3 "id": "id",
4 "branch": "branch",
5 "created_date": "2023-01-01T12:00:00Z",
6 "description": "description",
7 "display_id": "display_id",
8 "external_identifier": "external_identifier",
9 "filtered_loc": {
10 "file_count": 1,
11 "lines_added": 1,
12 "lines_deleted": 1,
13 "lines_modified": 1
14 },
15 "modified_date": "2023-01-01T12:00:00Z",
16 "repo_url": "repo_url",
17 "source": "github",
18 "title": "title",
19 "total_loc": {
20 "file_count": 1,
21 "lines_added": 1,
22 "lines_deleted": 1,
23 "lines_modified": 1
24 }
25 }
26}