Get spare-part-references

Prev Next
Get
/v2/inventory/productModelSparePartDefinitionReferences

Retrieves the list of spare-part-references.
This method returns 100 items at a time; to retrieve more items, multiple requests with an incremental page number must be performed.
Required permissions: READ_PRODUCT_MODEL, READ_SPARE_PART.

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

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

Query parameters
productModelId
string

Condition on product-model id.

Exampleabcd1234
productModelPartId
string

Condition on product-model-part id.

Exampleabcd1234
size
integer

The number of elements to retrieve for the current page.

Minimum1
Example200
page
integer

The page number to retrieve (zero-based).

Minimum0
Example0
sort
string

The sorting criteria based on object properties.

Minimum0
Examplename,ASC
Responses
200

Successful operation.

Expand All
object
content
Array of object (SparePartReference)
object
id
string

The spare-part object identifier.

sparePartDefinitionId
string

The id of the referenced spare-part definition.

productModelId
string

The id of the product-model from which the spare-part is referenced.

productModelPartId
string

The optional id of the product-model-part from which the spare-part is referenced.

group
string

The optional group associated with the reference.

quantity
integer

The occurrences of the spare-part in this reference (default 1).

technicalSchemePosition
string

The position identifier within the scheme of the parent element (product model or model part).

first
boolean

The flag indicating whether the page is the first one.

last
boolean

The flag indicating whether the last page has been reached.

totalPages
integer

The total number of pages.

totalElements
integer

The total number of elements.

sort
string

The current sorting criteria.

numberOfElements
integer

The number of elements in this page.

size
integer

The requested page size.

number
integer

The number of the page (zero-based).

Minimum0
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
404

Resource was not found.

object
message
string

The error response.

ExampleResource not found
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