Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error using CategoriesEnum #38

Open
ahmontero opened this issue Jul 12, 2023 · 0 comments
Open

Error using CategoriesEnum #38

ahmontero opened this issue Jul 12, 2023 · 0 comments

Comments

@ahmontero
Copy link

This code

from MergePythonSDK.hris.model.end_user_details_request import EndUserDetailsRequest

 end_user_details_request = EndUserDetailsRequest(
    end_user_email_address=email,
    end_user_organization_name=company_name,
    end_user_origin_id=str(user_id),
    categories=["ats"],
)

Raises this error:

Status Code: 400
Reason: Bad Request
HTTP response body: {"categories":{"0":["\"{'value': 'ats'}\" is not a valid choice."]}}

I have not found the way to use properly the CategoriesEnum class. I tried things like CategoriesEnum.ATS, CategoriesEnum('ats'), CategoriesEnum().ATS and I always get the above error.

I am using the latest library version: 2.2.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant