openapi: 3.2.0
info:
description: "\n\n## Overview\n\n\n\nThis application offers an API for managing assignments and tasks.\n\n\n\nGraphQL endpoint for the same API is [also available](/graph)\n\n\n\n<details><summary>Authentication</summary>\n\n\n\n> \n\n> Authenticate using your Erply credentials and get a sessionKey. This sessionKey and your Erply clientCode must be provided in the HTTP headers of every request. You do not have to authenticate against this API - valid Erply sessionKey-s from other sources are also acceptable. To authenticate using this API, use the `POST /api/v1/auth` endpoint.\n\n>\n\n</details>\n\n"
title: assignments Assortment Import & Export API
contact: {}
version: 2.36.5
tags:
- name: Import & Export
paths:
/configurations/export:
get:
security:
- sk: []
- cc: []
- hmac-auth: []
- jwt: []
tags:
- Import & Export
summary: Export configurations to files
parameters:
- description: Application name that uses CAFA to store configs
name: application
in: query
schema:
type: string
- description: Level is the operating level where the config is stored. Has to be one of Company, Warehouse, Pos, User. Default is Company
name: level
in: query
schema:
type: string
- description: LevelID is a unique value, used to identify the instance of the level. for User level, user id, for Pos - Point of Sale ID. Warehouse can use any unique string to identify the instance of its level, `Company level does not need level_id.`
name: level_id
in: query
schema:
type: string
- description: Type is an optional grouping property, in this case its 'payment', indicating that this configuration belongs to payment integrations group used to query groups of related configurations
name: type
in: query
schema:
type: string
- description: Name of the configuration
name: name
in: query
schema:
type: string
- description: UNIX timestamp used for the HMAC Auth method only
name: timestamp
in: header
schema:
type: string
responses:
'200':
description: binary .json file content
content:
application/json:
schema:
type: string
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/response'
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/response'
/configurations/import:
post:
security:
- sk: []
- cc: []
- hmac-auth: []
- jwt: []
tags:
- Import & Export
summary: Import configurations from file
parameters:
- description: If true, existing configurations will not be updated, otherwise they will be updated with the imported data
name: preserveExistingConfigurations
in: query
schema:
type: boolean
- description: UNIX timestamp used for the HMAC Auth method only
name: timestamp
in: header
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/server.importResult'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/response'
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/response'
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
description: File that contains the data for the import (should be .json)
format: binary
required:
- file
components:
schemas:
server.importResult:
type: object
properties:
error:
type: string
id:
type: string
response:
type: object
properties:
id:
type: integer
message:
type: string
statusCode:
type: string
securitySchemes:
AccessToken:
type: apiKey
name: accessToken
in: header
ErplyClientCode:
type: apiKey
name: clientCode
in: header
ErplyJWT:
type: apiKey
name: jwt
in: header
ErplySession:
type: apiKey
name: sessionKey
in: header
RequestKey:
type: apiKey
name: requestKey
in: header