| Requires any of the roles: | Agent, Administrator, Agent, Administrator |
| GET | /v1/EventFields/{EventRegistrationId} | ||
|---|---|---|---|
| GET,POST,PUT,OPTIONS | /v1/EventFields |
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class EventFieldRequest
{
open var EventRegistrationId:UUID? = null
open var EventField:ArrayList<EventField> = ArrayList<EventField>()
}
open class EventField
{
open var EventFieldId:Int? = null
open var EventRegistrationId:UUID? = null
open var FieldName:String? = null
open var FieldNote:String? = null
open var FieldSort:Int? = null
}
open class EventFieldResponse
{
open var ResponseStatus:ResponseStatus? = null
open var EventField:ArrayList<EventField> = ArrayList<EventField>()
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/EventFields HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
EventRegistrationId: 00000000000000000000000000000000,
EventField:
[
{
EventFieldId: 0,
EventRegistrationId: 00000000000000000000000000000000,
FieldName: String,
FieldNote: String,
FieldSort: 0
}
]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
EventField:
[
{
EventFieldId: 0,
EventRegistrationId: 00000000000000000000000000000000,
FieldName: String,
FieldNote: String,
FieldSort: 0
}
]
}