v1

latestOpenAPI 3.1.02026-07-242011.0 KB

Creating a JSON Import from FTP

post/{org_id}/imports

Path parameters

org_idstring required

The Salsify organization's unique identifier. Visit your Salsify organization and pull from the URL path, immediately following /orgs/

Headers

Authorization: Bearerstring

User API Key

Content-Typestring required

Request body

Response

201

idinteger
system_idstring
namestring
{"stackTrail":"paths:/{org_id}/imports:post:responses:201:content:application/json:schema:properties:webhook_notification","oasType":"schema","type":"unknown"}
{"stackTrail":"paths:/{org_id}/imports:post:responses:201:content:application/json:schema:properties:email_notification","oasType":"schema","type":"unknown"}
{"stackTrail":"paths:/{org_id}/imports:post:responses:201:content:application/json:schema:properties:schedule","oasType":"schema","type":"unknown"}
{"stackTrail":"paths:/{org_id}/imports:post:responses:201:content:application/json:schema:properties:last_import_run","oasType":"schema","type":"unknown"}

Example response

{
  "id": 626975,
  "system_id": "s-a78dc0ff-e10a-46bd-84ef-1bebce2499e2",
  "name": "My Import from SFTP",
  "import_source": {
    "type": "ftp_import_source",
    "type_label": "FTP",
    "host": "salsify.files.com",
    "username": "...",
    "file": "/Testing/test.json",
    "protocol": "sftp"
  },
  "import_format": {
    "type": "json_import_format",
    "type_label": "JSON"
  }
}