Create an Event

Creates and returns an event on the account's social network with the account owner as organizer. If the full event is temporarily unavailable after creation, the response includes its ID, name and URL. An online event takes a link to join it (online_url). An in-person event takes a location. Set start_at in the future and end_at after it. The event is displayed in the specified IANA timezone (UTC by default).
LIMITATIONS: On Facebook, an event is private by default; group_id creates it in a group (visibility group). invite_group_members without group_id, and can_attendees_invite for an event that is not private, get a 400. An online_url Facebook blocks is refused, and the event may still be created without it. On LinkedIn, events are public: an online event requires an http or https online_url, an in-person one a location; without end_at, the event lasts one hour; details LinkedIn refuses get a 400 with its reason. LinkedIn removes events that no post announces, so a post announcing the event is also published on the account's feed. group_id, invite_group_members, co_host_ids, can_attendees_invite, is_attendees_list_hidden and a visibility other than public get a 400 on LinkedIn.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
^acc_(.*)$

ID of the Account (acc_xxx) to call the method on behalf of.

Body Params

The event to create.

The event to create.

string
required
length ≥ 1

The name of the event.

date-time
required

The start of the event, in the future. Must use a supported date-time format. See supported date formats.

date-time

The end of the event, after its start. Must use a supported date-time format. See supported date formats.

string
length ≥ 1

The IANA time zone the event is shown in (e.g. Europe/Paris). Defaults to UTC.

string

The description of the event.

boolean
Defaults to false

Whether the event takes place online.

uri

The link to join the event online (for an online event).

string
length ≥ 1

Where the event takes place (for an in-person event): a venue or an address.

string
enum

Who can see the event.

  • public anyone.
  • private only the people invited.
  • friends the relations of the organizer.
  • group the members of the group it belongs to.
Allowed:
string
length ≥ 1

The ID of the social group where the event will be created (if supported by the provider).

boolean

For an event in a group, whether to invite all the members of the group (if supported by the provider).

co_host_ids
array of strings

The IDs of the users co-hosting the event (if supported by the provider).

co_host_ids
boolean

Whether the attendees of a private event can invite other people (if supported by the provider).

boolean

Whether to hide the list of attendees from the attendees (if supported by the provider).

Response

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json