Search for timelines
POST/timestreams/:timestreamId/timelines
Search for timelines under a timestream with support for paging
Request
Path Parameters
Query Parameters
Default value: 25
The number of results per page
Default value: 1
The page of results to return
Header Parameters
OneBasket API Key
- application/json
Body
required
- Timelines.PrimaryTimelineQueryDto
- Timelines.CollectionTimelineQueryDto
- Timelines.ProductAvailabilityTimelineQueryDto
- Primary
- Collection
- ProductAvailability
- Primary
- Collection
- ProductAvailability
- Primary
- Collection
- ProductAvailability
Possible values: [Primary]
The type of the timeline
Possible values: [Primary, Collection, ProductAvailability]
Query for timlines of the specific type
circular(Timelines.PrimaryTimelineQueryDto)
Possible values: [Collection]
The type of the timeline
Possible values: [ProductAvailability]
The type of the timeline
Possible values: [Collection]
The type of the timeline
Possible values: [Primary, Collection, ProductAvailability]
Query for timlines of the specific type
Possible values: [Primary]
The type of the timeline
circular(Timelines.CollectionTimelineQueryDto)
Possible values: [ProductAvailability]
The type of the timeline
Possible values: [ProductAvailability]
The type of the timeline
Possible values: [Primary, Collection, ProductAvailability]
Query for timlines of the specific type
Possible values: [Primary]
The type of the timeline
Possible values: [Collection]
The type of the timeline
circular(Timelines.ProductAvailabilityTimelineQueryDto)
Responses
- 200
- 400
- 401
The request has succeeded.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Timelines.PrimaryTimelineDto
- Timelines.CollectionTimelineDto
- Timelines.ProductAvailabilityTimelineDto
- Primary
- Collection
- ProductAvailability
- Primary
- Collection
- ProductAvailability
- Primary
- Collection
- ProductAvailability
- ]
The current page of results
The number of results per page
The total number of pages
The total number of results
True if there is a next page
True if there is a previous page
results object[]required
The results for the current page
Possible values: [Primary]
The type of the timeline
Possible values: [Primary, Collection, ProductAvailability]
The type of the timeline
circular(Timelines.PrimaryTimelineDto)
Possible values: [Collection]
The type of the timeline
Possible values: [ProductAvailability]
The type of the timeline
The unique identifier of the timeline
The unique identifier of the parent timestream
The title of the timeline
The timeperiods of the timeline
Possible values: [Collection]
The type of the timeline
Possible values: [Primary, Collection, ProductAvailability]
The type of the timeline
Possible values: [Primary]
The type of the timeline
circular(Timelines.CollectionTimelineDto)
Possible values: [ProductAvailability]
The type of the timeline
The unique identifier of the timeline
The unique identifier of the parent timestream
The title of the timeline
The timeperiods of the timeline
Possible values: [ProductAvailability]
The type of the timeline
Possible values: [Primary, Collection, ProductAvailability]
The type of the timeline
Possible values: [Primary]
The type of the timeline
Possible values: [Collection]
The type of the timeline
circular(Timelines.ProductAvailabilityTimelineDto)
The unique identifier of the timeline
The unique identifier of the parent timestream
The title of the timeline
The timeperiods of the timeline
{
"page": 0,
"pageSize": 0,
"pageTotal": 0,
"resultsTotal": 0,
"hasNextPage": true,
"hasPreviousPage": true,
"results": [
{},
{},
{}
]
}
The server could not understand the request due to invalid syntax.
- application/json
- Schema
- Example (from schema)
Schema
A URI reference [RFC3986] that identifies the problem type.
Possible values: [Bad request]
A short, human-readable summary of the problem type.
Possible values: [400]
The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem.
errors objectrequired
{
"type": "string",
"title": "Bad request",
"status": 400,
"detail": "string",
"instance": "string",
"errors": {}
}
Access is unauthorized.
- application/json
- Schema
- Example (from schema)
Schema
A URI reference [RFC3986] that identifies the problem type.
Possible values: [Unauthorized]
A short, human-readable summary of the problem type.
Possible values: [401]
The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem.
{
"type": "string",
"title": "Unauthorized",
"status": 401,
"detail": "string",
"instance": "string"
}