JavaScript
import BlueHive from '@bluehive/sdk'; const client = new BlueHive({ apiKey: 'My API Key', }); const employer = await client.employers.create({ address: { city: 'city', state: 'state', street1: 'street1', zipCode: 'zipCode' }, email: '[email protected]', name: 'name', phones: [{ number: 'number' }], }); console.log(employer._id);
{ "_id": "<string>", "name": "<string>", "address": {}, "phones": [ {} ], "email": "<string>", "website": "<string>", "onsiteClinic": true, "demo": true, "employeeConsent": true, "createdAt": "<string>", "createdBy": "<string>" }
API key for accessing BlueHive API endpoints. Format: "ApiKey " or "Bearer "
200
Show child attributes
Default Response
Was this page helpful?