Returns "success" and a count of updated students, or a structure of invalid validations "__invalid" belonging to student(s).
-
Version History:
TASS v54.4 - Method Added
-
Version:
3
-
Permission:
Enrolments > Enrolments/Enrolled Student - Edit
-
Method:
GET | POST
-
Params:
Required:
id [string]
- student code.area_code [string]
- area code.Optional:
eud1_flg [string]
toeud10_flg [string]
- Flag Field 1 - 10eud11_code [string]
toeud20_code [string]
- Table Referend Field 11 - 20eud21_text [string]
toeud30_text [string]
- Text Field 21 - 30eud31_date [date]
toeud40_date [date]
- Date Field 31 - 40eud41_attach_id [string]
toeud50_attach_id [string]
- Attachment Field 41 - 50Conditional:
attachment_file [string]
- Base64 Encoded. Field is required where 'attachment_file_name' is supplied. (URLEncoded Format is RECOMMENDED)attachment_file_name [string]
- Field is required where 'attachment_file' is supplied. -
Success Response:
{ "success": "You successfully saved 1 student(s).", "__tassversion": "01.053.3.000", "token": { "timestamp": "{ts '2021-01-19 15:27:50'}", "area_code": 1, "studentudarea": [ { "eud31_date": "2021-01-18", "eud21_text": "testing", "eud1_flg": "Y", "eud11_code": 10, "eud12_code": 890, "eud41_attach_id": "FB227E4A-FE87-3E54-811AB5B47BB43223", "id": "0021372" } ] } }
-
Error Response:
studentudarea
not supplied__invalid: { "enrolledstudent": "'enrolledstudent' is required." }
[field_name]
is not valid__invalid: { "[field_name]": "'[field_name]' is not a valid field name" }
id
not supplied__invalid: { "id": "Id is required for all rows." }
id
has a duplicate value__invalid: { "id": "Id must be unique for all rows." }
id
length longer than 8__invalid: { "id": "exceeds 8 characters." }
id
not a valid student code in table d3_enrolments__invalid: { "stud_code": "Enrolled student not in staging table." }
id
not a valid student code in table studenrol__invalid: { "stud_code": "Enrolled student not in TASS." }
id
is a valid student code in table studenrol where canc_flg = "Y"__invalid: { "stud_code": "Enrolled student has been cancelled." }
id
is a valid student code in table studenrol where tran_sts = "T"__invalid: { "stud_code": "Enrolled student has been transferred to Current." }
area_code
is not valid in table udtable__invalid: { "area_code": "Area code is not setup." }
surname [string]
exceeds 30 characters__invalid: { "surname": "surname exceeds 30 characters." }
boarder
is not Y or N__invalid: { "boarder": "Boarder must be either Y or N." }
eud1_flg
[string] toeud10_flg
[string] exceeds 1 character__invalid: { "[field]": "The value for this field exceeds the length permitted (2 of 1)." }
eud1_flg
[string] toeud10_flg
[string] is not an alphanumeric value from A-Z and 0-9__invalid: { "[field]": "Value is not a valid alphanumeric code." }
eud11_code
[string] toeud20_code
[string] exceeds 3 characters__invalid: { "[field]": "exceeds 3 characters." }
eud11_code
[string] toeud20_code
[string] is not valid code__invalid: { "[field]": "The code is not valid." }
eud21_text
[string] toeud30_text
[string] exceeds 50 characters__invalid: { "[field]": "exceeds 50 characters." }
eud31_date
[string] toeud40_date
[string] is not in valid date format (yyyy-mm-dd)__invalid: { "[field]": "Value is not a valid date." }
eud41_attach_id
[string] toeud50_attach_id
[string] is empty, or only one of attachment_file and attachment_file_name is passed in__invalid: { "[field]": "attachment_file and attachment_file_name are required if [field] is passed in." }
eud41_attach_id
[string] toeud50_attach_id
[string] attachment_file is passed in but attachment_file_name is not passed in__invalid: { "attachment_file_name": "attachment_file_name field is required where 'attachment_file' is supplied." }
eud41_attach_id
[string] toeud50_attach_id
[string] attachment_file_name is passed in but attachment_file is not passed in__invalid: { "attachment_file": "attachment_file field is required where 'attachment_file_name' is supplied." }
eud41_attach_id
[string] toeud50_attach_id
[string] attachment_file_name exceeds 255 characters__invalid: { "attachment_file_name": "attachment_file_name must be between 1 and 255 characters." }
-
Sample Parameters:
{ "area_code":"1", "studentudarea": [ { "id":"0021372", "eud1_flg":"Y", "eud11_code":"10", "eud12_code":"890", "eud21_text":"testing", "eud31_date":"2021-01-18", "eud41_attach_id": { "attachment_file_name":"test", "attachment_file":"ClRoaXMgaXMgYSB0ZXN0IGZpbGUuCkRvIG5vdCBpbmNsdWRlIGEgdGFibGUhISEKTmFtZQlRdWFudGl0eQlWYWx1ZQppUGFkCTEJNTAwCmlQaG9uZQkxCTEwMDAKVG90YWwJMgkxNTAw" } } ] }
-
Sample GET: (With URL Encoded
token
)http://api.tasscloud.com.au/tassweb/api/?method=setStudentUDArea&appcode=DIGIENRO&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="setStudentUDArea"> <input type="hidden" name="appcode" value="DIGIENRO"> <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>