Required role: | REGISUserRole |
POST | /admissions/{uuid}/bio/sync/update |
---|
import 'package:servicestack/servicestack.dart';
class BioSyncUpdateRequest implements IConvertible
{
String? authorizing_uuid;
String? uuid;
bool? sugar_is_best;
bool? regis_is_best;
bool? re_is_best;
BioSyncUpdateRequest({this.authorizing_uuid,this.uuid,this.sugar_is_best,this.regis_is_best,this.re_is_best});
BioSyncUpdateRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
authorizing_uuid = json['authorizing_uuid'];
uuid = json['uuid'];
sugar_is_best = json['sugar_is_best'];
regis_is_best = json['regis_is_best'];
re_is_best = json['re_is_best'];
return this;
}
Map<String, dynamic> toJson() => {
'authorizing_uuid': authorizing_uuid,
'uuid': uuid,
'sugar_is_best': sugar_is_best,
'regis_is_best': regis_is_best,
're_is_best': re_is_best
};
getTypeName() => "BioSyncUpdateRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: <String, TypeInfo> {
'BioSyncUpdateRequest': TypeInfo(TypeOf.Class, create:() => BioSyncUpdateRequest()),
});
Dart BioSyncUpdateRequest 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 /admissions/{uuid}/bio/sync/update HTTP/1.1
Host: data.regent-college.edu
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"authorizing_uuid":"String","uuid":"String","sugar_is_best":false,"regis_is_best":false,"re_is_best":false}
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"}}