Returns "success" and a count of updated students, or a structure of invalid validations "__invalid" belonging to student(s).
-
Version History:
TASS v52.0 - Add 3 new fields
first_name,other_name, andpreferred_surname.given_nameis now a conditional field that accepts 101 characters. -
Version:
2
-
Method:
GET | POST -
Params:
Required:
students [array]- Array of Students to be updatedid [string]- Student CodeOptional:
surname [string]- Surname. If supplied, length must be between 1 and 30 Characterspreferred_name [string]- Preferred Name. If supplied, length must be between 1 and 20 Charactersother_name [string]- Other Name.preferred_surname [string]- Preferred Surname (use surname if not supplied).usi [alphanumeric]- USI (No spaces or special chars)alt_id [string]- Alt ID (Must be a unique value against any student in the database and the submitted list)form_cls [alphanumeric]- Form Class (No spaces or special chars)fte [decimal (1,2)]- FTE (Range 0.00 to 1.00 only)sex [string]- Gender (Must be an existing Gender)house [string]- House (Must be an existing House)religion [string]- Religion (Must be an existing Religion)pctut_grp [alphanumeric]- PC Tut Group (No spaces or special chars)campus_code [string]- Campus (Must be an existing Campus)prev_school [string]- Previous School (Must be an existing Feed Scool)e_mail [string]- E Mailresident_sts [string]- Resident Status (Must be an existing Resident Status)visa_expiry [date dd/mm/yyyy or yyyy-mm-dd]- Visa Expiryvisa_subclass [string]- Visa Subclassdate_arrival [date dd/mm/yyyy or yyyy-mm-dd]- Date of Arrivalsud1_flg [string]tosud10_flg [string]- User Defined Flagssud11_code [string]tosud20_code [string]- User Defined Codes (Must be an existing UD Code)sud21_text [string]tosud25_text [string]- User Defined Textsud26_bill [string]tosud30_bill [string]- User Defined Billing textceider [string]- Ceiderdistance_ed [string]- Distance_ed (Y or N). If supplied, length must be 1.ffpos [string]- FFPOS (Y or N). If supplied, length must be 1.Conditional:
mob_phone [string]- Mobile Phone. Required if sms_flg is present.sms_flg [string]- SMS Flag (Y or N) Required if mob_phone is present. If supplied, length must be 1.given_name [string]- Given Names (invalid whenfirst_namesupplied). If supplied, length must be between 1 and 101 Characters.first_name [string]- First Name (invalid whengiven_namesupplied). -
Success Response:
{ "success": "You successfully saved 1 student(s).", "__tassversion": "01.053.3.000", "token": { "timestamp": "{ts '2021-01-20 15:11:32'}", "students": [ { "resident_sts": "PR", "sud28_bill": "My bill", "alt_id": "001125", "sud4_flg": "N", "pctut_grp": "ABC", "preferred_name": "Eli", "id": "0010091", "house": "BA", "surname": "Bailey-Farrell", "given_name": "Elias Isaak", "ceider": "DIDE", "usi": 1009110, "sud11_code": "ORG", "e_mail": "example@tassweb.com.au", "date_arrival": "02/07/2014", "sud22_text": "001256", "campus_code": "SE", "sms_flg": "N", "stud_code": "0010091", "religion": "LU", "visa_subclass": "subvis", "fte": 0.8, "prev_school": "STJ", "form_cls": "B", "mob_phone": "0400000097", "visa_expiry": "01/8/2019" } ] } }
-
Error Response:
Date
[field_name]not a valid date__invalid: { "[field_name]": "Value is not a valid date." }
Decimal
[field_name]not a valid decimal__invalid: { "[field_name]": "Value is not a valid decimal." }
studentsnot supplied__invalid: { "students": "'students' is required" }
[field_name]is not valid__invalid: { "[field_name]": "'[field_name]' is not a valid field name" }
idnot supplied__invalid: { "id": "Id is required for all rows." }
idhas a duplicate value__invalid: { "id": "'fieldvalue' is a duplicate `id`" }
idnot a valid student code__invalid: { "id": "Invalid Student Code" }
surnameexceed 30 characters__invalid: { "surname": "exceed 30 characters." }
given_nameexceed 101 characters__invalid: { "given_name": "exceed 101 characters." }
preferred_nameexceed 20 characters__invalid: { "preferred_name": "exceed 20 characters." }
usiexceed 10 characters__invalid: { "usi": "exceed 10 characters." }
usicontains invalid characters (other than A-Z and 0-9)__invalid: { "usi": "Value is not a valid alphanumeric code." }
alt_idexceed 40 characters__invalid: { "alt_id": "exceed 40 characters." }
alt_idis not unique in the database or supplied list of students__invalid: { "alt_id": "Value is not unique" }
form_clsexceed 1 characters__invalid: { "form_cls": "exceed 1 characters." }
form_clscontains invalid characters (other than A-Z and 0-9)__invalid: { "form_cls": "Value is not a valid alphanumeric code." }
sexexceed 3 characters__invalid: { "sex": "exceeds 3 characters." }
sexdoes not exist in the database__invalid: { "sex": "sex does not exist" }
houseexceed 2 characters__invalid: { "house": "exceed 2 characters." }
housedoes not exist in the database__invalid: { "house": "house does not exist" }
religionexceed 2 characters__invalid: { "religion": "exceed 2 characters." }
religiondoes not exist in the database__invalid: { "religion": "religion does not exist" }
pctut_grpexceed 5 characters__invalid: { "pctut_grp": "exceed 5 characters." }
pctut_grpcontains invalid characters (other than A-Z and 0-9)__invalid: { "pctut_grp": "Value is not a valid alphanumeric code." }
campus_codeexceed 3 characters__invalid: { "campus_code": "exceed 3 characters." }
campus_codedoes not exist in the database__invalid: { "campus_code": "campus does not exist" }
prev_schoolexceed 5 characters__invalid: { "prev_school": "exceed 5 characters." }
prev_schooldoes not exist in the database__invalid: { "prev_school": "prev_school does not exist" }
e_mailexceed 60 characters__invalid: { "e_mail": "exceed 60 characters." }
e_mailnot in the correct format__invalid: { "e_mail": "e_mail is not valid" }
mob_phoneexceed 30 characters__invalid: { "mob_phone": "exceed 30 characters." }
mob_phoneorsms_flgis not supplied__invalid: { "mob_phone": "mob_phone and sms_flg must be submitted together" }
sms_flgexceed 1 characters__invalid: { "sms_flg": "exceed 1 characters." }
sms_flgmust be Y or N__invalid: { "sms_flg": "sms_flg must be either Y or N" }
resident_stsexceed 3 characters__invalid: { "resident_sts": "exceed 3 characters." }
visa_subclassexceed 6 characters__invalid: { "visa_subclass": "exceed 6 characters." }
ceiderexceed 9 characters__invalid: { "ceider": "exceed 9 characters." }
ftehas more than 2 decimal points__invalid: { "fte": "Value has more than 2 decimal points." }
sud1_flg [string]tosud10_flg [string]exceed 1 character__invalid: { "[field]": "exceed 1 characters." }
sud11_code [string]tosud20_code [string]exceed 3 characters__invalid: { "[field]": "exceed 3 characters." }
sud11_code [string]tosud20_code [string]does not exist in the database__invalid: { "[field]": "[field] does not exist" }
sud21_text [string]tosud25_text [string]exceed 20 characters__invalid: { "[field]": "exceed 20 characters." }
sud26_bill [string]tosud30_bill [string]exceed 8 characters__invalid: { "[field]": "exceed 20 characters." }
given_nameandfirst_namenot supplied__invalid: { "given_name": "given_name required when first_name not supplied." }
given_nameandfirst_nameboth supplied__invalid: { "given_name": "given_name invalid when first_name supplied." }
distance_edexceed 1 characters__invalid: { "distance_ed": "exceed 1 characters." }
distance_edmust be Y or N__invalid: { "distance_ed": "distance_ed must be either Y or N" }
ffposexceed 1 characters__invalid: { "ffpos": "exceed 1 characters." }
ffposmust be Y or N__invalid: { "ffpos": "ffpos must be either Y or N" }
-
Sample Parameters:
{ "students": [ { "resident_sts": "PR", "sud28_bill": "My bill", "alt_id": "001125", "sud4_flg": "N", "pctut_grp": "ABC", "preferred_name": "Eli", "id": "0010091", "house": "BA", "surname": "Bailey-Farrell", "given_name": "Elias Isaak", "ceider": "DIDE", "usi": 1009110, "sud11_code": "ORG", "e_mail": "example@tassweb.com.au", "date_arrival": "02/07/2014", "sud22_text": "001256", "campus_code": "SE", "sms_flg": "N", "religion": "LU", "visa_subclass": "subvis", "fte": 0.8, "prev_school": "STJ", "form_cls": "B", "mob_phone": "0400000097", "visa_expiry": "01/8/2019" } ] }
-
Sample GET: (With URL Encoded
token)http://api.tasscloud.com.au/tassweb/api/?method=SetStudentDataUploadUtility&appcode=DEMOAP&company=10&v=2&token=BJVvYXC0We4Dtvp6Q49RqhBeAi6uqpTQ9t%2FKI9ZAFpCMeVXIFlDU5yNQIeYME%2BYLXgYA69RTUjXjLeVBetN6CaFMdPCKMWBXD%2Bkkt0%2Fuht0suYrSDONP6mx%2Fbt4WGgNOD5YoIYRNiIVDw2Qn2Oi5YodaEUgtGJohUJMzy3tqsX%2BraZk3j7d77okDCjb7MeFJ0DcupqUoRiGjE39415HTfPgNc6R6BY9wt7SJsj4yOPBrIxHQVS8Yy6gZ3nZgsJ5rhcdkB6eCI6b3FJ31s6vsVcbVu5NBY8AF1qqjWLMazduISzEBwRDsofXfJjo1KLX59R410bmbrF5Z7QZfEfE%2FlettTWOyb4EgdhBoC3v0aLOfF6Bt12AFXDo2VGbgryceeOLAscp%2FFr9ttH42hClBtWsxFU1N5dDENUsVHOwWcfCxd7aTtc0xjvaEYJWcZrRRZa1yrIvgeWaDk0LVxM5ePcT%2BltdrymgmxmZYgxdiYC1qQDcNXDx9hN7yKeZDUztwGA0yl2iXW8aBXAy5hRnztR0TrREyOba26mUHxUJO7tfpIyOrpPbE0nR18vtCZ%2BinbvyqN9adpZhQPByG2XD9M6MoYdmBCc3Duv9qb%2BIa0A8%3D
-
Sample POST:
<form id="postForm" name="postForm" method="POST" action="http://api.tasscloud.com.au/tassweb/api/"> <input type="hidden" name="method" value="setStudentDataUploadUtility"> <input type="hidden" name="appcode" value="DEMOAP"> <input type="hidden" name="company" value="10"> <input type="hidden" name="v" value="2"> <textarea name="token">BJVvYXC0We4Dtvp6Q49RqhBeAi6uqpTQ9t/KI9ZAFpCMeVXIFlDU5yNQIeYME+YLXgYA69RTUjXjLeVBetN6CaFMdPCKMWBXD+kkt0/uht0suYrSDONP6mx/bt4WGgNOD5YoIYRNiIVDw2Qn2Oi5YodaEUgtGJohUJMzy3tqsX+raZk3j7d77okDCjb7MeFJ0DcupqUoRiGjE39415HTfPgNc6R6BY9wt7SJsj4yOPBrIxHQVS8Yy6gZ3nZgsJ5rhcdkB6eCI6b3FJ31s6vsVcbVu5NBY8AF1qqjWLMazduISzEBwRDsofXfJjo1KLX59R410bmbrF5Z7QZfEfE/lettTWOyb4EgdhBoC3v0aLOfF6Bt12AFXDo2VGbgryceeOLAscp/Fr9ttH42hClBtWsxFU1N5dDENUsVHOwWcfCxd7aTtc0xjvaEYJWcZrRRZa1yrIvgeWaDk0LVxM5ePcT+ltdrymgmxmZYgxdiYC1qQDcNXDx9hN7yKeZDUztwGA0yl2iXW8aBXAy5hRnztR0TrREyOba26mUHxUJO7tfpIyOrpPbE0nR18vtCZ+inbvyqN9adpZhQPByG2XD9M6MoYdmBCc3Duv9qb+Ia0A8=</textarea> </form>