Post in a change request's talk
curl --request POST \
--url https://patch.gg/api/v1/projects/{owner}/{slug}/change-requests/{number}/talk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"body": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({body: JSON.stringify('<string>')})
};
fetch('https://patch.gg/api/v1/projects/{owner}/{slug}/change-requests/{number}/talk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://patch.gg/api/v1/projects/{owner}/{slug}/change-requests/{number}/talk"
payload = { "body": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"author": "<string>",
"author_image": "<string>",
"via": "session",
"body": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"can_delete": true
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}Change requests
Post in a change request's talk
Anyone who can read the repo. Needs the publish scope.
POST
/
projects
/
{owner}
/
{slug}
/
change-requests
/
{number}
/
talk
Post in a change request's talk
curl --request POST \
--url https://patch.gg/api/v1/projects/{owner}/{slug}/change-requests/{number}/talk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"body": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({body: JSON.stringify('<string>')})
};
fetch('https://patch.gg/api/v1/projects/{owner}/{slug}/change-requests/{number}/talk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://patch.gg/api/v1/projects/{owner}/{slug}/change-requests/{number}/talk"
payload = { "body": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"author": "<string>",
"author_image": "<string>",
"via": "session",
"body": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"can_delete": true
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}Authorizations
An API key (pch_...) or the token from pch login.
Path Parameters
Example:
"patch"
Example:
"demo-mod"
Required range:
x >= 1Example:
12
Body
application/json
Required string length:
1 - 20000Response
Posted
Their username; null once the account is gone
Their picture, or null to show the figure grown from their username
session: posted signed in. api_key: posted with an API key, such as through pch or an agent.
Available options:
session, api_key Whether you can delete it: it's yours, or you're in the repo's org.