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

Question: When to expect "organization_id" & "organization_name" properties in a webhook event JSON object? #537

Open
jehrenzweig-pi opened this issue Jan 11, 2024 · 0 comments

Comments

@jehrenzweig-pi
Copy link

jehrenzweig-pi commented Jan 11, 2024

When I create a new job in Greenhouse, I'm able to see a "Job created" webhook event JSON object that looks like this:

{
    "organization_id": 8675309000,
    "organization_name": "Tommy Tutone Inc.",
    "action": "job_created",
    "payload":
    {
        "job":
        {
            "id": 1234567890,
            "name": "Some New Job",
            <etc>
        }
    }
}

However, the root-level organization_id & organization_name properties that appear in the HTTP response aren't mentioned in the "Job created" webhook event docs:

"Job created" webhook event example
{
  "action": "job_created",
  "payload": {
    "job": {
      "id": 371417,
      "name": "Software Engineer",
      "requisition_id": null,
      "notes": "Looking for the best!",
      "confidential": false,
      "job_post_id": 2154,
      "status": "open",
      "created_at": "2016-10-20T18:16:32Z",
      "opened_at": "2016-10-20T18:16:32Z",
      "closed_at": null,
      "departments": [
        {
          "id": 7,
          "name": "Technology",
          "external_id": "ex-dept-1"
        }
      ],
      "offices": [
        {
          "id": 13,
          "name": "New York City",
          "location": "New York, NY",
          "external_id": "ex-office-1"
        },
        {
          "id": 14,
          "name": "St. Louis",
          "location": null,
          "external_id": null
        }
      ],
      "hiring_team": {
        "hiring_managers": [
          {
            "user_id": 1234,
            "employee_id": "abc-123"
          }
        ],
        "sourcers": [],
        "recruiters": [
          {
            "user_id": 2345,
            "employee_id": null
          },
          {
            "user_id": 3456,
            "employee_id": "abc-234"
          }
        ],
        "coordinators": []
      },
      "openings": [
        {
          "id": 1234,
          "opening_id": "abc-1",
          "custom_fields": []
        },
        {
          "id": 1235,
          "opening_id": "abc-2",
          "custom_fields": []
        }
      ],
      "custom_fields": {
        "approved": {
          "name": "Approved",
          "type": "boolean",
          "value": true
        },
        "employment_type": {
          "name": "Employment Type",
          "type": "single_select",
          "value": "Full-time"
        },
        "salary_range": {
          "name": "SalaryRange",
          "type": "currency_range",
          "value": {
            "unit": "USD",
            "min_value": "10000.0",
            "max_value": "20000.0"
          }
        }
      }
    }
  }
}

Is this a bug in the documentation? If so, I'm happy to close this issue & create a new one with a proper write-up. I just wanted to be sure that I'm looking in the right place for the docs, before I took that extra step. Thanks in advance!

@jehrenzweig-pi jehrenzweig-pi changed the title Question: When to expect "organization_id" & "organization_name" properties in a Harvest API HTTP response body? Question: When to expect "organization_id" & "organization_name" properties in a webhook event JSON object? Jan 11, 2024
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