updateQueryConfiguration

updateQueryConfiguration

This method updates an existing query configuration for a specified scenario.

Parameters

  • scenarioId (string, required): The ID of the scenario to which the query configuration belongs.
  • queryConfigurationId (string, required): The ID of the query configuration that needs to be updated.
  • query (object, required): The updated query configuration details.

Returns

A JSON object containing the details of the updated query configuration.

Usage Example

const axios = require('axios');
let data = JSON.stringify({
  "query": {
    "type": "IDInformation",
    "requestId": 0,
    "attribute": "string",
    "value": true,
    "operator": "$noop"
  }
});

let config = {
  method: 'patch',
  maxBodyLength: Infinity,
  url: 'https://api.nexera.id/compliance/scenarios/:scenarioId/queryConfigurations/:queryConfigurationId',
  headers: { 
    'Content-Type': 'application/json', 
    'Accept': 'application/json', 
    'Authorization': 'Bearer <TOKEN>'
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});