TracCloud: API: Difference between revisions

From Redrock Wiki

No edit summary
No edit summary
 
Line 300: Line 300:
==TracCloud Table List==
==TracCloud Table List==


This is a list of TracCloud data tables and fields that are relevant for API access.
[[TracCloud:_Rosetta|Click here to view a list of TracCloud tables and fields accessible via the API.]]


<hr>
<div style="float: left; margin-top: 0em; margin-bottom: 1em"><big>Type Definitions</big></div><div class="mw-collapsible mw-collapsed">
<br><br>
{| class="wikitable" border="1" style="margin:auto"
!Type!!Description
|-
|varchar(#)||Alphanumeric field with a specified maximum length.
|-
|int||Integer, maximum value of about 4 billion, or a 10-digit numeric value.
|-
|bigint||Big integer, maximum value of about 9 quintillion, or a 16-digit numeric value.
|-
|tinyint||Tiny integer, typically used to store a 1 or 0 as true or false.
|-
|date||Date, formatted as YYYY-MM-DD
|-
|time||A specific time using a 24-hour format (HH:MM:SS), e.g., 13:45:00
|-
|datetime||Date and time, YYYY-MM-DD HH:MM:SS
|-
|double||Decimal # with up to 12 digits precision
|-
|json||JSON-formatted field that contains multiple fields and values (e.g., custom fields).
|}
</div>
<hr>
<div style="float: left; margin-top: 0em; margin-bottom: 1em"><big><b>Visits</b></big></div><div style="float: right">[[TracCloud:_Rosetta|Moved {{#fas:arrow-up-right-from-square}}]]</div>
<br>
<hr>
<div style="float: left; margin-top: 0em; margin-bottom: 1em"><big><b>Appointments</b></big></div><div style="float: right">[[TracCloud:_Rosetta|Moved {{#fas:arrow-up-right-from-square}}]]</div>
<hr>
<div style="float: left; margin-top: 0em; margin-bottom: 1em"><big><b>Students</b></big></div><div style="float: right">[[TracCloud:_Rosetta|Moved {{#fas:arrow-up-right-from-square}}]]</div>
<br>
<hr>
<div style="float: left; margin-top: 0em; margin-bottom: 1em"><big><b>Staff</b></big></div><div style="float: right">[[TracCloud:_Rosetta|Moved {{#fas:arrow-up-right-from-square}}]]
</div>
<hr>
<div style="float: left; margin-top: 0em; margin-bottom: 1em"><big><b>Subject Related</b> (Courses, Sections, Terms, Registrations, Faculty, SectionSchedule)</big></div><div style="float: right">[[TracCloud:_Rosetta|Moved {{#fas:arrow-up-right-from-square}}]]</div>
<br>
<hr>
<div style="float: left; margin-top: 0em; margin-bottom: 1em"><big><b>Profile Related</b> (Profiles, Centers, Groups, Reasons)</big></div><div style="float: right">[[TracCloud:_Rosetta|Moved {{#fas:arrow-up-right-from-square}}]]
</div>
<hr>
<div style="float: left; margin-top: 0em; margin-bottom: 1em"><big><b>SurveyTrac Related</b> (Surveys, SrvyQuestions, Responses, SrvyRespAnswers)</big></div><div class="mw-collapsible mw-collapsed">
<br><br>
{| class="wikitable"
|+ Surveys
|-
! Column !! Type !! Notes
|-
|Sequence|| bigint AI PK || Static identifier for each Survey.
|-
|Name|| varchar(80) ||
|-
|CreatedBy|| bigint || Relates to Staff.Sequence.
|-
|Options|| json || This field can be ignored for API purposes.
|-
|ProfileID|| bigint || Relates to Profiles.Sequence.
|-
|CenterID|| bigint ||
|-
|AutoSend|| varchar(80) || The chosen "Initiated Via" option.
|-
|Active|| tinyint ||
|-
|ActiveFrom|| date ||
|-
|ActiveTo|| date ||
|-
|Instructions|| text ||
|-
|useXML|| tinyint || Unused.
|-
|Assessment|| tinyint || Unused.
|-
|Function|| varchar(80) || Unused.
|-
|Confirmation|| text ||
|-
|HeadText|| text||
|}
{| class="wikitable"
|+ SrvyQuestions
|-
! Column !! Type !! Notes
|-
|Sequence||bigint AI PK||Static identifier for each Question, sequences are not reused even across multiple surveys.
|-
|Question||text||
|-
|SurveyID||bigint|| Relates to Surveys.Sequence.
|-
|Points||double||
|-
|Answer||varchar(80)||
|-
|AnswerChoices||text||
|-
|Options||json||
|-
|LinkName||varchar(80)|| Unused.
|-
|LinkURL||varchar(80)|| Unused.
|-
|Type||varchar(80)||
|-
|Number||int||
|-
|CustomData||json||
|}
{| class="wikitable"
|+ Responses
|-
! Column !! Type !! Notes
|-
|Sequence||bigint AI PK || Static identifier for each response.
|-
|SurveyID||bigint || Relates to Surveys.Sequence.
|-
|linkedUID||varchar(36) ||
|-
|SentByID||varchar(36) ||
|-
|StudentID||bigint || Relates to Students.Sequence (not Students.ID).
|-
|SentBy||varchar(80) ||
|-
|SentDate||datetime ||
|-
|AnsweredDate||datetime ||
|-
|StaffID||bigint || Relates to Staff.Sequence.
|-
|FacultyID||bigint || Relates to Faculty.Sequence.
|-
|SentManually||tinyint ||
|-
|CustomData||json||
|}
{| class="wikitable"
|+ SrvyRespAnswers
|-
! Column !! Type !! Notes
|-
|Sequence||bigint AI PK ||Static identifier for each question response.
|-
|QuestionID||bigint || Relates to SrvyQuestions.Sequence.
|-
|ResponseID||bigint || Relates to Responses.Sequence.
|-
|aAnswer||varchar(80) ||
|-
|nAnswer||double ||
|-
|tAnswer||text ||
|-
|CustomData||json||
|}
</div>
<hr>
</div>
<hr>
<hr>
</div>
</div>
[[Category:TracCloud Manual]]
[[Category:TracCloud Manual]]

Latest revision as of 18:55, 19 March 2025

TracCloud API

This section of our technical documentation covers TracCloud's v1 API support. For further assistance, reach out to us using the "Support" tab at the top of the page.

Sending Requests

Our API endpoint is: https://traccloud.go-redrock.com/CAMPUSCODE/app/webhook.php
Replace 'CAMPUSCODE' with your campus code, or replace traccloud.go-redrock.com/CAMPUSCODE with your custom URL if applicable.

For testing purposes, you can send the request from a browser's network tab like this.



That same request with curl looks like this. The rest of this article will use curl. Most of the examples will include line breaks for readability, it will work either way.


Updating Records (Action: update, store, create)

Retrieving Records (Action: query)

Query Options

TracCloud Table List

Click here to view a list of TracCloud tables and fields accessible via the API.