Trendsic Platform Service

<back to all web services

ContactBulkOwnerRequest

Requires Authentication
Requires any of the roles:Worker, Agent, Administrator
The following routes are available for this service:
POST,OPTIONS/v1/contact/bulk/owner
import 'package:servicestack/servicestack.dart';

class ContactListJsonResponse implements IConvertible
{
    ResponseStatus? ResponseStatus;

    ContactListJsonResponse({this.ResponseStatus});
    ContactListJsonResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
    };

    getTypeName() => "ContactListJsonResponse";
    TypeContext? context = _ctx;
}

class ContactBulkOwnerRequest implements IConvertible
{
    Uint8List? RequestStream;

    ContactBulkOwnerRequest({this.RequestStream});
    ContactBulkOwnerRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        RequestStream = JsonConverters.fromJson(json['RequestStream'],'Uint8List',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'RequestStream': JsonConverters.toJson(RequestStream,'Uint8List',context!)
    };

    getTypeName() => "ContactBulkOwnerRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'ContactListJsonResponse': TypeInfo(TypeOf.Class, create:() => ContactListJsonResponse()),
    'ContactBulkOwnerRequest': TypeInfo(TypeOf.Class, create:() => ContactBulkOwnerRequest()),
    'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)),
});

Dart ContactBulkOwnerRequest DTOs

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

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/contact/bulk/owner HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}