Skip to main content

Paligo API

Create import

const inputBody = '{
  "archive": "string",
  "parent": 123,
  "type": "openapi",
  "match_components": "false",
  "generate_hazard": "false",
  "ignore_warnings": "false",
  "zendesk_category": "123",
  "openapi_languages": [
    [
      "javascript",
      "php"
    ]
  ],
  "openapi_maxdepth": 3
}';
const headers = {
  'Content-Type':'multipart/form-data',
  'Accept':'application/json'
};

fetch('https://{instance}.paligoapp.com/api/v2/imports/',
{
  method: 'POST',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

Body parameter

archive: string
parent: 123
type: openapi
match_components: "false"
generate_hazard: "false"
ignore_warnings: "false"
zendesk_category: "123"
openapi_languages:
  - - javascript
    - php
openapi_maxdepth: 3

Responses

Status

Meaning

Description

Schema

201

Created

Successful response.

Import