Skip to content

Latest commit

 

History

History
60 lines (38 loc) · 1.64 KB

RegenerateKeyApi.md

File metadata and controls

60 lines (38 loc) · 1.64 KB

MergeAtsApi.RegenerateKeyApi

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

Method HTTP request Description
regenerateKeyCreate POST /regenerate-key

regenerateKeyCreate

RemoteKey regenerateKeyCreate(remoteKeyForRegenerationRequest)

Exchange remote keys.

Example

import MergeAtsApi from 'merge_ats_api';
let defaultClient = MergeAtsApi.ApiClient.instance;
// Configure API key authorization: tokenAuth
let tokenAuth = defaultClient.authentications['tokenAuth'];
tokenAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tokenAuth.apiKeyPrefix = 'Token';

let apiInstance = new MergeAtsApi.RegenerateKeyApi();
let remoteKeyForRegenerationRequest = new MergeAtsApi.RemoteKeyForRegenerationRequest(); // RemoteKeyForRegenerationRequest | 
apiInstance.regenerateKeyCreate(remoteKeyForRegenerationRequest, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
remoteKeyForRegenerationRequest RemoteKeyForRegenerationRequest

Return type

RemoteKey

Authorization

tokenAuth

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
  • Accept: application/json