POST api/SessionRegistrations

Create a new Session Registration record
Possible Service Responses:
201/Created - Session Registration created successfully and returned in the body of the response.
500/Internal Server - unexpected server error, details in the body of the response.

Request Information

URI Parameters

None.

Body Parameters

The session registration to create

Altai.Web.Services.Models.SessionRegistration
NameDescriptionTypeAdditional information
Id

System.String

None.

Name

System.String

None.

Session

Altai.Web.Services.Models.Session

None.

WebProductId

System.String

None.

EventId

System.String

None.

ContactId

System.String

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "Name": "sample string 2",
  "Session": {
    "Id": "sample string 1",
    "Name": "sample string 2",
    "SessionGroup": {
      "Id": "sample string 1",
      "Name": "sample string 2",
      "DisplayOrder": 3.0
    },
    "PreRequisiteSessions": [],
    "TwoOption1": true,
    "IsGuestSession": true
  },
  "WebProductId": "sample string 3",
  "EventId": "sample string 4",
  "ContactId": "sample string 5"
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'Altai.Web.Services.Models.Session' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'Altai.Web.Services.Models.Session' contains cycles and cannot be serialized if reference tracking is disabled.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SessionRegistration'.

Response Information

Resource Description

System.Net.Http.HttpResponseMessage
NameDescriptionTypeAdditional information
Version

System.Version

None.

Content

System.Net.Http.HttpContent

None.

StatusCode

System.Net.HttpStatusCode

None.

ReasonPhrase

System.String

None.

Headers

System.Net.Http.Headers.HttpResponseHeaders

None.

RequestMessage

System.Net.Http.HttpRequestMessage

None.

IsSuccessStatusCode

System.Boolean

None.