Required role: | REGISUserRole |
POST | /StudentGraduation/{uuid}/{year}/Update |
---|
import Foundation
import ServiceStack
public class StudentGraduationUpdateRequest : Codable
{
public var uuid:String
public var authorizing_uuid:String
public var year:Int?
public var first_name:String
public var middle_name:String
public var last_name:String
public var phonetic_first_name:String
public var phonetic_middle_name:String
public var phonetic_last_name:String
public var placement:String
public var placement_other:String
public var previous_degrees:String
public var gown_size:Int?
public var project_title:String
public var supervisor:String
public var is_attending:Bool
public var is_hood_requested:Bool
public var is_hood_paid:Bool
public var is_paid:Bool
public var is_late:Bool
public var comments:String
public var current_status:String
public var added_date:Date?
public var applied_programs:[StudentGraduationProgramResponse] = []
required public init(){}
}
public class StudentGraduationProgramResponse : Codable
{
public var program_code:String
public var concentration_code:String
public var program_details:String
public var comments:String
required public init(){}
}
Swift StudentGraduationUpdateRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /StudentGraduation/{uuid}/{year}/Update HTTP/1.1
Host: data.regent-college.edu
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"uuid":"String","authorizing_uuid":"String","year":0,"first_name":"String","middle_name":"String","last_name":"String","phonetic_first_name":"String","phonetic_middle_name":"String","phonetic_last_name":"String","placement":"String","placement_other":"String","previous_degrees":"String","gown_size":0,"project_title":"String","supervisor":"String","is_attending":false,"is_hood_requested":false,"is_hood_paid":false,"is_paid":false,"is_late":false,"comments":"String","current_status":"String","added_date":"0001-01-01T00:00:00.0000000","applied_programs":[{"program_code":"String","concentration_code":"String","program_details":"String","comments":"String"}]}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}