Skip to content

Latest commit

 

History

History
84 lines (61 loc) · 2.73 KB

ForceResyncApi.md

File metadata and controls

84 lines (61 loc) · 2.73 KB

Merge.HRISClient.Api.ForceResyncApi

All URIs are relative to https://api.merge.dev/api/hris/v1

Method HTTP request Description
SyncStatusResyncCreate POST /sync-status/resync

SyncStatusResyncCreate

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.

Example

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);
            }
        }
    }
}

Parameters

Name Type Description Notes
xAccountToken string Token identifying the end user.

Return type

List<SyncStatus>

Authorization

tokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]