const body = `{
"tenant": {},
"tenantId": "string",
"organization": {},
"organizationId": "string",
"sentTo": "string",
"deletedAt": "2018-11-21T06:20:32.232Z",
"createdAt": "2018-11-21T06:20:32.232Z",
"updatedAt": "2018-11-21T06:20:32.232Z",
"id": "string",
"isActive": true,
"isArchived": false,
"archivedAt": "2018-11-21T06:20:32.232Z",
"name": "string",
"identifier": "string",
"description": "string",
"contentHtml": {},
"employee": {
"deletedAt": "2018-11-21T06:20:32.232Z",
"createdAt": "2018-11-21T06:20:32.232Z",
"updatedAt": "2018-11-21T06:20:32.232Z",
"id": "string",
"isActive": true,
"isArchived": false,
"archivedAt": "2018-11-21T06:20:32.232Z",
"tenantId": "string",
"organizationId": "string",
"short_description": "string",
"description": "string",
"startedWorkOn": "2024-01-15T09:30:00Z",
"endWork": "2024-01-15T09:30:00Z",
"payPeriod": "WEEKLY",
"billRateValue": 0,
"minimumBillingRate": 0,
"billRateCurrency": "USD",
"reWeeklyLimit": 0,
"offerDate": "2024-01-15T09:30:00Z",
"acceptDate": "2024-01-15T09:30:00Z",
"rejectDate": "2024-01-15T09:30:00Z",
"employeeLevel": "string",
"anonymousBonus": true,
"averageIncome": 0,
"averageBonus": 0,
"totalWorkHours": 0,
"averageExpenses": 0,
"show_anonymous_bonus": true,
"show_average_bonus": true,
"show_average_expenses": true,
"show_average_income": true,
"show_billrate": true,
"show_payperiod": true,
"show_start_work_on": true,
"isJobSearchActive": true,
"linkedInUrl": "string",
"facebookUrl": "string",
"instagramUrl": "string",
"twitterUrl": "string",
"githubUrl": "string",
"gitlabUrl": "string",
"upworkUrl": "string",
"stackoverflowUrl": "string",
"isVerified": true,
"isVetted": true,
"totalJobs": 0,
"jobSuccess": 0,
"profile_link": "string",
"isTrackingEnabled": true,
"isOnline": true,
"isAway": false,
"isTrackingTime": true,
"allowScreenshotCapture": true,
"allowManualTime": true,
"allowModifyTime": true,
"allowDeleteTime": true,
"allowAgentAppExit": true,
"allowLogoutFromAgentApp": true,
"trackKeyboardMouseActivity": true,
"trackAllDisplays": true,
"upworkId": "string",
"linkedInId": "string",
"userId": "string",
"contactId": "string",
"organizationPositionId": "string"
},
"employeeId": "string",
"isDefault": true
}`;
const response = await fetch('http://localhost:3000/api/dashboard/string', {
method: 'PUT',
headers: {
'Authorization': 'Bearer YOUR_TOKEN',
'Content-Type': 'application/json',
},
body,
});
const data = await response.text();