...
Example response body: none (status code 204 indicates success/user not found)
/users/{username}/synchronizations
Method: GET
Description: Query all synchronizations for a user.
Parameters:
Name | Description | Default value |
username (required) | The username for which the synchronization should be created. | - |
Example request URL
Code Block | ||
---|---|---|
| ||
$base_url/api/v0/users/alice/synchronizations |
Example response body
Code Block | ||
---|---|---|
| ||
{
"synchronizations": [
{
"id": 1,
"type": "ews",
"username": "alice"
}
]
} |
/users/{username}/synchronizations
Method: DELETE
Description: Delete all synchronizations for a user.
Parameters:
Name | Description | Default value |
username (required) | The username for which the synchronizations should be deleted. | - |
unlinkMode (required) | The unlink mode indicates what should happen to the events in the user's calendar:
| - |
Example request URL
Code Block | ||
---|---|---|
| ||
$base_url/api/v0/users/alice/synchronizations?unlinkMode=DELETE_ALL_EVENTS |
Example response body: none (status code 204 indicates success)
/users/{username}/synchronizations/{type}
Method: DELETE
Description: Delete synchronizations of a certain type for a certain user.
Parameters:
Name | Description | Default value |
username (required) | The username for which the synchronizations should be deleted. | - |
type (required) | The synchronization type, which indicates the calendaring service provider. | - |
unlinkMode (required) | The unlink mode indicates what should happen to the events in the user's calendar:
| - |
Example request URL
Code Block | ||
---|---|---|
| ||
$base_url/api/v0/users/alice/synchronizations/ews?unlinkMode=DELETE_ALL_EVENTS |
Example response body: none (status code 204 indicates success; 422 indicates no synchronizations found)
Synchronization resources
...
Code Block | ||
---|---|---|
| ||
{ "synchronizations": [ { "id": 1, "username": "alice", "type": "o365" }, { "id": 2, "username": "bob", "type": "googlecalendar" } ] } |
/synchronizations
Method: PUT
Description: Sets up a synchronization with a user's external calendar.
...
Code Block | ||
---|---|---|
| ||
username=alice&type=ews&provisioning_smtpAddress=alice@example.org |
Example response body: none (status code 204 indicates success)
Code Block | ||
---|---|---|
| ||
{
"synchronization":
{
"id": 1,
"username": "alice",
"type": "ews"
}
} |
/synchronizations/{id}
Method: DELETE
...