Trendsic Platform Service

<back to all web services

EventRegistrationRequest

Requires Authentication
Requires any of the roles:Worker, Agent, Administrator, Agent, Administrator
The following routes are available for this service:
GET,POST,PUT,OPTIONS/v1/EventRegistration
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class EventRegistrationRequest
{
    open var EventRegistration:ArrayList<EventRegistration> = ArrayList<EventRegistration>()
}

open class EventRegistration
{
    open var EventRegistrationId:UUID? = null
    open var Description:String? = null
    open var Summary:String? = null
    open var PageContent:String? = null
    open var RegistrationStart:Date? = null
    open var RegistrationEnd:Date? = null
    open var RegistrationCount:Int? = null
    open var Active:Boolean? = null
}

open class EventRegistrationResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var EventRegistration:ArrayList<EventRegistration> = ArrayList<EventRegistration>()
}

Kotlin EventRegistrationRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /v1/EventRegistration HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"EventRegistration":[{"EventRegistrationId":"00000000000000000000000000000000","Description":"String","Summary":"String","PageContent":"String","RegistrationStart":"0001-01-01T00:00:00.0000000","RegistrationEnd":"0001-01-01T00:00:00.0000000","RegistrationCount":0,"Active":false}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"EventRegistration":[{"EventRegistrationId":"00000000000000000000000000000000","Description":"String","Summary":"String","PageContent":"String","RegistrationStart":"0001-01-01T00:00:00.0000000","RegistrationEnd":"0001-01-01T00:00:00.0000000","RegistrationCount":0,"Active":false}]}