parts

List

GET

Lists a collection of parts.

Query parameters

created_bystringOptional
Filters for parts created by any of these users.
cursorstringOptional
The cursor to resume iteration from. If not provided, then iteration starts from the beginning.
limitintegerOptional
The maximum number of parts to return. The default is '50'.
modeenumOptional
The iteration mode to use, otherwise if not set, then "after" is used.
Allowed values: afterbefore
namestringOptional
Filters for parts of the provided name(s).
owned_bystringOptional
Filters for parts owned by any of these users.
parent_part.levelintegerOptional
Number of levels to fetch the part hierarchy up to.
parent_part.partsstringOptional

Part IDs to fetch the hierarchy for. Required if any parent_part.* fields are provided.

typeenumOptional
Filters for parts of the provided type(s).
Allowed values: capabilityenhancementfeatureproduct

Response

This endpoint returns an object
parts
list of unions
The list of parts.
next_cursor
stringOptional
The cursor used to iterate subsequent results in accordance to the sort order. If not set, then no later elements exist.
prev_cursor
stringOptional
The cursor used to iterate preceding results in accordance to the sort order. If not set, then no prior elements exist.
GET
1curl https://api.devrev.ai/parts.list \
2 -H "Authorization: <apiKey>"
200Retrieved
1{
2 "parts": [],
3 "next_cursor": "next_cursor",
4 "prev_cursor": "prev_cursor"
5}