API Documentation
The UptimeTea API is easy to use and free for all plans.
Remove participant
Takes a participant out of the rotation. Requires the owner or manager role.
DELETE
https://api.uptimetea.com/on_call_schedules/:on_call_schedule_id/participants/:id
Headers
-
AuthorizationREQUIREDSTRINGBearer $TOKEN
Response body
HTTP 200 OK (empty body)
Code examples
curl -X DELETE "https://api.uptimetea.com/on_call_schedules/$ON_CALL_SCHEDULE_ID/participants/$PARTICIPANT_ID" \
-H "Authorization: Bearer $TOKEN"
// Remove participant
const response = await fetch('https://api.uptimetea.com/on_call_schedules/ON_CALL_SCHEDULE_ID/participants/PARTICIPANT_ID', {
method: 'DELETE',
headers: {
'Authorization': 'Bearer ' + yourToken
}
});
console.log(response.status);
# Remove participant
import requests
headers = {'Authorization': f'Bearer {your_token}'}
response = requests.delete(
'https://api.uptimetea.com/on_call_schedules/ON_CALL_SCHEDULE_ID/participants/PARTICIPANT_ID',
headers=headers
)
print(response.status_code)
// Remove participant
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("DELETE", "https://api.uptimetea.com/on_call_schedules/ON_CALL_SCHEDULE_ID/participants/PARTICIPANT_ID", nil)
req.Header.Set("Authorization", "Bearer "+yourToken)
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
data, _ := io.ReadAll(resp.Body)
fmt.Println(resp.Status, string(data))
}
# Remove participant
require 'net/http'
require 'uri'
uri = URI('https://api.uptimetea.com/on_call_schedules/ON_CALL_SCHEDULE_ID/participants/PARTICIPANT_ID')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(uri)
request['Authorization'] = "Bearer #{your_token}"
response = http.request(request)
puts response.code, response.body
<?php
// Remove participant
$ch = curl_init('https://api.uptimetea.com/on_call_schedules/ON_CALL_SCHEDULE_ID/participants/PARTICIPANT_ID');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Bearer ' . $yourToken
]);
$response = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
curl_close($ch);