Task workflow
Reopen task
POST
/
api
/
care
/
tasks
/
{id}
/
reopen
/
Reopen task
curl --request POST \
--url https://api.prod.peerlogic.com/api/care/tasks/{id}/reopen/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.prod.peerlogic.com/api/care/tasks/{id}/reopen/"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.prod.peerlogic.com/api/care/tasks/{id}/reopen/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.prod.peerlogic.com/api/care/tasks/{id}/reopen/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.prod.peerlogic.com/api/care/tasks/{id}/reopen/"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.prod.peerlogic.com/api/care/tasks/{id}/reopen/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.prod.peerlogic.com/api/care/tasks/{id}/reopen/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z",
"contact": {
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"name_first": "<string>",
"name_last": "<string>",
"name_middle": "<string>",
"name_preferred": "<string>",
"organization": "<string>",
"title": "<string>",
"email": "jsmith@example.com",
"phone_numbers": [
{
"id": "<string>",
"phone_number": "<string>",
"source_type": "call",
"sip_caller_name": "<string>",
"is_primary_contact": true,
"phone_number_type": "home"
}
],
"address_line_1": "<string>",
"address_line_2": "<string>",
"address_city": "<string>",
"address_state": "<string>",
"zip_code": "<string>",
"date_of_birth": "2023-12-25",
"gender": "male",
"manually_edited_fields": "<string>"
},
"task_type": "BILLING_COLLECTION",
"practice_id": "<string>",
"assignee_type": "AIMEE",
"status": "CREATED",
"due_at": "2023-11-07T05:31:56Z",
"handoff_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"cancelled_at": "2023-11-07T05:31:56Z",
"handoff_reason": "aimee_initiated",
"handoff_notes": "<string>",
"completed_by_type": "AIMEE",
"patients": [
{
"address_line_1": "<string>",
"address_line_2": "<string>",
"date_of_birth": "2023-12-25",
"email": "jsmith@example.com",
"id": "<string>",
"is_active": true,
"name": "<string>",
"name_first": "<string>",
"name_last": "<string>",
"name_middle": "<string>",
"phone_fax": "<string>",
"phone_home": "<string>",
"phone_mobile": "<string>",
"phone_number": "<string>",
"phone_work": "<string>",
"placeholder": "<string>",
"pms_created_at": "2023-11-07T05:31:56Z",
"zip_code": "<string>"
}
],
"conversations": [
"<string>"
],
"opportunities": [
"<string>"
],
"appointments": [
{
"id": 123,
"appointment_start_at": "2023-11-07T05:31:56Z",
"appointment_end_at": "2023-11-07T05:31:56Z",
"approximate_total_amount": "<string>",
"approximate_total_currency": "<string>",
"confirmed_at": "2023-11-07T05:31:56Z",
"did_patient_miss": true,
"is_active": true,
"is_new_patient": true,
"note": "<string>",
"patient_id": "<string>",
"booked_by_patient_id": "<string>",
"pms_created_at": "2023-11-07T05:31:56Z",
"practice": "<string>",
"procedures": "<string>",
"status": "SCHEDULED",
"appointment_type": {
"id": "<string>",
"name": "<string>",
"duration_in_minutes": 123,
"practice": "<string>",
"descriptors": [
{
"name": "<string>",
"code": "<string>",
"id": "<string>",
"active": true
}
],
"peerlogic_appointment_types": "<string>",
"mappings": "<string>",
"is_bookable_online": true,
"is_disabled_in_peerlogic": true,
"effective_is_bookable_online": "<string>",
"has_availability_schedule": true
},
"booked_peerlogic_appointment_type": {
"id": "<string>",
"name": "Consultation",
"display_name": "<string>"
},
"patient": {
"address_line_1": "<string>",
"address_line_2": "<string>",
"date_of_birth": "2023-12-25",
"email": "jsmith@example.com",
"id": "<string>",
"is_active": true,
"name": "<string>",
"name_first": "<string>",
"name_last": "<string>",
"name_middle": "<string>",
"phone_fax": "<string>",
"phone_home": "<string>",
"phone_mobile": "<string>",
"phone_number": "<string>",
"phone_work": "<string>",
"placeholder": "<string>",
"pms_created_at": "2023-11-07T05:31:56Z",
"zip_code": "<string>"
},
"provider": {
"id": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"phone_number": "<string>",
"is_active": true
},
"operatory": {
"name": "<string>",
"id": "<string>",
"display_name": "<string>"
}
}
],
"task_description": "<string>",
"task_type_display": "<string>",
"handoff_reason_display": "<string>",
"task_category": "<string>",
"is_viewed": true,
"is_high_priority": true,
"detail": "<string>"
}{
"task_type": [
"This field is required."
]
}{
"detail": "'Authorization' header is required"
}{
"detail": "You do not have permission to perform this action."
}{
"detail": "The requested resource was not found."
}{
"error": "The requested state transition is not allowed from the current state."
}Authorizations
Bearer access token issued by Peerlogic.
Path Parameters
Body
application/json
The body is of type object.
Response
Successful response for reopen task.
Minimum string length:
1Show child attributes
Show child attributes
Available options:
BILLING_COLLECTION, BILLING_GET_PAYMENT_METHOD, BILLING_INQUIRY, BILLING_UPDATE_PAYMENT_METHOD, CLINICAL_REVIEW, CUSTOMER_SERVICE_RECOVERY, INFORMATION_UPDATE, INQUIRY_GENERAL, INQUIRY_PRICING, INQUIRY_UPCOMING_APPOINTMENT, INSURANCE_AUTHORIZATION, INSURANCE_CLAIM, INSURANCE_VERIFICATION, MEDICAL_RECORD_REQUEST, PRODUCT_INQUIRY, QA_REVIEW, WEBCHAT_OUTREACH_PATIENT, VOICECHAT_OUTREACH_PATIENT, MISSED_CALL_OUTREACH_PATIENT, PRESCRIPTION_REFILL, REFERRAL, SCHEDULING_BOOK_APPOINTMENT, SCHEDULING_CANCEL_APPOINTMENT, SCHEDULING_CONFIRM_APPOINTMENT, SCHEDULING_RESCHEDULE_APPOINTMENT, SUPERVISOR_HANDOFF, URGENT_OUTREACH_PATIENT Available options:
AIMEE, STAFF Available options:
CREATED, COMPLETED, CANCELLED Available options:
aimee_initiated, error, user_initiated Minimum string length:
1Available options:
AIMEE, STAFF Show child attributes
Show child attributes
Show child attributes
Show child attributes
Minimum string length:
1Minimum string length:
1Was this page helpful?
Reopen task
curl --request POST \
--url https://api.prod.peerlogic.com/api/care/tasks/{id}/reopen/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.prod.peerlogic.com/api/care/tasks/{id}/reopen/"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.prod.peerlogic.com/api/care/tasks/{id}/reopen/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.prod.peerlogic.com/api/care/tasks/{id}/reopen/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.prod.peerlogic.com/api/care/tasks/{id}/reopen/"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.prod.peerlogic.com/api/care/tasks/{id}/reopen/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.prod.peerlogic.com/api/care/tasks/{id}/reopen/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z",
"contact": {
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"name_first": "<string>",
"name_last": "<string>",
"name_middle": "<string>",
"name_preferred": "<string>",
"organization": "<string>",
"title": "<string>",
"email": "jsmith@example.com",
"phone_numbers": [
{
"id": "<string>",
"phone_number": "<string>",
"source_type": "call",
"sip_caller_name": "<string>",
"is_primary_contact": true,
"phone_number_type": "home"
}
],
"address_line_1": "<string>",
"address_line_2": "<string>",
"address_city": "<string>",
"address_state": "<string>",
"zip_code": "<string>",
"date_of_birth": "2023-12-25",
"gender": "male",
"manually_edited_fields": "<string>"
},
"task_type": "BILLING_COLLECTION",
"practice_id": "<string>",
"assignee_type": "AIMEE",
"status": "CREATED",
"due_at": "2023-11-07T05:31:56Z",
"handoff_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"cancelled_at": "2023-11-07T05:31:56Z",
"handoff_reason": "aimee_initiated",
"handoff_notes": "<string>",
"completed_by_type": "AIMEE",
"patients": [
{
"address_line_1": "<string>",
"address_line_2": "<string>",
"date_of_birth": "2023-12-25",
"email": "jsmith@example.com",
"id": "<string>",
"is_active": true,
"name": "<string>",
"name_first": "<string>",
"name_last": "<string>",
"name_middle": "<string>",
"phone_fax": "<string>",
"phone_home": "<string>",
"phone_mobile": "<string>",
"phone_number": "<string>",
"phone_work": "<string>",
"placeholder": "<string>",
"pms_created_at": "2023-11-07T05:31:56Z",
"zip_code": "<string>"
}
],
"conversations": [
"<string>"
],
"opportunities": [
"<string>"
],
"appointments": [
{
"id": 123,
"appointment_start_at": "2023-11-07T05:31:56Z",
"appointment_end_at": "2023-11-07T05:31:56Z",
"approximate_total_amount": "<string>",
"approximate_total_currency": "<string>",
"confirmed_at": "2023-11-07T05:31:56Z",
"did_patient_miss": true,
"is_active": true,
"is_new_patient": true,
"note": "<string>",
"patient_id": "<string>",
"booked_by_patient_id": "<string>",
"pms_created_at": "2023-11-07T05:31:56Z",
"practice": "<string>",
"procedures": "<string>",
"status": "SCHEDULED",
"appointment_type": {
"id": "<string>",
"name": "<string>",
"duration_in_minutes": 123,
"practice": "<string>",
"descriptors": [
{
"name": "<string>",
"code": "<string>",
"id": "<string>",
"active": true
}
],
"peerlogic_appointment_types": "<string>",
"mappings": "<string>",
"is_bookable_online": true,
"is_disabled_in_peerlogic": true,
"effective_is_bookable_online": "<string>",
"has_availability_schedule": true
},
"booked_peerlogic_appointment_type": {
"id": "<string>",
"name": "Consultation",
"display_name": "<string>"
},
"patient": {
"address_line_1": "<string>",
"address_line_2": "<string>",
"date_of_birth": "2023-12-25",
"email": "jsmith@example.com",
"id": "<string>",
"is_active": true,
"name": "<string>",
"name_first": "<string>",
"name_last": "<string>",
"name_middle": "<string>",
"phone_fax": "<string>",
"phone_home": "<string>",
"phone_mobile": "<string>",
"phone_number": "<string>",
"phone_work": "<string>",
"placeholder": "<string>",
"pms_created_at": "2023-11-07T05:31:56Z",
"zip_code": "<string>"
},
"provider": {
"id": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"phone_number": "<string>",
"is_active": true
},
"operatory": {
"name": "<string>",
"id": "<string>",
"display_name": "<string>"
}
}
],
"task_description": "<string>",
"task_type_display": "<string>",
"handoff_reason_display": "<string>",
"task_category": "<string>",
"is_viewed": true,
"is_high_priority": true,
"detail": "<string>"
}{
"task_type": [
"This field is required."
]
}{
"detail": "'Authorization' header is required"
}{
"detail": "You do not have permission to perform this action."
}{
"detail": "The requested resource was not found."
}{
"error": "The requested state transition is not allowed from the current state."
}