-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
bugSomething isn't workingSomething isn't working
Description
get_all_matter_custodians Doesn't Like Just the Defaults
The py42 documentation ( https://py42docs.code42.com/en/stable/methoddocs/legalhold.html ) for get_all_matter_custodians states that all of the parameters ( legal_hold_uid, user_uid, user, and active ) are optional. Not including the uid or user parameter generates the following error:
Fatal Error : Failure in HTTP call 400 Client Error: Bad Request for url: https://console.us.code42.com/api/LegalHoldMembership?activeState=ACTIVE&pgNum=1&pgSize=1000
Exiting... Please check the log file for details.
Executing the same call ( https://console.us.code42.com/api/LegalHoldMembership?activeState=ACTIVE&pgNum=1&pgSize=1000 ) from a browser results in:
[
{
name: "SYSTEM",
description: "Invalid request: SYSTEM com.code42.core.BuilderException: At least one criteria must be specified; holdMembershipUid, holdUid, userUid, or userSearch"
}
]
Steps to Reproduce
- Initialize the SDK
- Make the request:
legalhold_users = sdk.legalhold.get_all_matter_custodians(active=True)
Expected Behavior
Return all of the legal hold users.
Actual Behavior
Fatal Error : Failure in HTTP call 400 Client Error: Bad Request for url: https://console.us.code42.com/api/LegalHoldMembership?activeState=ACTIVE&pgNum=1&pgSize=1000 Exiting... Please check the log file for details.
Basic Information
- py42 version: 1.9.0
- python version: 3.7.6
- operating system: MacOS 10.15.7
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working