Overview
This node, named "Push Job Offers to Database," is designed to add job offer data into a database via an API call. It is useful in scenarios where you want to automate the process of collecting and storing multiple job offers from various sources into a centralized database for further processing, analysis, or display.
Practical examples include:
- Aggregating job listings from different recruitment platforms into one database.
- Automatically updating a company’s internal job board with new job offers.
- Collecting job offers submitted through forms or other integrations and pushing them to a backend system.
The node performs a POST request to an external API endpoint, sending the job offer details along with required authentication credentials.
Properties
| Name | Meaning |
|---|---|
| Operation | The action to perform; here it supports only "Post" which pushes job offers to the database. |
| Job Offer Details | A collection allowing multiple job offers to be added. Each job offer includes: |
| - Job Title | The title of the job offer (string, required). |
| - Company Name | The name of the company offering the job (string, required). |
| - Location | The location of the job offer (string, required). |
| - Description | A description of the job offer (string, required). |
Output
The node outputs the response from the API call on its main output. The exact structure of the JSON output depends on the API response but typically would include confirmation of the job offers being successfully stored or error information if the operation failed.
No binary data output is indicated by the source code.
Dependencies
- Requires an API key credential and a user identifier credential to authenticate requests to the external API at
https://api.mona-ai.cloud/database/pushJobOffersToDatabase. - The node configuration must include these credentials to authorize the POST request.
- The external service is the Mona AI cloud database API.
Troubleshooting
Common issues:
- Missing or invalid API credentials will cause authentication failures.
- Improperly formatted job offer data (e.g., missing required fields) may result in API errors.
- Network connectivity problems can prevent successful API calls.
Error messages:
- Authentication errors typically indicate invalid or missing API keys; verify credentials are correctly set.
- Validation errors from the API suggest required job offer fields are incomplete or malformed; ensure all required fields are provided.
- Timeout or network errors require checking internet connection and API availability.
Links and References
- Mona AI API Documentation (assumed, based on the API URL)
- n8n documentation on Creating Custom Nodes