Evo Voice

<back to all web services

DeleteAddress

Delete the specified address

Requires Authentication
Requires any of the roles:SystemAdministrator, Manager, Customer
The following routes are available for this service:
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: 'evovoice.io', types: <String, TypeInfo> {
    'DeleteAddress': TypeInfo(TypeOf.Class, create:() => DeleteAddress()),
});

Dart DeleteAddress DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: evovoice.io 
Accept: application/json