Schedule Events
Create Event
post/v2/company/{company_id}/events
Request
- Base URLhttps://api.7shifts.com
- Auth
- OAuth 2Authorization codehttps://app.7shifts.com/oauth2/authorizeClient credentialsPasswordToken URLhttps://app.7shifts.com/oauth2/token
- or API key in cookie 7session
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
company_idinteger required
Company ID
Headers
x-api-versionstring
An API version
Example:2022-05-01
7shifts API version
x-company-guidstring uuid
Company GUID
Request body
Example request
{
"start_date": "2019-01-01",
"start_time": "09:00:00",
"end_date": "2019-01-02",
"end_time": "17:00:00",
"color": "5ea17c",
"recurrence": "Daily for 10 occurrences ==> (1997 9:00 AM EDT) September 2-11 DTSTART;TZID=America/New_York:19970902T090000 RRULE:FREQ=DAILY;COUNT=10"
}Response
OK
Example response
{
"start_date": "2019-01-01",
"start_time": "09:00:00",
"end_date": "2019-01-02",
"end_time": "17:00:00",
"color": "5ea17c",
"recurrence": "Daily for 10 occurrences ==> (1997 9:00 AM EDT) September 2-11 DTSTART;TZID=America/New_York:19970902T090000 RRULE:FREQ=DAILY;COUNT=10"
}Changes
No recorded changes to this operation across all 2 revisions of this API.