All URIs are relative to https://api.merge.dev/api/hris/v1
Method | HTTP request | Description |
---|---|---|
SyncStatusResyncCreate | POST /sync-status/resync |
List<SyncStatus> SyncStatusResyncCreate (string xAccountToken)
Force re-sync of all models. This is available for all organizations via the dashboard. Force re-sync is also available programmatically via API for monthly, quarterly, and highest sync frequency customers on the Core, Professional, or Enterprise plans. Doing so will consume a sync credit for the relevant linked account.
using System.Collections.Generic;
using System.Diagnostics;
using Merge.HRISClient.Api;
using Merge.HRISClient.Client;
using Merge.HRISClient.Model;
namespace Example
{
public class SyncStatusResyncCreateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.merge.dev/api/hris/v1";
// Configure API key authorization: tokenAuth
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new ForceResyncApi(config);
var xAccountToken = xAccountToken_example; // string | Token identifying the end user.
try
{
List<SyncStatus> result = apiInstance.SyncStatusResyncCreate(xAccountToken);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ForceResyncApi.SyncStatusResyncCreate: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
xAccountToken | string | Token identifying the end user. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]