ScopedUserRole API does not match swagger doc

Swagger doc: https://demo.octopus.com/swaggerui/index.html#/ScopedUserRole

List of ScopedUserRole in Spaces-1 https://demo.octopus.com/api/Spaces-1/scopeduserroles

Swagger doc shows we can get single ScopedUserRole by appending "
Id": https://demo.octopus.com/api/Spaces-1/scopeduserroles/scopeduserroles-administrators-system

However, it does not work and returns:

{
“ErrorMessage”: “Attempted to view a document with Id scopeduserroles-administrators-system and SpaceId that doesn’t match the current space context”
}

Hi Tony,

Thanks for getting in touch!

The swagger doc is still a work in progress in places. For this particular call, the addition of /Spaces-1/ is redundant.

If you drop that it should start working as desired e.g. https://demo.octopus.com/api/scopeduserroles/scopeduserroles-administrators-system

I hope this helps, please let me know if you have any further questions.

Regards,
Paul

1 Like