parts

List Post

POST

Lists a collection of parts.

Request

This endpoint expects an object.
created_by
list of stringsOptional
Filters for parts created by any of these users.
cursor
stringOptional
The cursor to resume iteration from. If not provided, then iteration starts from the beginning.
limit
integerOptional
The maximum number of parts to return. The default is '50'.
mode
enumOptional
The iteration mode to use. If "after", then entries after the provided cursor will be returned, or if no cursor is provided, then from the beginning. If "before", then entries before the provided cursor will be returned, or if no cursor is provided, then from the end. Entries will always be returned in the specified sort-by order.
Allowed values: afterbefore
name
list of stringsOptional
Filters for parts of the provided name(s).
owned_by
list of stringsOptional
Filters for parts owned by any of these users.
parent_part
objectOptional
The filter for specifying parent part.
type
list of enumsOptional
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.
POST
1curl -X POST https://api.devrev.ai/parts.list \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{}'
Response
1{
2 "parts": [],
3 "next_cursor": "next_cursor",
4 "prev_cursor": "prev_cursor"
5}