sfgboxapi

<back to all web services

IntroductionsAdd

Requires Authentication
The following routes are available for this service:
POST/introductions
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    @DataContract
    public static class IntroductionsAdd
    {
        @DataMember(Order=2)
        @Validate(Validator="NotNull")
        public Long tenantsId = null;

        @DataMember(Order=3)
        @Validate(Validator="NotNull")
        public String sections = null;
        
        public Long getTenantsId() { return tenantsId; }
        public IntroductionsAdd setTenantsId(Long value) { this.tenantsId = value; return this; }
        public String getSections() { return sections; }
        public IntroductionsAdd setSections(String value) { this.sections = value; return this; }
    }

    public static class IntroductionsAddResponse
    {
        @DataMember(Order=2)
        public Long tenantsId = null;

        @DataMember(Order=3)
        public String sections = null;

        @DataMember(Order=5)
        public ResponseStatus responseStatus = null;
        
        public Long getTenantsId() { return tenantsId; }
        public IntroductionsAddResponse setTenantsId(Long value) { this.tenantsId = value; return this; }
        public String getSections() { return sections; }
        public IntroductionsAddResponse setSections(String value) { this.sections = value; return this; }
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public IntroductionsAddResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
    }

}

Java IntroductionsAdd 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 /introductions HTTP/1.1 
Host: sfgboxapi.dev.scadsoftware.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"tenantsId":0,"sections":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"tenantsId":0,"sections":"String","responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}