Appointments API


Description

Returns appointments based on specified filter criterial

Endpoint Specification

Path: api/appointments

Parameters:


Parameter Name

Data TypeRequired

Definition

begin_date

dateYes

mm/dd/yyyy

end_date

dateYes

mm/dd/yyyy

appointment_typevarcharNo"advising","tutoring","general_event". Returns all appointments if blank.
organizer_idsvarcharNoComma-separated list of primary user ids of appointment organizers (advisors, tutors, etc)
attendee_idsvarcharNoComma-separated list of primary user ids of appointment attendees (students)
locationsvarcharNoComma-separated list of location names
student_servicesvarcharNoComma-separated list of student service names

Template API Call using cURL

curl -u <YourApiUserName>:<YourApiKey> "https://<yourschoolsubdomain>.gradesfirst.com/api/appointments?begin_date=<begin_date>&end_date=<end_date>"

Example API Call using cURL

curl -u vendor@school.edu:ebd6b6470d35d12675fcbd308125b7 "https://coastalcollege.gradesfirst.com/api/appointments?begin_date=01/01/2014&end_date=06/30/2014"

Output

This call outputs a JSON array. Each element in the array represents an appointment.


Example Output

[
  {
    "id":"159008495",
    "organizer": {
      "id":"B53535353",
      "name":"Jones, Bobby"
    },
    "attendees": [
      {
        "id":"S131313131",
        "name":"Smith, Jerry",
        "categories":"Basketball, Enrollment Group 3"
      },
      {
        "id":"S144381027",
        "name":"Johnson, Phil",
        "categories":"Enrollment Group 3"
      }
    ]

"appointment_created_by":
"appointment_start_time":"10/28/2014 04:30 PM"",
"appointment_end_time":"10/28/2014 05:30 PM"",
"location":" Student Academic Center W-240",
is_report_filed: "Yes",
is_no_show: "No",
is_cancelled: "No",
"scheduled_student_service(s)":"Academic/Registration Advising, Advising",
"reported_student_service(s)":"Academic/Registration Advising, Career Counseling",



  }
] 



Error Messages

Error Message

Explanation

User External ID not found

GradesFirst could not find any user with the specified Primary ID