WebWork Tracker REST API V2 provides programmatic access to your workspace data. This API allows you to manage members, projects, tasks, time tracking, leaves, and expenses. Access is restricted to workspace owners and executive managers only.
/
Update Contract
WebWork Tracker REST API V2 (2.0.0)
Overview
Languages
Servers
Production Server
https://api.webwork-tracker.com/api/v2/
Request
Retrieve all contracts (project-member assignments) in your workspace. Contracts are automatically filtered based on your role and permissions: Role-based access: Owners and Executive Managers see all contracts; Project Managers see contracts for managed projects + their own contracts; Team Managers see contracts for managed teams + their own contracts; Regular Users see only their own contracts; Clients see only contracts for projects they have access to. Rate information is only visible if you have permission to view rates AND the project is billable. You can apply additional filters (project_id, user_id, status) to narrow down results.
Security
oauth2 or apiKey
- Production Serverhttps://api.webwork-tracker.com/api/v2/contracts
- cURL
- JS
- Python
- PHP
- Go
- Java 8
- C#
- C++
curl -i -X GET \
'https://api.webwork-tracker.com/api/v2/contracts?workspace_id=1' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "success": true, "message": "Contracts retrieved successfully", "data": [ { … } ], "meta": { "api_version": "2.0.0", "timestamp": "2019-08-24T14:15:22Z" }, "pagination": { "current_page": 1, "per_page": 20, "total": 50, "last_page": 3 } }
Bodyapplication/jsonrequired
Screenshot mode
Enum"full""blurred""no_preview""no_screenshot""background_blurred""video_full""video_blurred""video_full_silent""video_blurred_silent"
Example: "full"
- Production Serverhttps://api.webwork-tracker.com/api/v2/contracts
- cURL
- JS
- Python
- PHP
- Go
- Java 8
- C#
- C++
curl -i -X POST \
https://api.webwork-tracker.com/api/v2/contracts \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"project_id": 100,
"user_id": 100,
"weekly_hours_limit": 40,
"screenshots": "full",
"rate": 50
}'Response
application/json
{ "success": true, "message": "Contract created successfully", "data": { "id": 100, "project_id": 100, "project_name": "Marketing Campaign Q1", "project_icon": "project-icon-1", "user_id": 100, "user_firstname": "John", "user_lastname": "Doe", "user_email": "john.doe@example.com", "user_role": "Regular User", "weekly_hours_limit": 40, "screenshots": "full", "screenshots_label": "Screenshot on", "rate": 50, "rate_type": 1, "status": "active", "currency": "USD", "created_at": "2024-01-15T09:00:00Z", "updated_at": "2024-01-15T09:00:00Z" }, "meta": { "api_version": "2.0.0", "timestamp": "2019-08-24T14:15:22Z" } }
- Production Serverhttps://api.webwork-tracker.com/api/v2/contracts/{contractId}
- cURL
- JS
- Python
- PHP
- Go
- Java 8
- C#
- C++
curl -i -X GET \
'https://api.webwork-tracker.com/api/v2/contracts/100?workspace_id=1' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "success": true, "message": "Contract retrieved successfully", "data": { "id": 100, "project_id": 100, "project_name": "Marketing Campaign Q1", "project_icon": "project-icon-1", "user_id": 100, "user_firstname": "John", "user_lastname": "Doe", "user_email": "john.doe@example.com", "user_role": "Regular User", "weekly_hours_limit": 40, "screenshots": "full", "screenshots_label": "Screenshot on", "rate": 50, "rate_type": 1, "status": "active", "currency": "USD", "created_at": "2024-01-15T09:00:00Z", "updated_at": "2024-01-15T09:00:00Z" }, "meta": { "api_version": "2.0.0", "timestamp": "2019-08-24T14:15:22Z" } }
Bodyapplication/jsonrequired
Screenshot mode
Enum"full""blurred""no_preview""no_screenshot""background_blurred""video_full""video_blurred""video_full_silent""video_blurred_silent"
Example: "blurred"
- Production Serverhttps://api.webwork-tracker.com/api/v2/contracts/{contractId}
- cURL
- JS
- Python
- PHP
- Go
- Java 8
- C#
- C++
curl -i -X PUT \
https://api.webwork-tracker.com/api/v2/contracts/100 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"weekly_hours_limit": 40,
"screenshots": "blurred",
"rate": 55,
"status": "active"
}'Response
application/json
{ "success": true, "message": "Contract retrieved successfully", "data": { "id": 100, "project_id": 100, "project_name": "Marketing Campaign Q1", "project_icon": "project-icon-1", "user_id": 100, "user_firstname": "John", "user_lastname": "Doe", "user_email": "john.doe@example.com", "user_role": "Regular User", "weekly_hours_limit": 40, "screenshots": "full", "screenshots_label": "Screenshot on", "rate": 50, "rate_type": 1, "status": "active", "currency": "USD", "created_at": "2024-01-15T09:00:00Z", "updated_at": "2024-01-15T09:00:00Z" }, "meta": { "api_version": "2.0.0", "timestamp": "2019-08-24T14:15:22Z" } }
- Production Serverhttps://api.webwork-tracker.com/api/v2/contracts/{contractId}
- cURL
- JS
- Python
- PHP
- Go
- Java 8
- C#
- C++
curl -i -X DELETE \
https://api.webwork-tracker.com/api/v2/contracts/100 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"workspace_id": 1
}'Response
application/json
{ "success": true, "message": "Contract deleted successfully", "data": null, "meta": { "api_version": "2.0.0", "timestamp": "2019-08-24T14:15:22Z" } }