Sync Endpoints
The Sync API provides endpoints for triggering and monitoring data synchronization from the Hydden platform to Hydden.Control.
Base URL
All endpoints are relative to /api/v1/sync.
Trigger Full Sync
Trigger a complete synchronization of all entity types.
POST /api/v1/sync/all::: note Administrator Only This endpoint requires Administrator role. :::
Response
{
"status": "queued",
"job_id": "job-123",
"message": "Full sync initiated"
}Trigger Specific Sync
Trigger synchronization for specific entity types.
Sync Accounts
POST /api/v1/sync/accountsSync Account Attributes
POST /api/v1/sync/account-attributesSync Groups
POST /api/v1/sync/groupsSync Applications
POST /api/v1/sync/applicationsSync Owners
POST /api/v1/sync/ownersSync Owner-Account Relationships
POST /api/v1/sync/owner-accountsSync Group Memberships
POST /api/v1/sync/group-membershipsSync Platform Users
POST /api/v1/sync/platform-usersAll sync endpoints return:
{
"status": "queued",
"job_id": "job-123",
"message": "[Entity] sync initiated"
}Get Sync Status
Retrieve current sync status.
GET /api/v1/sync/status::: note Administrator Only This endpoint requires Administrator role. :::
Response
{
"last_sync": "2024-02-01T10:00:00Z",
"status": "idle",
"running_jobs": 0
}Get Sync Job Status
Retrieve status for a specific sync job.
GET /api/v1/sync/status/{jobId}::: note Administrator Only This endpoint requires Administrator role. :::
Path Parameters
| Parameter | Type | Description |
|---|---|---|
jobId | string | Job ID |
Response
{
"id": "job-123",
"job_type": "full_sync",
"status": "running",
"progress": 65,
"start_time": "2024-02-01T10:00:00Z"
}Get Sync History
Retrieve synchronization history.
GET /api/v1/sync/history::: note Administrator Only This endpoint requires Administrator role. :::
Query Parameters
| Parameter | Type | Description |
|---|---|---|
status | string | Filter by status |
data_source | string | Filter by data source |
limit | number | Number of items to return |
Response
{
"history": [
{
"id": "job-123",
"job_type": "full_sync",
"status": "completed",
"start_time": "2024-02-01T10:00:00Z",
"end_time": "2024-02-01T10:15:00Z",
"records": {
"created": 150,
"updated": 45,
"deleted": 10
}
}
]
}Get Sync Statistics
Retrieve synchronization statistics.
GET /api/v1/sync/statistics::: note Administrator Only This endpoint requires Administrator role. :::
Response
{
"total_accounts": 5000,
"total_owners": 1200,
"total_groups": 350,
"total_applications": 45,
"last_full_sync": "2024-02-01T10:00:00Z",
"data_sources": [
{ "name": "Entra", "accounts": 3000 },
{ "name": "Okta", "accounts": 2000 }
]
}Get Task Status
Retrieve status for a background task.
GET /api/v1/sync/tasks/{taskId}::: note Administrator Only This endpoint requires Administrator role. :::
Path Parameters
| Parameter | Type | Description |
|---|---|---|
taskId | string | Task ID |
Response
{
"id": "task-123",
"status": "completed",
"progress": 100,
"result": {...}
}Resolve Managers
Trigger manager hierarchy resolution.
POST /api/v1/sync/resolve-managers::: note Administrator Only This endpoint requires Administrator role. :::
Response
{
"status": "queued",
"message": "Manager resolution initiated"
}Delete All Tenant Data
Delete all synchronized data for the tenant.
DELETE /api/v1/sync/delete-allDestructive Action
This action permanently deletes all accounts, owners, groups, applications, and related data. This cannot be undone.
::: note Administrator Only This endpoint requires Administrator role. :::
Response
Returns 204 No Content on success.
Error Responses
| Status Code | Description |
|---|---|
400 | Bad Request - Invalid parameters |
401 | Unauthorized - Authentication required |
403 | Forbidden - Insufficient permissions |
409 | Conflict - Sync already in progress |
500 | Internal Server Error |
Related Topics
- Jobs API - Job monitoring endpoints
- Data Sync - User guide
- API Reference - Complete API index
