Returns "success" and a count of updated students, or a structure of invalid validations "__invalid" belonging to student(s).
-
Version:
2
-
Version History:
TASS v52.8.085 - Added
-
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-20 15:25:32'}", "area_code": 1, "studentudarea": [ { "eud31_date": "2019-02-08", "eud21_text": "testing", "eud1_flg": "Y", "eud11_code": 10, "eud12_code": 890, "eud41_attach_id": "2E8D1BA8-0B17-629A-3EFAFB4DA9961AEA", "id": "0010090" } ] } }
-
Error Response:
studentudareanot supplied__invalid: { "studentudarea": "'studentudarea' 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": "Id must be unique for all rows." }
idlength longer than 8__invalid: { "id": "exceeds 8 characters." }
idnot a valid student code__invalid: { "id": "[id] - Student or Enrolled Student code is not in TASS." }
area_codeis not valid in table udtable__invalid: { "area_code": "Area code is not setup." }
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 fro 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":"0010090", "eud1_flg":"Y", "eud11_code":"10", "eud12_code":"890", "eud21_text":"testing", "eud31_date":"2019-02-08", "eud41_attach_id": { "attachment_file_name":"test", "attachment_file":"ClRoaXMgaXMgYSB0ZXN0IGZpbGUuCkRvIG5vdCBpbmNsdWRlIGEgdGFibGUhISEKTmFtZQlRdWFudGl0eQlWYWx1ZQppUGFkCTEJNTAwCmlQaG9uZQkxCTEwMDAKVG90YWwJMgkxNTAw" } } ] }
-
Sample GET: (With URL Encoded
token)http://api.tasscloud.com.au/tassweb/api/?method=setStudentUDAreaDataUploadUtility&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="setStudentUDAreaDataUploadUtility"> <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>