Documentation Index

Fetch the complete documentation index at: https://learn.servitly.com/llms.txt

Use this file to discover all available pages before exploring further.

Import spare-parts

Prev Next
Post
/inventory/sparePartDefinitions/import

Updates or creates spare parts by providing a CSV file.
Existing spare parts are identified through their code: the rows whose code already exists update the corresponding definition, while all the other ones create a new spare-part.
The expected format is the one produced by the export API, and the response reports the outcome of the import.

Security
HTTP
Type bearer
Header parameters
X-Servitly-Tenant
stringRequired

The name of the tenant (e.g. acme).

Body parameters

The CSV holding the spare parts definition to import.

object
file
string (binary)

The CSV file with this header: Name,Code,Category,Description,Technical Description,Image Urls,Name[<LANG>],Description[<LANG>]

Responses
200

Successfully imported.

object
message
string

The operation result.

ExampleSpare parts updated
400

Request data not valid.

object
message
string

The error response.

ExampleBad request
401

User not authenticated.

object
message
string

The error response.

ExampleUser not authenticated
403

User not authorized.

object
message
string

The error response.

ExampleUser not authorized
429

API call rate limit exceeded.

object
message
string

The error response.

ExampleAPI call rate limit exceeded
500

Internal server error.

object
message
string

The error response.

ExampleInternal Server Error