Git AI
SDK / APIPull Requests

Create or update a pull request comment or description footer

PUT
/repos/{domain}/{org}/{repo}/pull-requests/{number}/{location}/{key}

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Path Parameters

domain*string
org*string
repo*string
number*integer
location*string
key*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/repos/string/string/string/pull-requests/1/comments/string" \  -H "Content-Type: application/json" \  -d '{    "content": "string"  }'
{  "object": "response",  "data": {    "object": "pull_request_post",    "location": "comments",    "key": "string",    "action": "created"  },  "meta": {    "requestId": "string",    "pagination": {      "limit": 1,      "offset": 0,      "total": 0,      "hasMore": true,      "nextOffset": 0    }  }}
{  "object": "error",  "error": {    "code": "invalid_request",    "message": "string",    "details": null  },  "meta": {    "requestId": "string"  }}
{  "object": "error",  "error": {    "code": "invalid_request",    "message": "string",    "details": null  },  "meta": {    "requestId": "string"  }}
{  "object": "error",  "error": {    "code": "invalid_request",    "message": "string",    "details": null  },  "meta": {    "requestId": "string"  }}