Skip to main content

GET /utils/{id}

Get item by ID.

Retrieves the details of a specific item by its unique identifier, ensuring the requester has appropriate ownership or administrative permissions.

Endpoint

GET /utils/{id}

Parameters

NameTypeDescription
sessionSessionDepThe database session dependency used to perform the lookup operation.
current_userCurrentUserThe authenticated user object used to verify ownership or superuser status.
iduuid.UUIDThe unique UUID of the item to be retrieved from the database.

Response

StatusDescription
200The item was successfully found and the user has permission to view it. Returns ItemPublic.
404No item was found matching the provided ID. Returns JSON.
403The authenticated user is not a superuser and does not own the requested item. Returns JSON.