try endpoint: https://octopusurl/api/releases?ids=Releases-6191
, it returns all releases which can take long time to go through all the pages.
{
"ItemType": "Release",
"TotalResults": 5828,
"ItemsPerPage": 30,
"NumberOfPages": 195,
"LastPageNumber": 194,
"Items": [
{...
However, the template says it supports ids filter
“Template”: “/api/Spaces-1/releases{?skip,take,ids}”,
ids filter works fine for other resource type like Tasks
Hi @shared.services ,
Thank you for getting in touch, and welcome! I appreciate your clear and concise bug report, though my apologies for the confusion caused. I’ve been able to reproduce this and raised it as an issue at the following link for you to track.
opened 02:17AM - 20 Oct 22 UTC
kind/bug
state/triage
team/core-platform
### Team
- [X] I've assigned a team label to this issue
### Severity
One repo… rt
### Version
2022.4.3913-hotfix.4575
### Latest Version
_No response_
### What happened?
The /api/releases endpoint has an ids parameter to filter based on ID (`"Template": "/api/Spaces-323/releases{?skip,take,ids}",`), however this endpoint does not filter out releases when using ?ids=Releases-Id filter.
As mentioned in the report, other endpoints do honor the ids filter, e.g. `/api/tasks?ids=ServerTasks-123`
### Reproduction
1. Create two unique releases taking note of each Releases-Id
2. Attempt to use the ?ids= filter on the /api/releases endpoint (e.g. OctoURL/api/releases?ids=Releases-123)
3. See the results don't filter out releases
### Error and Stacktrace
_No response_
### More Information
Reported here: https://help.octopus.com/t/ids-filter-ignored-by-api-when-get-releases/28487
### Workaround
_No response_
Please let us know if you have any questions or concerns going forward.
Best regards,
Kenny
system
(system)
Closed
20 November 2022 02:19
4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.