Field Squared API Services

<back to all web services

DiscreetDocumentSchema

The following routes are available for this service:
GET, PUT, POST, DELETE/{Workspace}/DiscreetDocumentSchema
GET, PUT POST, DELETE/{Workspace}/DiscreetDocumentSchema/{Type}
import java.math.*
import java.util.*
import net.servicestack.client.*


open class DiscreetDocumentSchema
{
    var Workspace:String? = null
    var Created:String? = null
    var LastUpdated:String? = null
    var Type:String? = null
    var Name:String? = null
    var Description:String? = null
    var FieldDefs:ArrayList<DiscreetDocumentField> = ArrayList<DiscreetDocumentField>()
    var Enabled:Boolean? = null
}

open class DiscreetDocumentField
{
    var Key:String? = null
    var Name:String? = null
    var Description:String? = null
    var DataType:String? = null
    var Indexed:Boolean? = null
}

Kotlin DiscreetDocumentSchema 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 /{Workspace}/DiscreetDocumentSchema HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Workspace":"String","Created":"String","LastUpdated":"String","Type":"String","Name":"String","Description":"String","FieldDefs":[{"Key":"String","Name":"String","Description":"String","DataType":"String","Indexed":false}],"Enabled":false}