HydraCore
API by router

Worker

My Assignments

GET
/internal/v1/instances/{instance_id}/worker/me/assignments

Path Parameters

instance_id*Instance Id
Formatuuid

Query Parameters

channel_type*Channel Type
channel_address*Channel Address

Response Body

Successful Response

response?unknownapplication/json
Example Request
curl -X GET 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/worker/me/assignments?channel_type=string&channel_address=string'
Example Response
null

My Certs

GET
/internal/v1/instances/{instance_id}/worker/me/certs

Path Parameters

instance_id*Instance Id
Formatuuid

Query Parameters

channel_type*Channel Type
channel_address*Channel Address

Response Body

Successful Response

response?unknownapplication/json
Example Request
curl -X GET 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/worker/me/certs?channel_type=string&channel_address=string'
Example Response
null

My Shifts

GET
/internal/v1/instances/{instance_id}/worker/me/shifts

Path Parameters

instance_id*Instance Id
Formatuuid

Query Parameters

channel_type*Channel Type
channel_address*Channel Address

Response Body

Successful Response

response?unknownapplication/json
Example Request
curl -X GET 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/worker/me/shifts?channel_type=string&channel_address=string'
Example Response
null

Log My Hours

POST
/internal/v1/instances/{instance_id}/worker/me/timesheet

Path Parameters

instance_id*Instance Id
Formatuuid

Query Parameters

channel_type*Channel Type
channel_address*Channel Address

Request Body

application/json
  1. body
date*Date
Formatdate
description?string|null
hours*Hours
Range0 < value
job_id?|null
rate?number|null
shift_id?|null

Response Body

Successful Response

response?unknownapplication/json
Example Request
curl -X POST 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/worker/me/timesheet?channel_type=string&channel_address=string' \  -H 'Content-Type: application/json' \  -d '{  "date": "2019-08-24",  "hours": 1}'
Example Response
null

My Timesheets

GET
/internal/v1/instances/{instance_id}/worker/me/timesheets

Path Parameters

instance_id*Instance Id
Formatuuid

Query Parameters

channel_type*Channel Type
channel_address*Channel Address

Response Body

Successful Response

response?unknownapplication/json
Example Request
curl -X GET 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/worker/me/timesheets?channel_type=string&channel_address=string'
Example Response
null

Verify Worker Binding

POST
/internal/v1/instances/{instance_id}/worker/verify

Path Parameters

instance_id*Instance Id
Formatuuid

Request Body

application/json
  1. body
channel_address*Channel Address
channel_type*Channel Type
response*Response

Worker's verification response

Response Body

Successful Response

response?unknownapplication/json
Example Request
curl -X POST 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/worker/verify' \  -H 'Content-Type: application/json' \  -d '{  "channel_address": "string",  "channel_type": "string",  "response": "string"}'
Example Response
null