Required role: | REGISUserRole |
POST | /admissions/{uuid}/bio/sync/update/withvalues |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class BioSyncUpdateWithValuesRequest implements IConvertible
{
String? uuid;
String? first_name;
String? middle_name;
String? last_name;
String? preferred_name;
String? birth_name;
String? prefix;
String? current_occupation;
DateTime? dob;
String? citizenship;
String? citizenship_other;
String? permanent_resident;
String? gender;
String? marital_status;
DateTime? deceased_date;
String? authorizing_uuid;
BioSyncUpdateWithValuesRequest({this.uuid,this.first_name,this.middle_name,this.last_name,this.preferred_name,this.birth_name,this.prefix,this.current_occupation,this.dob,this.citizenship,this.citizenship_other,this.permanent_resident,this.gender,this.marital_status,this.deceased_date,this.authorizing_uuid});
BioSyncUpdateWithValuesRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
uuid = json['uuid'];
first_name = json['first_name'];
middle_name = json['middle_name'];
last_name = json['last_name'];
preferred_name = json['preferred_name'];
birth_name = json['birth_name'];
prefix = json['prefix'];
current_occupation = json['current_occupation'];
dob = JsonConverters.fromJson(json['dob'],'DateTime',context!);
citizenship = json['citizenship'];
citizenship_other = json['citizenship_other'];
permanent_resident = json['permanent_resident'];
gender = json['gender'];
marital_status = json['marital_status'];
deceased_date = JsonConverters.fromJson(json['deceased_date'],'DateTime',context!);
authorizing_uuid = json['authorizing_uuid'];
return this;
}
Map<String, dynamic> toJson() => {
'uuid': uuid,
'first_name': first_name,
'middle_name': middle_name,
'last_name': last_name,
'preferred_name': preferred_name,
'birth_name': birth_name,
'prefix': prefix,
'current_occupation': current_occupation,
'dob': JsonConverters.toJson(dob,'DateTime',context!),
'citizenship': citizenship,
'citizenship_other': citizenship_other,
'permanent_resident': permanent_resident,
'gender': gender,
'marital_status': marital_status,
'deceased_date': JsonConverters.toJson(deceased_date,'DateTime',context!),
'authorizing_uuid': authorizing_uuid
};
getTypeName() => "BioSyncUpdateWithValuesRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: <String, TypeInfo> {
'BioSyncUpdateWithValuesRequest': TypeInfo(TypeOf.Class, create:() => BioSyncUpdateWithValuesRequest()),
});
Dart BioSyncUpdateWithValuesRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /admissions/{uuid}/bio/sync/update/withvalues HTTP/1.1
Host: data.regent-college.edu
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"uuid":"String","first_name":"String","middle_name":"String","last_name":"String","preferred_name":"String","birth_name":"String","prefix":"String","current_occupation":"String","dob":"0001-01-01T00:00:00.0000000","citizenship":"String","citizenship_other":"String","permanent_resident":"String","gender":"String","marital_status":"String","deceased_date":"0001-01-01T00:00:00.0000000","authorizing_uuid":"String"}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}