API Reference

Events.updateEvent

Updates event information based on a event ID.


Syntax

bool events.updateEvent ( int eventId, array newInfo )

Arguments

NameTypeRequiredDefault valueDescription
eventIdintRequirednoneThe ID of the event you want to update.
newInfoarrayRequirednoneThe new event information that you want to update.

Response

The expected response for a successful update event request.

NameTypeDescription
resultINTOn success the response will be 1.

Sample Response

Sample REST Response
http://api.newspark.ca/services/rest/events/updateEvent?eventId=[EVENT_ID]&newInfo[description]=[UPDATED_EVENT_DESCRIPTION]&newInfo[moderationStatus]=[UPDATED_MODERATION]
<?xml version="1.0" encoding="UTF-8"?>
<result>1</result>
Sample JSON Response
{
    "status": true,
    "result": 1
}

Code examples

0 comments

Be the first to comment on updateEvent.

Add a Comment

  • captcha