| POST | /cmd/organizations/change/patron-identity-policy |
|---|
import 'package:servicestack/servicestack.dart';
class PatronIdentityPolicy implements IConvertible
{
bool? Required;
PatronIdentityPolicy({this.Required});
PatronIdentityPolicy.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Required = json['required'];
return this;
}
Map<String, dynamic> toJson() => {
'required': Required
};
getTypeName() => "PatronIdentityPolicy";
TypeContext? context = _ctx;
}
class ChangeOrganizationPatronIdentityPolicy implements IConvertible
{
String? id;
PatronIdentityPolicy? patronIdentityPolicy;
ChangeOrganizationPatronIdentityPolicy({this.id,this.patronIdentityPolicy});
ChangeOrganizationPatronIdentityPolicy.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
patronIdentityPolicy = JsonConverters.fromJson(json['patronIdentityPolicy'],'PatronIdentityPolicy',context!);
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'patronIdentityPolicy': JsonConverters.toJson(patronIdentityPolicy,'PatronIdentityPolicy',context!)
};
getTypeName() => "ChangeOrganizationPatronIdentityPolicy";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.testenv.webhop.biz', types: <String, TypeInfo> {
'PatronIdentityPolicy': TypeInfo(TypeOf.Class, create:() => PatronIdentityPolicy()),
'ChangeOrganizationPatronIdentityPolicy': TypeInfo(TypeOf.Class, create:() => ChangeOrganizationPatronIdentityPolicy()),
});
Dart ChangeOrganizationPatronIdentityPolicy DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /cmd/organizations/change/patron-identity-policy HTTP/1.1
Host: api.testenv.webhop.biz
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
id: String,
patronIdentityPolicy:
{
required: False
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}