OpCode J: Add an Attendee Type

OpCode J: Add an Attendee Type

This opcode is used to create an Attendee Type entry in the VTS system.  

Calling The API

The API is called via a secure HTTPS request. This HTTPS request may be a GET or POST operation. Each request must supply the authentication credentials assigned to the caller by Notified. Only requests with valid credentials will be processed. These credentials identify the caller and provide access only to a specific customer area.

The format of the call is: https://api.onlinexperiences.com/scripts/Server.nxp?LASCmd=AI:4;F:APIUTILS!50500&APIUserAuthCode={YourAuthCode}&APIUserCredentials={YourCredentials}&OpCodeList={Opcode[OpCode[…]]}&OutputFormat={X|H|T(default)}&LookupByExternalUserID={0(default)|1}&{Additional, opcode-specific parameters in name=value format…}

Note: The format of the APAC Data Center is: https://api.apac.onlinexperiences.com.

Specific parameter ordering is unimportant, with the only restriction being that the first parameter MUST BE LASCmd=AI:4;F:APIUTILS!50500. All other parameters may appear in any sequence.

API Parameter Type/Size Req. Comment
APIUserAuthCode Varchar 80 Y Your API authorization code as supplied by Notified.
APIUserCredentials Varchar 80 Y Your API user credentials as supplied by Notified.
OpCodeList Varchar 20 Y Should include I to invoke this function.
OutputFormat Char 1 N T for text, H for HTTP URL-encoded, or X for XML. Defaults to T.
AttendeeTypeDescription Varchar 50 Y The description for the Attendee Type to create.

 

Return Outputs

This API returns the status message OK upon successful completion, as well as the AttendeeTypeKey of the newly created Attendee Type entry.

Text

### APICallResult=0 APICallDiagnostic=OK OpCodesProcessed=1 OpCodesInError=0

## OpCode=J Status=0 Message=OK

AttendeeTypeKey

38897

HTTP URL-encoded

APICallResult=0&APICallDiagnostic=OK&OpCodesProcessed=1&OpCodesInError=0&OpCode=J&Status=0&Message=OK&SAttendeeTypeKey=38897

 

XML

<?xml version="1.0" encoding="utf-8" ?>

<APIResults APICallResult="0" APICallDiagnostic="OK" OpCodesProcessed="1" OpCodesInError=”0” >

<OpCodeResult OpCode="J" Status="0" Message="OK" >

 <ResultRow>

  <AttendeeTypeKey>38897</AttendeeTypeKey>>

 

 </ResultRow>

</OpCodeResult>

</APIResults>

 

Potential Error Codes

Error Message Reason
10 Empty or missing description The parameter AttendeeTypeDescription was blank or omitted.
11 Invalid character(s) in the description! The description may not contain quotes.
15 Entry with this description already exists! An Attendee Type with the description passed in AttendeeTypeDescription already exists and cannot be duplicated.