curl --request DELETE \
--url https://patch.gg/api/v1/projects/{owner}/{slug} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://patch.gg/api/v1/projects/{owner}/{slug}', 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}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"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>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}Delete a project that's still scratch
Members of the owning org, signed in to Patch as themselves: it can’t be undone, so an API key gets 403 session_required, with the project’s page to do it on in details.page, and no agent can. Only a project that’s still scratch can go: never a release published, even one taken back since (409 has_releases), no change request open from it or into it (409 has_change_requests, with how many of each in details), and nothing forked from it (409 has_forks), since change requests trace back to the repo they’re for through what each fork came from. One Patch’s staff took down stays for them to decide on (409 taken_down). It takes its page, its repo, its listing and its address, old ones included, which a new project can then have, and its releases that never went out: drafts, and ones still being checked, tested or reviewed, or turned down, with their checks, tests and reviews. Files named by their bytes stay, as anything with the same bytes reads them there. A change request it sent stays in the repo it went to, with what it changed, as its commits were copied in when it opened: its from is null from then on. A repo that couldn’t be deleted answers 502 delete_failed, and nothing has changed.
curl --request DELETE \
--url https://patch.gg/api/v1/projects/{owner}/{slug} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://patch.gg/api/v1/projects/{owner}/{slug}', 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}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"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>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}