Skip to main content
node
const fetch = require('node-fetch');

let url = 'https://api.coralogix.com/mgmt/openapi/v2/actions/actions:atomicBatchExecute';

let options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
  body: '{"requests":[{"create":{"applicationNames":["string"],"isPrivate":true,"name":"string","sourceType":"SOURCE_TYPE_UNSPECIFIED","subsystemNames":["string"],"url":"string"}}]}'
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error('error:' + err));
{
  "matchingResponses": [
    {
      "create": {
        "action": {
          "applicationNames": [
            "<string>"
          ],
          "createdBy": "<string>",
          "id": "<string>",
          "isHidden": true,
          "isPrivate": true,
          "name": "<string>",
          "sourceType": "SOURCE_TYPE_UNSPECIFIED",
          "subsystemNames": [
            "<string>"
          ],
          "url": "<string>"
        }
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json
requests
object[]
  • Option 1
  • Option 2
  • Option 3

Response

matchingResponses
object[]
  • Option 1
  • Option 2
  • Option 3
I