Betting.WebApi

<back to all web services

ChangeProductProvider

Requires Authentication
The following routes are available for this service:
POST/cmd/products/change/productProvider
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class ChangeProductProvider
    {
        public String id = null;
        public Ref productProvider = null;
        
        public String getId() { return id; }
        public ChangeProductProvider setId(String value) { this.id = value; return this; }
        public Ref getProductProvider() { return productProvider; }
        public ChangeProductProvider setProductProvider(Ref value) { this.productProvider = value; return this; }
    }

    public static class Ref
    {
        public String id = null;
        public String val = null;
        
        public String getId() { return id; }
        public Ref setId(String value) { this.id = value; return this; }
        public String getVal() { return val; }
        public Ref setVal(String value) { this.val = value; return this; }
    }

}

Java ChangeProductProvider DTOs

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

HTTP + CSV

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

POST /cmd/products/change/productProvider HTTP/1.1 
Host: api.sbbet.ath.cx 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"id":"String","productProvider":{"id":"String","val":"String"}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}