Skill Level:
Advanced
Resource URI
POST http://events.unl.edu/api/{calendar}/event/{id}
Resource Properties
Property | Description |
---|---|
calendar (in URI) | String: The shortname of the calendar on which to post this event. |
title | String: The title of the event. |
subtitle | String: The subtitle of the event. |
description | Text: The description of the event. |
contact_name | String: Who to contact for more event details. |
contact_phone | String: Number to contact for more event details. |
contact_email | String: Email to contact for more event details. |
website | URL: A url to website for the event. |
private_public | String ("private" or "public"): Whether the event should be private or public. Private events cannot be seen by other calendars. Defaults to "public". |
location | id: ID of the location at which the event is hosted. See Create Location documentation if a new location is needed. |
start_time | Date: The start time of the event.. YYYY-MM-DD HH:MM:SS. |
end_time | Date: The end time of the event.. YYYY-MM-DD HH:MM:SS. |
room | String: The room of the event. |
directions | String: directions to the event. |
additional_public_info | Text: Additional public information which may be necessary for event knowledge. |
send_to_main | String: If "yes", will recommend this event to the UNL Main Calendar upon creation. |
Returns
The edited event object.
Request Example
curl -XPOST https://events.unl.edu/api/my_calendar/event/101710 -d api_token=my_token -d title="New Title"
{"id":101710,
"title":"New Title",
"subtitle":null,
"othereventtype":null,
"description":"A Great Event.",
"shortdescription":null,
"refreshments":null,
"classification":null,
"approvedforcirculation":1,
"transparency":null,
"status":null,
"privatecomment":null,
"otherkeywords":null,
"imagetitle":null,
"imageurl":null,
"webpageurl":null,
"listingcontactuid":null,
"listingcontactname":null,
"listingcontactphone":null,
"listingcontactemail":null,
"icalendar":null,
"imagedata":null,
"imagemime":null,
"datecreated":"2017-01-31 11:07:19",
"uidcreated":"s-user1",
"datelastupdated":"2017-01-31 11:07:19",
"uidlastupdated":"s-user1"}
Contributed By:
IIM
- Printer-friendly version
- Log in to post comments