Event Moderators OpCode EMC: Add or Update Moderator/Staffer to an Event

Event Moderators OpCode EMC: Add or Update Moderator/Staffer to an Event

This opcode is used to update the IsModerator flag for a moderator/staffer assigned to an event or add them if they do not exist. The Event to update this staffer for may be identified by specifying the EventKey, EventCode, or EventDescription. The user to modify may be identified by specifying either the EventStaffKey, ShowUserKey in StaffShowUserKey, or the user’s email address in StaffEMailAddress. StaffIsModerator is the only value that will be updated if they already exist.

Calling the API

The API is called via a secure HTTPS request. This HTTPS request may be a GET or POST operation (except for file uploading which requires a multi-part form post). 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 API call is: https://api.onlinexperiences.com/scripts/Server.nxp?LASCmd=AI:4;F:APIUTILS!50540&APIUserAuthCode={YourAuthCode}&APIUserCredentials={YourCredentials}&OpCodeList={Opcode[OpCode[…]]}&OutputFormat={X|H|T(default)}&ShowKey={ShowKey}&{Additional, opcode-specific parameters in name=value format…}

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

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 EMR to invoke this function.

OutputFormat

Char 1

N

T for text, H for HTTP URL-encoded, or X for XML. Defaults to T.

ShowKey

Integer

Y

The ShowKey that the Event belongs to.

EventKey

Integer

N

The event key to remove the staffer from.

EventCode

Varchar 255

N

The event code to remove the staffer from.

EventDescription

Varchar 355

N

The description of the event to remove the staffer from.

EventStaffKey

Integer

N

Staffer Key to remove.

StaffShowUserKey

Integer

N

The Show User Key of the user to remove.

StaffEMailAddress

Varchar 255

N

The email address of the show user to remove.

StaffModeratorRights

Integer

N

Bitmap flags describing the rights for this staffer. See EML for definition.

StaffPhotoURL

Varchar 256

N

The photo URL of the staffer.

StaffDisplayOrder

Integer

N

Number index used to sort this staffer relative to other staffers.

Return Outputs

 

See the descriptions of OpCodes EMI and EMU for more information on the return completion results.

 

Potential Error Codes

 

See the descriptions of OpCodes EMI and EMU for more information on the potential error codes.