Appearance
Features supported
- Support asynchronous invocation: NO
- Supports paging: NO
- Field selection: NO
- Supplemental data: NO
curl --request GET \
--url 'https://api.fareclock.com/departments?id=123' \
--header 'Authorization: Token YOUR_API_KEY' \
--header 'Accept: application/json'Query String
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | No | Numeric ID of the department |
{
"results": [
{
"id": 200,
"name": "Department #1",
"active": true,
"payrollId": "dept-1",
"created": "2020-06-02T09:00:00.000Z",
"modified": "2020-06-02T09:00:00.000Z"
}
]
}curl --request POST \
--url 'https://api.fareclock.com/departments' \
--header 'Authorization: Token YOUR_API_KEY' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"name": "Department #1",
"active": true,
"payrollId": "dept-1"
}'{
"name": "Department #1",
"active": true,
"payrollId": "dept-1"
}{
"results": [
{
"id": 200,
"name": "Department #1",
"active": true,
"payrollId": "dept-1",
"created": "2020-06-02T09:00:00.000Z",
"modified": "2020-06-02T09:00:00.000Z"
}
]
}curl --request GET \
--url 'https://api.fareclock.com/departments/123' \
--header 'Authorization: Token YOUR_API_KEY' \
--header 'Accept: application/json'Path
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Numeric ID of the department |
{
"results": [
{
"id": 200,
"name": "Department #1",
"active": true,
"payrollId": "dept-1",
"created": "2020-06-02T09:00:00.000Z",
"modified": "2020-06-02T09:00:00.000Z"
}
]
}curl --request PUT \
--url 'https://api.fareclock.com/departments/123' \
--header 'Authorization: Token YOUR_API_KEY' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"name": "Department #1",
"active": true,
"payrollId": "dept-1"
}'Path
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Numeric ID of the department |
{
"name": "Department #1",
"active": true,
"payrollId": "dept-1"
}{
"results": [
{
"id": 200,
"name": "Department #1",
"active": true,
"payrollId": "dept-1",
"created": "2020-06-02T09:00:00.000Z",
"modified": "2020-06-02T09:00:00.000Z"
}
]
}