- 02 Dec 2020
- 2 Minutes to read
- Print
- PDF
Job Edit
- Updated on 02 Dec 2020
- 2 Minutes to read
- Print
- PDF
Edit existing Job
To edit a job, perform a PUT request to below URL and JSON request body example
https://api.daynurseries .co.uk/index.cfm/jobs/{jobid}/
Key | Required | Data Type | Description |
api_key | Yes | 40 character string | Member API Key / If you are a job provider this is the API Key of the member posting the job |
EITHER an 'Application Email' (job_contact_email) OR an 'Application URL' (job_contact_url) is required
| |||
job_contact_email | Yes if job_contact_url blank | 500 Character String | Not displayed but applications are sent to this address (please note job_contact_email & job_contact_url cannot be passed together) |
job_contact_url | Yes if job_contact_email blank | 1000 Character String | On a click of 'Apply for this Job' button the user will be forwarded to this URL (please note job_contact_url & job_contact_email cannot be passed together) please note the url must be the url for the application page for this job, not a generic job search or application page |
job_contact_name | Yes | 255 Character String | Displayed with job details |
job_admin_email | Yes | 500 Character String | A reminder will be sent to this email address before the job expires, to alert them if they wish to extend the job. |
partner_key | No | Unique identification key of Partner | |
job_pay_type_id | No (*see note regarding salary fields) | Integer | e.g. "Salary", "Wage". All data available from the pay types api: http://api.daynurseries .co.uk/index.cfm/jobs/pay_types Please use api_key from page-2 for each domain |
job_salary | No (*see note regarding salary fields) | 60 character string | e.g. "Negotiable" |
job_salary_to | No (*see note regarding salary fields) | Decimal (9,2) | e.g. "50000.00" |
job_salary_from | No (*see note regarding salary fields) | Decimal (9,2) | e.g. "20000.00" |
Job Salary Fields
Note the following validation:
job_pay_type_id is not submitted (pre 23 Feb 2017 API Integration/ Upgrade)
this presumes you are submitting just field job_salary which is required
job_pay_type_id is not submitted or not of value '1', '2' or 5' (post 23 Feb 2017 API Integration/ Upgrade)
If job_salary_from or job_salary_to or job_salary is submitted then it will error as a valid job_pay_type_id is required
If job_pay_type_id is '5' (Non Specific Salary)
job_salary is required
job_salary_from - should not be submitted (will error if submitted)
job_salary_to - should not be provided (will error if submitted)
If job_pay_type_id is '1' (per annum) or '2' (per hour)
job_salary_from - should be submitted
job_salary_to - should be submitted (if the same value as job_salary_to then still needs to be submitted)
job_salary is optional
Example API Request Body
API Response
The API will return a '200 Job (#000) successfully updated.' on success and 4xx on validation failure.
The response body will contain a JSON object of the job updated in the data key.