Employer API Create Location
Employer API Create Location
The employer CREATE LOCATION function creates a new job location in the authorised account.
URL
https://apprenticeshipcentral.com.au/api/employer/create/
Request
type
(string) –location
. Required.fields
(object) – fields used to populate the new item with informationlocation_primary
(bool) – the main location.location_address
(string) – location address.location_suburb
(string) – location suburb (recommended).location_region
(string) – the region in slug format (required).location_state
(string) – state in slug format (required).location_postcode
(char4) – post code.agency_employer_id
(int) – for caller use (not used by AC)
Response
response
success_count
(int) – set to 1 if the query ran without errors.error_count
(int) – set to 1 if there was a query error.
data
(int) – the newly created location id.
Errors
201 – No valid type passed.
- 204 – Database insert error – these should be reported.
- 205 – No fields were passed.
Notes
At this point, only limited data integrity checking is performed on the create operation, so it it is up to the developer to ensure that consistent data is provided in the fields.
Return to Employer API Create