Appearance
Create Contractor
Create a new contractor record. Requires the CONTRACTOR_MANAGEMENT feature flag and ADMIN or MANAGE_CONTRACTORS permissions.
Parameters
| name * are required parameters | data type | description |
|---|---|---|
body.name* | string | The contractor's display name |
body.email | string | The contractor's email address |
body.phone | string | The contractor's phone number |
body.company | string | The contractor's company name |
Return Value
The created contractor record.
Examples
bash
curl -X POST "https://app.wombat.software/api/{targetPath}/contractor" \
-H "Content-Type: application/json" \
-H "Authentication: Bearer ..." \
-d '{"name": "Acme Contractors Ltd.", "email": "contact@acme.com"}'ENDPOINTS
post
/api/{targetPath}/contractor