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

Getting a POST to /v2/scheduled_interviews fails without a helpful error message #468

Open
spaugh opened this issue Jul 1, 2022 · 2 comments

Comments

@spaugh
Copy link

spaugh commented Jul 1, 2022

I cannot, for the life of me, figure out how to create a scheduled interview.

This is what my request looks like in Python:

requests.post(
    url="https://harvest.greenhouse.io/v2/scheduled_interviews",
    data={
        "application_id": application_id,
        "interview_id": interview_id,
        "interviewers": [
            {"user_id": user_id, "response_status": "accepted"}
        ],
        "start": "2022-12-12T13:15:00Z",
        "end": "2022-12-12T13:55:00Z",
        "external_event_id": "some_external_event_id" ,
    },
    headers = {
        "On-Behalf-Of": str(interviewer["id"]),
        "Content-Type": "application/json",
        "Authorization": "Basic ..."
    }
)

But it fails with Bad Request for url: https://harvest.greenhouse.io/v1/scheduled_interviews, providing no info as to what's wrong with my request.

@Dampolo03
Copy link

Hi @spaugh, currently facing a similar issue. How were you able to resolve this? Thanks.

@Dampolo03
Copy link

Got it now. Nvm. Was supposed to pass the dictionary as body parameters.

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

2 participants