API by router
Staff
GET
instance_id*Instance IdFormat
uuidcustomer_id*Customer IdFormat
uuidskills?|Comma-separated skills to filter by
induction_site?|Site induction required
cert_type?|Certification type required (checks expiry)
status?string|nulltier?|nullpage?PageRange
1 <= valueDefault
1per_page?Per PageRange
1 <= value <= 200Default
50Successful Response
application/json- response
page*Pageper_page*Per Pagestaff*array<>total*Totalcurl -X GET 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/staff?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
{ "page": 0, "per_page": 0, "staff": [ { "availability_notes": "string", "certifications": [], "created_at": "2019-08-24T14:15:22Z", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "email": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "inductions": [], "name": "string", "phone": "string", "role": "string", "skills": [], "status": "string", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "tier": 0, "updated_at": "2019-08-24T14:15:22Z" } ], "total": 0}POST
instance_id*Instance IdFormat
uuidcustomer_id*Customer IdFormat
uuidapplication/json- body
availability_notes?string|nullcertifications?array<>email?|nullinductions?array<>name*NameLength
length <= 200phone?|nullrole?RoleOne of: ('employee', 'contractor', 'supplier', 'customer_contact')
Default
"employee"skills?array<string>tier?TierRange
1 <= value <= 5Default
1Successful Response
application/json- response
availability_notes?string|nullcertifications?array<unknown>Default
[]created_at*Created AtFormat
date-timecustomer_id*Customer IdFormat
uuidemail?string|nullid*IdFormat
uuidinductions?array<unknown>Default
[]name*Namephone?string|nullrole*Roleskills?array<unknown>Default
[]status*Statustenant_id*Tenant IdFormat
uuidtier*Tierupdated_at*Updated AtFormat
date-timecurl -X POST 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/staff?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'Example Response
{ "availability_notes": "string", "certifications": [], "created_at": "2019-08-24T14:15:22Z", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "email": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "inductions": [], "name": "string", "phone": "string", "role": "string", "skills": [], "status": "string", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "tier": 0, "updated_at": "2019-08-24T14:15:22Z"}GET
instance_id*Instance IdFormat
uuidcustomer_id*Customer IdFormat
uuidwithin_days?Within DaysRange
1 <= value <= 365Default
42Successful Response
response?unknownapplication/jsoncurl -X GET 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/staff/expiring-certs?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
nullPOST
instance_id*Instance IdFormat
uuidcustomer_id*Customer IdFormat
uuidapplication/json- body
staff*array<>Items
items <= 200Successful Response
application/json- response
created*Createderrors?array<string>Default
[]curl -X POST 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/staff/import?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{ "staff": [ { "name": "string" } ]}'Example Response
{ "created": 0, "errors": []}GET
instance_id*Instance IdFormat
uuidperson_id*Person IdFormat
uuidSuccessful Response
application/json- response
availability_notes?string|nullcertifications?array<unknown>Default
[]created_at*Created AtFormat
date-timecustomer_id*Customer IdFormat
uuidemail?string|nullid*IdFormat
uuidinductions?array<unknown>Default
[]name*Namephone?string|nullrole*Roleskills?array<unknown>Default
[]status*Statustenant_id*Tenant IdFormat
uuidtier*Tierupdated_at*Updated AtFormat
date-timecurl -X GET 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/staff/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
{ "availability_notes": "string", "certifications": [], "created_at": "2019-08-24T14:15:22Z", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "email": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "inductions": [], "name": "string", "phone": "string", "role": "string", "skills": [], "status": "string", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "tier": 0, "updated_at": "2019-08-24T14:15:22Z"}PATCH
instance_id*Instance IdFormat
uuidperson_id*Person IdFormat
uuidapplication/json- body
availability_notes?string|nullcertifications?array<>|nullemail?|nullinductions?array<>|nullname?|nullphone?|nullrole?string|nullskills?array<string>|nullstatus?string|nulltier?|nullSuccessful Response
application/json- response
availability_notes?string|nullcertifications?array<unknown>Default
[]created_at*Created AtFormat
date-timecustomer_id*Customer IdFormat
uuidemail?string|nullid*IdFormat
uuidinductions?array<unknown>Default
[]name*Namephone?string|nullrole*Roleskills?array<unknown>Default
[]status*Statustenant_id*Tenant IdFormat
uuidtier*Tierupdated_at*Updated AtFormat
date-timecurl -X PATCH 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/staff/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "availability_notes": "string", "certifications": [], "created_at": "2019-08-24T14:15:22Z", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "email": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "inductions": [], "name": "string", "phone": "string", "role": "string", "skills": [], "status": "string", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "tier": 0, "updated_at": "2019-08-24T14:15:22Z"}GET
HTTPBearerheader
AuthorizationBearer <token>customer_id*Customer IdFormat
uuidskills?string|nullstatus?string|nullpage?PageRange
1 <= valueDefault
1per_page?Per PageRange
1 <= value <= 200Default
50X-Api-Key?string|nullSuccessful Response
application/json- response
page*Pageper_page*Per Pagestaff*array<>total*Totalcurl -X GET 'https://example.com/v1/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/staff'Example Response
{ "page": 0, "per_page": 0, "staff": [ { "availability_notes": "string", "certifications": [], "created_at": "2019-08-24T14:15:22Z", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "email": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "inductions": [], "name": "string", "phone": "string", "role": "string", "skills": [], "status": "string", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "tier": 0, "updated_at": "2019-08-24T14:15:22Z" } ], "total": 0}POST
HTTPBearerheader
AuthorizationBearer <token>customer_id*Customer IdFormat
uuidX-Api-Key?string|nullapplication/json- body
staff*array<>Items
items <= 200Successful Response
application/json- response
created*Createderrors?array<string>Default
[]curl -X POST 'https://example.com/v1/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/staff/import' \ -H 'Content-Type: application/json' \ -d '{ "staff": [ { "name": "string" } ]}'Example Response
{ "created": 0, "errors": []}