YM REST Services

<back to all web services

RegistrationSessionRequest

Requires Authentication
Requires any of the roles:admin, oauthadmin
The following routes are available for this service:
POST/Ams/{ClientID}/Event/{EventID}/EventRegistrationSessionsAssign session to event registration.
DELETE/Ams/{ClientID}/Event/{EventID}/EventRegistrationSessionsDelete session from event registration.
EventRegistrationSessionModel Parameters:
NameParameterData TypeRequiredDescription
EventIDformintNo
RegistrationIDformstringNo
BadgeNumberformint?No
SessionsformList<Dictionary<String,String>>No
SessionIdsformIEnumerable<int>No
BaseSharedDto Parameters:
NameParameterData TypeRequiredDescription
ClientIDformintNo
ResponseStatusformResponseStatusNo
BypassCacheformboolNo
DateCachedformDateTimeNo
DeviceformDeviceNo
RegistrationSessionResponse Parameters:
NameParameterData TypeRequiredDescription
ClientIDformintNo
EventIDformintNo
RegistrationIDformstringNo

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

HTTP + JSV

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

POST /Ams/{ClientID}/Event/{EventID}/EventRegistrationSessions HTTP/1.1 
Host: ws.yourmembership.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	EventID: 0,
	RegistrationID: String,
	BadgeNumber: 0,
	Sessions: 
	[
		{
			String: String
		}
	],
	ClientID: 0,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	BypassCache: False,
	DateCached: 2024-05-03T02:03:39.8946258-04:00,
	Device: Desktop
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ClientID: 0,
	EventID: 0,
	RegistrationID: String,
	BadgeNumber: 0,
	Sessions: 
	[
		{
			String: String
		}
	],
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	BypassCache: False,
	DateCached: 2024-05-03T02:03:39.8946258-04:00,
	Device: Desktop
}