# Create dashboard widget.

`POST /api/dashboard-widget`

Authentication (security requirement alternatives):

```json
[
  {
    "bearer": []
  }
]
```

- bearer: http (bearer), header JWT. Enter JWT token

Request body: application/json (required)

Type: object

Schema: [CreateDashboardWidgetDTO](https://sourcey-gauzy.pages.dev/api-reference/models/createdashboardwidgetdto/index.md)

- `tenant` (optional)
  Type: object

- `tenantId` (optional)
  Type: string

- `organization` (required)
  Type: object

- `organizationId` (optional)
  Type: string

- `sentTo` (optional)
  Type: string

- `deletedAt` (optional)
  Type: string, date-time
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `createdAt` (optional)
  Type: string, date-time
  
  The creation timestamp of the entity.
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `updatedAt` (optional)
  Type: string, date-time
  
  The last update timestamp of the entity.
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `id` (optional)
  Type: string

- `isActive` (optional)
  Type: boolean
  
  default: true

- `isArchived` (optional)
  Type: boolean
  
  default: false

- `archivedAt` (optional)
  Type: string, date-time
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `name` (required)
  Type: string

- `order` (optional)
  Type: number

- `size` (optional)
  Type: number

- `color` (optional)
  Type: string

- `isVisible` (optional)
  Type: boolean

- `options` (optional)
  Type: object

- `dashboard` (optional)
  Reference: [Dashboard](https://sourcey-gauzy.pages.dev/api-reference/models/dashboard/index.md); Type: object

- `dashboardId` (optional)
  Type: string

- `employee` (optional)
  Reference: [Employee](https://sourcey-gauzy.pages.dev/api-reference/models/employee/index.md); Type: object

- `employeeId` (optional)
  Type: string

- `project` (optional)
  Reference: [OrganizationProject](https://sourcey-gauzy.pages.dev/api-reference/models/organizationproject/index.md); Type: object

- `projectId` (optional)
  Type: string

- `organizationTeam` (optional)
  Reference: [OrganizationTeam](https://sourcey-gauzy.pages.dev/api-reference/models/organizationteam/index.md); Type: object

- `organizationTeamId` (optional)
  Type: string

Responses:

- 201: The record has been successfully created.

- 401: Unauthorized

- 403: Forbidden

## Examples

### cURL

```bash
curl -X POST 'http://localhost:3000/api/dashboard-widget' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "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",
  "order": 0,
  "size": 0,
  "color": "string",
  "isVisible": true,
  "options": {},
  "dashboard": {
    "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",
    "name": "string",
    "identifier": "string",
    "description": "string",
    "contentHtml": {},
    "isDefault": true,
    "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"
  },
  "dashboardId": "string",
  "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",
  "project": {
    "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",
    "name": "string",
    "startDate": "string",
    "endDate": "string",
    "billing": "FLAT_FEE",
    "currency": "USD",
    "public": true,
    "owner": "CLIENT",
    "taskListType": "GRID",
    "code": "string",
    "description": "string",
    "color": "string",
    "billable": true,
    "billingFlat": true,
    "openSource": true,
    "projectUrl": "string",
    "openSourceProjectUrl": "string",
    "budget": 0,
    "budgetType": "hours",
    "imageUrl": "string",
    "icon": "string",
    "status": "open",
    "isTasksAutoSync": true,
    "isTasksAutoSyncOnLabel": true,
    "syncTag": "string",
    "archiveTasksIn": 0,
    "closeTasksIn": 0,
    "organizationContactId": "string",
    "imageId": "string",
    "defaultAssigneeId": "string"
  },
  "projectId": "string",
  "organizationTeam": {
    "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",
    "name": "string",
    "color": "string",
    "emoji": "string",
    "teamSize": "string",
    "logo": "string",
    "prefix": "string",
    "shareProfileView": true,
    "requirePlanToTrack": false,
    "public": false,
    "profile_link": "string",
    "imageId": "string"
  },
  "organizationTeamId": "string"
}'
```

### JavaScript

```javascript
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",
  "order": 0,
  "size": 0,
  "color": "string",
  "isVisible": true,
  "options": {},
  "dashboard": {
    "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",
    "name": "string",
    "identifier": "string",
    "description": "string",
    "contentHtml": {},
    "isDefault": true,
    "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"
  },
  "dashboardId": "string",
  "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",
  "project": {
    "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",
    "name": "string",
    "startDate": "string",
    "endDate": "string",
    "billing": "FLAT_FEE",
    "currency": "USD",
    "public": true,
    "owner": "CLIENT",
    "taskListType": "GRID",
    "code": "string",
    "description": "string",
    "color": "string",
    "billable": true,
    "billingFlat": true,
    "openSource": true,
    "projectUrl": "string",
    "openSourceProjectUrl": "string",
    "budget": 0,
    "budgetType": "hours",
    "imageUrl": "string",
    "icon": "string",
    "status": "open",
    "isTasksAutoSync": true,
    "isTasksAutoSyncOnLabel": true,
    "syncTag": "string",
    "archiveTasksIn": 0,
    "closeTasksIn": 0,
    "organizationContactId": "string",
    "imageId": "string",
    "defaultAssigneeId": "string"
  },
  "projectId": "string",
  "organizationTeam": {
    "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",
    "name": "string",
    "color": "string",
    "emoji": "string",
    "teamSize": "string",
    "logo": "string",
    "prefix": "string",
    "shareProfileView": true,
    "requirePlanToTrack": false,
    "public": false,
    "profile_link": "string",
    "imageId": "string"
  },
  "organizationTeamId": "string"
}`;

const response = await fetch('http://localhost:3000/api/dashboard-widget', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN',
    'Content-Type': 'application/json',
  },
  body,
});

const data = await response.text();
```

### Python

```python
import requests

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",
  "order": 0,
  "size": 0,
  "color": "string",
  "isVisible": true,
  "options": {},
  "dashboard": {
    "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",
    "name": "string",
    "identifier": "string",
    "description": "string",
    "contentHtml": {},
    "isDefault": true,
    "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"
  },
  "dashboardId": "string",
  "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",
  "project": {
    "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",
    "name": "string",
    "startDate": "string",
    "endDate": "string",
    "billing": "FLAT_FEE",
    "currency": "USD",
    "public": true,
    "owner": "CLIENT",
    "taskListType": "GRID",
    "code": "string",
    "description": "string",
    "color": "string",
    "billable": true,
    "billingFlat": true,
    "openSource": true,
    "projectUrl": "string",
    "openSourceProjectUrl": "string",
    "budget": 0,
    "budgetType": "hours",
    "imageUrl": "string",
    "icon": "string",
    "status": "open",
    "isTasksAutoSync": true,
    "isTasksAutoSyncOnLabel": true,
    "syncTag": "string",
    "archiveTasksIn": 0,
    "closeTasksIn": 0,
    "organizationContactId": "string",
    "imageId": "string",
    "defaultAssigneeId": "string"
  },
  "projectId": "string",
  "organizationTeam": {
    "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",
    "name": "string",
    "color": "string",
    "emoji": "string",
    "teamSize": "string",
    "logo": "string",
    "prefix": "string",
    "shareProfileView": true,
    "requirePlanToTrack": false,
    "public": false,
    "profile_link": "string",
    "imageId": "string"
  },
  "organizationTeamId": "string"
}'''

response = requests.post(
    'http://localhost:3000/api/dashboard-widget',
    data=body.encode('utf-8'),
    headers={
        'Authorization': 'Bearer YOUR_TOKEN',
        'Content-Type': 'application/json',
    },
)
print(response.text)
```
