<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://ipivs.info/wiki/index.php?action=history&amp;feed=atom&amp;title=API_Create_Schedule</id>
		<title>API Create Schedule - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://ipivs.info/wiki/index.php?action=history&amp;feed=atom&amp;title=API_Create_Schedule"/>
		<link rel="alternate" type="text/html" href="https://ipivs.info/wiki/index.php?title=API_Create_Schedule&amp;action=history"/>
		<updated>2026-04-15T18:33:49Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://ipivs.info/wiki/index.php?title=API_Create_Schedule&amp;diff=4584&amp;oldid=prev</id>
		<title>IVSWikiBlue: Created page with &quot;This API call will add a new schedule.  ===Resource URL=== &lt;pre&gt;http://valt.example.com/api/v3/schedule&lt;/pre&gt;  ===Resource Information=== {|class=&quot;wikitable&quot; |'''Method''' |PO...&quot;</title>
		<link rel="alternate" type="text/html" href="https://ipivs.info/wiki/index.php?title=API_Create_Schedule&amp;diff=4584&amp;oldid=prev"/>
				<updated>2020-04-14T20:06:29Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;This API call will add a new schedule.  ===Resource URL=== &amp;lt;pre&amp;gt;http://valt.example.com/api/v3/schedule&amp;lt;/pre&amp;gt;  ===Resource Information=== {|class=&amp;quot;wikitable&amp;quot; |&amp;#039;&amp;#039;&amp;#039;Method&amp;#039;&amp;#039;&amp;#039; |PO...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This API call will add a new schedule.&lt;br /&gt;
&lt;br /&gt;
===Resource URL===&lt;br /&gt;
&amp;lt;pre&amp;gt;http://valt.example.com/api/v3/schedule&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Resource Information===&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|'''Method'''&lt;br /&gt;
|POST&lt;br /&gt;
|-&lt;br /&gt;
|'''Headers'''&lt;br /&gt;
|Content-Type:application/json&lt;br /&gt;
|-&lt;br /&gt;
|'''Response Type'''&lt;br /&gt;
|JSON&lt;br /&gt;
|-&lt;br /&gt;
|'''Authentication Required'''&lt;br /&gt;
|Yes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
The JSON body must be properly formatted. All fields and values should be enclosed in double quotes and separated by a colon.&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!colspan=&amp;quot;3&amp;quot;|Field Name&lt;br /&gt;
!Description&lt;br /&gt;
!Required&lt;br /&gt;
!Example&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;3&amp;quot;|'''name'''&lt;br /&gt;
|Schedule Name&lt;br /&gt;
|yes&lt;br /&gt;
|Monday Weekly&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;3&amp;quot;|'''room'''&lt;br /&gt;
|Room ID&lt;br /&gt;
|yes&lt;br /&gt;
|4&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;3&amp;quot;|'''start_at'''&lt;br /&gt;
|Start time (epoch time) Must be in the future&lt;br /&gt;
|yes&lt;br /&gt;
|1570011010&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;3&amp;quot;|'''duration'''&lt;br /&gt;
|Schedule duration in seconds&lt;br /&gt;
|yes&lt;br /&gt;
|300&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;3&amp;quot;|'''template'''&lt;br /&gt;
|Metadata fields to populate&lt;br /&gt;
|no&lt;br /&gt;
|{17:&amp;quot;Student&amp;quot;}&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|'''{fieldid}'''&lt;br /&gt;
|Metadata field value&lt;br /&gt;
|no&lt;br /&gt;
|Student&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;3&amp;quot;|'''recurrence'''&lt;br /&gt;
|Reoccurring schedule configuration&lt;br /&gt;
|no&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|'''type'''&lt;br /&gt;
|Recurring Schedule Type (Valid Values: weekly, monthly, daily, none)&lt;br /&gt;
|no&lt;br /&gt;
|weekly&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|'''weeks_range'''&lt;br /&gt;
|Days of the week the schedule will recur (0-6, 0=Sunday)&lt;br /&gt;
|no&lt;br /&gt;
|1&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|'''range_type'''&lt;br /&gt;
|When will recurring schedule end (Valid Value: no = no end date, after = fixed number of occurrences, by = will end of specified date)&lt;br /&gt;
|no&lt;br /&gt;
|no&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|'''end_after'''&lt;br /&gt;
|Number of Occurrences&lt;br /&gt;
|no&lt;br /&gt;
|10&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|'''end_by'''&lt;br /&gt;
|Date to end schedule on.&lt;br /&gt;
|no&lt;br /&gt;
|04-30-2020&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;3&amp;quot;|'''share'''&lt;br /&gt;
|Videos created by this schedule will be shared with these users.&lt;br /&gt;
|no&lt;br /&gt;
|{&amp;quot;users&amp;quot;:&amp;quot;13,17,43&amp;quot;,&amp;quot;users_groups&amp;quot;:&amp;quot;1,7,12&amp;quot;}&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|'''users'''&lt;br /&gt;
|List of user IDs videos created by this schedule will be shared with.&lt;br /&gt;
|no&lt;br /&gt;
|13,17,43&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|'''user_groups'''&lt;br /&gt;
|List of group IDs videos created by this schedule will be shared with.&lt;br /&gt;
|no&lt;br /&gt;
|1,7,12&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Response===&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Code&lt;br /&gt;
!Reason&lt;br /&gt;
|-&lt;br /&gt;
|200&lt;br /&gt;
|Schedule Created Successfully&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|Invalid Request (See Response for Specific Error)&lt;br /&gt;
|-&lt;br /&gt;
|401&lt;br /&gt;
|Unauthorized&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|JSON Body Formatted Incorrectly&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The call returns an array containing the schedule ID.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
===Request===&lt;br /&gt;
The sample JSON body below is formatted with line breaks and indentation to make it easier to read. This is '''not''' required.&lt;br /&gt;
&amp;lt;pre&amp;gt;https://ivstest1.ad.ipivs.com/api/v3/schedule?access_token=e82632d19c523678fea3d1016c6df9e9&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;name&amp;quot;:&amp;quot;API Schedule 1&amp;quot;,&lt;br /&gt;
  &amp;quot;room&amp;quot;:39,&lt;br /&gt;
  &amp;quot;start_at&amp;quot;:&amp;quot;1586636900&amp;quot;,&lt;br /&gt;
  &amp;quot;duration&amp;quot;:&amp;quot;300&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Successful Response===&lt;br /&gt;
Sample response is shown with line breaks to make it more readable. Actual responses will not include line breaks.&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
3&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Failure Response===&lt;br /&gt;
Sample response is shown with line breaks to make it more readable. Actual responses will not include line breaks.&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
&amp;quot;data&amp;quot;:{&lt;br /&gt;
&amp;quot;message&amp;quot;: &amp;quot;Validation Error&amp;quot;,&lt;br /&gt;
&amp;quot;fields&amp;quot;:[&lt;br /&gt;
{&lt;br /&gt;
&amp;quot;name&amp;quot;: &amp;quot;name&amp;quot;,&lt;br /&gt;
&amp;quot;message&amp;quot;: &amp;quot;This value should not be blank.&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
]&lt;br /&gt;
},&lt;br /&gt;
&amp;quot;code&amp;quot;: 400&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>IVSWikiBlue</name></author>	</entry>

	</feed>