Mercedes.VehicleManagement.API

<back to all web services

PostBaumusterModelMapRequest

BaumusterModelMap
The following routes are available for this service:
POST/v1/BaumusterModelMapUpload and replace Baumuster–Model mapping CSV fileDelegates CSV upload to Vehicle Data API for processing
# frozen_string_literal: true
# encoding: utf-8


require 'json'
require 'servicestack'


class PostBaumusterModelMapResponse
    include ServiceStack::DTO

    # @return [TrueClass]
    attr_accessor :success

    def self.properties
        {
            success: { name: 'success' },
        }
    end

end

class PostBaumusterModelMapRequest
    include ServiceStack::DTO

    def response_type() = PostBaumusterModelMapResponse
    def get_type_name() = 'PostBaumusterModelMapRequest'
end

Ruby PostBaumusterModelMapRequest 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/BaumusterModelMap 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}