Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Example response body: none (status code 204 indicates success; 422 indicates synchronization not found)

Sample usage

If you want to create a large number of synchronisations, create a text file with the username and email address of the users. Then you can run the following shell script to create the users:

Code Block
languagebash
while read user mail
do
curl -v -X PUT -H apiToken:xxx https://mytimetable_host/api/v0/users/$user
done < users.txt

The following script will create an 'o365' synchronisation for each user:

Code Block
languagebash
while read user mail
do
curl -v -X PUT -H apiToken:xxx -d username=$user -d type=o365 -d provisioning_smtpAddress=$mail https://mytimetable_host.hotelschool.nl/api/v0/synchronizations
done < users.txt