Delete subject
curl --request POST \
--url https://partner-api.ochy-prod.com/subjects/{subject_id}/delete \
--header 'Authorization: Bearer <token>'import requests
url = "https://partner-api.ochy-prod.com/subjects/{subject_id}/delete"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://partner-api.ochy-prod.com/subjects/{subject_id}/delete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "Subject deleted"
}{
"detail": "API Key is missing"
}{
"detail": "API Key is missing"
}{
"detail": "Subject not found"
}{
"detail": "Internal server error",
"code": "insufficient_api_credits"
}Subjects
Delete subject
Soft-delete a subject. The record is kept but marked as deleted
and excluded from list results. Uses POST instead of DELETE to prevent
accidental deletion.
POST
/
subjects
/
{subject_id}
/
delete
Delete subject
curl --request POST \
--url https://partner-api.ochy-prod.com/subjects/{subject_id}/delete \
--header 'Authorization: Bearer <token>'import requests
url = "https://partner-api.ochy-prod.com/subjects/{subject_id}/delete"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://partner-api.ochy-prod.com/subjects/{subject_id}/delete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "Subject deleted"
}{
"detail": "API Key is missing"
}{
"detail": "API Key is missing"
}{
"detail": "Subject not found"
}{
"detail": "Internal server error",
"code": "insufficient_api_credits"
}