Mercedes.VehicleManagement.API

<back to all web services

PostMappedMarketingCodeRequest

The following routes are available for this service:
POST/v1/MappedMarketingCodeSave list of Mapped Marketing CodesSave list of Mapped Marketing Codes
import 'package:servicestack/servicestack.dart';

class PostMappedMarketingCodeResponse implements IConvertible
{
    bool? success;

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

    fromMap(Map<String, dynamic> json) {
        success = json['success'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'success': success
    };

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

class PostMappedMarketingCodeRequest implements IGet, IConvertible
{
    PostMappedMarketingCodeRequest();
    PostMappedMarketingCodeRequest.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "PostMappedMarketingCodeRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'uat_api_vehicle_mgt_mb_dhc.rapp_customers.co.uk', types: <String, TypeInfo> {
    'PostMappedMarketingCodeResponse': TypeInfo(TypeOf.Class, create:() => PostMappedMarketingCodeResponse()),
    'PostMappedMarketingCodeRequest': TypeInfo(TypeOf.Class, create:() => PostMappedMarketingCodeRequest()),
});

Dart PostMappedMarketingCodeRequest 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/MappedMarketingCode HTTP/1.1 
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

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

{"success":false}