Appearance
Features supported
- Support asynchronous invocation: NO
- Supports paging: NO
- Field selection: NO
- Supplemental data: NO
curl --request GET \
--url 'https://api.fareclock.com/timeoffcodes?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 time off code |
{
"results": [
{
"id": 6685030696878080,
"name": "Vacation",
"active": true,
"payrollId": "VAC",
"sortOrder": 1,
"isPaid": true,
"allowWorkerRequest": true,
"created": "2020-06-02T09:00:00.000Z",
"modified": "2020-06-02T09:00:00.000Z"
}
]
}curl --request POST \
--url 'https://api.fareclock.com/timeoffcodes' \
--header 'Authorization: Token YOUR_API_KEY' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"name": "Vacation",
"active": true,
"payrollId": "VAC",
"sortOrder": 1,
"isPaid": true,
"allowWorkerRequest": true
}'{
"name": "Vacation",
"active": true,
"payrollId": "VAC",
"sortOrder": 1,
"isPaid": true,
"allowWorkerRequest": true
}{
"results": [
{
"id": 6685030696878080,
"name": "Vacation",
"active": true,
"payrollId": "VAC",
"sortOrder": 1,
"isPaid": true,
"allowWorkerRequest": true,
"created": "2020-06-02T09:00:00.000Z",
"modified": "2020-06-02T09:00:00.000Z"
}
]
}curl --request GET \
--url 'https://api.fareclock.com/timeoffcodes/123' \
--header 'Authorization: Token YOUR_API_KEY' \
--header 'Accept: application/json'Path
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Numeric ID of the time off code |
{
"results": [
{
"id": 6685030696878080,
"name": "Vacation",
"active": true,
"payrollId": "VAC",
"sortOrder": 1,
"isPaid": true,
"allowWorkerRequest": true,
"created": "2020-06-02T09:00:00.000Z",
"modified": "2020-06-02T09:00:00.000Z"
}
]
}curl --request PUT \
--url 'https://api.fareclock.com/timeoffcodes/123' \
--header 'Authorization: Token YOUR_API_KEY' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"name": "Vacation",
"active": true,
"payrollId": "VAC",
"sortOrder": 1,
"isPaid": true,
"allowWorkerRequest": true
}'Path
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Numeric ID of the time off code |
{
"name": "Vacation",
"active": true,
"payrollId": "VAC",
"sortOrder": 1,
"isPaid": true,
"allowWorkerRequest": true
}{
"results": [
{
"id": 6685030696878080,
"name": "Vacation",
"active": true,
"payrollId": "VAC",
"sortOrder": 1,
"isPaid": true,
"allowWorkerRequest": true,
"created": "2020-06-02T09:00:00.000Z",
"modified": "2020-06-02T09:00:00.000Z"
}
]
}