class Retentiongrid::Unauthorized

The API operation wasn’t authorized. This happens if you didn’t set the user and password for a write operation.