Requires any of the roles: | SystemAdministrator, Manager, Customer |
DELETE | /addresses/{addressId} |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
/**
* Delete the specified address
*/
// @Api(Description="Delete the specified address")
class DeleteAddress implements IConvertible
{
String? accountId;
/**
* The ID of the address you want to delete
*/
// @ApiMember(Description="The ID of the address you want to delete")
String? addressId;
DeleteAddress({this.accountId,this.addressId});
DeleteAddress.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
accountId = json['accountId'];
addressId = json['addressId'];
return this;
}
Map<String, dynamic> toJson() => {
'accountId': accountId,
'addressId': addressId
};
getTypeName() => "DeleteAddress";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: <String, TypeInfo> {
'DeleteAddress': TypeInfo(TypeOf.Class, create:() => DeleteAddress()),
});
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.
DELETE /addresses/{addressId} HTTP/1.1 Host: team.evovoice.io Accept: text/jsonl