# Update an existing record

`PUT /api/product-variants/{id}`

Authentication (security requirement alternatives):

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

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

Parameters:

- `id` (path, string, required)
  Type: string

Request body: application/json (required)

Type: object

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

- `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"
  ```

- `tenantId` (optional)
  Type: string

- `organizationId` (optional)
  Type: string

- `taxes` (required)
  Type: number

- `notes` (optional)
  Type: string

- `quantity` (required)
  Type: number

- `billingInvoicingPolicy` (required)
  Type: string

- `internalReference` (required)
  Type: string

- `enabled` (optional)
  Type: boolean

- `product` (required)
  Reference: [Product](https://sourcey-gauzy.pages.dev/api-reference/models/product/index.md); Type: object

- `productId` (required)
  Type: string

- `image` (required)
  Reference: [ImageAsset](https://sourcey-gauzy.pages.dev/api-reference/models/imageasset/index.md); Type: object

- `imageId` (required)
  Type: string

- `warehouseProductVariants` (required)
  Type: array
  
  Items:
    Reference: [WarehouseProductVariant](https://sourcey-gauzy.pages.dev/api-reference/models/warehouseproductvariant/index.md); Type: object

- `options` (required)
  Reference: [ProductOption](https://sourcey-gauzy.pages.dev/api-reference/models/productoption/index.md); Type: object

Responses:

- 201: The record has been successfully edited.

- 400: Invalid input, The response body may contain clues as to what went wrong

- 401: Unauthorized

- 403: Forbidden

- 404: Record not found

## Examples

### cURL

```bash
curl -X PUT 'http://localhost:3000/api/product-variants/string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "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",
  "taxes": 0,
  "notes": "string",
  "quantity": 0,
  "billingInvoicingPolicy": "string",
  "internalReference": "string",
  "enabled": true,
  "product": {
    "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",
    "enabled": true,
    "code": "string",
    "imageUrl": "string",
    "featuredImage": {},
    "featuredImageId": "string",
    "productType": {
      "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",
      "icon": "briefcase-outline",
      "products": [],
      "translations": [
        {
          "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",
          "description": "string",
          "languageCode": "string",
          "referenceId": "string"
        }
      ]
    },
    "productTypeId": "string",
    "productCategory": {
      "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",
      "imageUrl": "string",
      "imageId": "string",
      "products": [],
      "translations": [
        {
          "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",
          "description": "string",
          "languageCode": "string",
          "referenceId": "string"
        }
      ]
    },
    "productCategoryId": "string",
    "translations": [
      {
        "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",
        "description": "string",
        "languageCode": "en",
        "referenceId": "string"
      }
    ],
    "variants": [],
    "invoiceItems": [
      {
        "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",
        "description": "string",
        "price": 0,
        "quantity": 0,
        "totalValue": 0,
        "applyTax": true,
        "applyDiscount": true,
        "expense": {
          "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",
          "amount": 0,
          "typeOfExpense": "string",
          "notes": "string",
          "currency": "AFN",
          "valueDate": "2024-01-15T09:30:00Z",
          "purpose": "string",
          "taxType": "string",
          "taxLabel": "string",
          "rateValue": 0,
          "receipt": "string",
          "splitExpense": true,
          "reference": "string",
          "status": "INVOICED",
          "employee": {},
          "vendor": {
            "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",
            "email": "string",
            "phone": "string",
            "website": "string",
            "expenses": []
          },
          "category": {
            "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",
            "expenses": []
          },
          "project": {},
          "projectId": "string",
          "organizationContact": {
            "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",
            "primaryEmail": "string",
            "primaryPhone": "string",
            "inviteStatus": "NOT_INVITED",
            "notes": "string",
            "contactType": "CLIENT",
            "imageUrl": "string",
            "budget": 0,
            "budgetType": "string",
            "contact": {
              "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",
              "firstName": "string",
              "lastName": "string",
              "country": "string",
              "city": "string",
              "address": "string",
              "address2": "string",
              "postcode": "string",
              "latitude": 0,
              "longitude": 0,
              "regionCode": "string",
              "fax": "string",
              "fiscalInformation": "string",
              "website": "string"
            },
            "contactId": "string",
            "imageId": "string",
            "expenses": [],
            "incomes": [
              {
                "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",
                "amount": 0,
                "currency": "AFN",
                "valueDate": "2024-01-15T09:30:00Z",
                "notes": "string",
                "isBonus": true,
                "reference": "string",
                "employee": {},
                "clientId": "string",
                "tags": []
              }
            ],
            "timeLogs": [
              {
                "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",
                "logType": "TRACKED",
                "source": "BROWSER",
                "description": "string",
                "reason": "string",
                "isBillable": false,
                "isRunning": true,
                "version": "1.0.1",
                "employeeId": "string",
                "timesheetId": "string",
                "projectId": "string",
                "taskId": "string",
                "organizationContactId": "string",
                "organizationTeamId": "string"
              }
            ]
          },
          "organizationContactId": "string",
          "invoiceItems": [],
          "tags": []
        },
        "expenseId": "string",
        "invoice": {
          "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",
          "invoiceDate": "2024-01-15T09:30:00Z",
          "invoiceNumber": 0,
          "dueDate": "2024-01-15T09:30:00Z",
          "currency": "AFN",
          "discountValue": 0,
          "paid": true,
          "tax": 0,
          "tax2": 0,
          "terms": "string",
          "totalValue": 0,
          "status": "string",
          "isEstimate": true,
          "isAccepted": true,
          "discountType": "PERCENT",
          "taxType": "PERCENT",
          "tax2Type": "PERCENT",
          "invoiceType": "BY_EMPLOYEE_HOURS",
          "sentTo": "string",
          "organizationContactId": "string",
          "internalNote": "string",
          "alreadyPaid": 0,
          "amountDue": 0,
          "hasRemainingAmountInvoiced": true,
          "token": "string",
          "fromOrganization": {
            "select": {},
            "relations": {},
            "where": {},
            "order": {},
            "withDeleted": true,
            "take": 0,
            "skip": 0
          },
          "fromOrganizationId": "string",
          "toContactId": "string",
          "invoiceItems": [],
          "payments": [
            {
              "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",
              "paymentDate": "2024-01-15T09:30:00Z",
              "amount": 0,
              "note": "string",
              "currency": "AFN",
              "paymentMethod": "BANK_TRANSFER",
              "overdue": true,
              "employeeId": "string",
              "invoiceId": "string",
              "projectId": "string",
              "organizationContactId": "string",
              "tags": [
                []
              ]
            }
          ],
          "historyRecords": [
            {
              "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",
              "action": "string",
              "title": "string",
              "user": {
                "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",
                "thirdPartyId": "string",
                "firstName": "string",
                "lastName": "string",
                "email": "string",
                "phoneNumber": "string",
                "username": "string",
                "timeZone": "string",
                "timeFormat": 12,
                "hash": "string",
                "refreshToken": "string",
                "imageUrl": "string",
                "preferredLanguage": "en",
                "preferredComponentLayout": "CARDS_GRID",
                "uiPreferences": {},
                "code": "string",
                "codeExpireAt": "2024-01-15T09:30:00Z",
                "emailVerifiedAt": "2024-01-15T09:30:00Z",
                "lastLoginAt": "2024-01-15T09:30:00Z",
                "emailToken": "string",
                "roleId": "string",
                "imageId": "string",
                "defaultTeamId": "string",
                "lastTeamId": "string",
                "defaultOrganizationId": "string",
                "lastOrganizationId": "string"
              },
              "userId": "string",
              "invoiceId": "string"
            }
          ],
          "tags": {}
        },
        "invoiceId": "string",
        "task": {
          "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",
          "title": "string",
          "description": "string",
          "status": "string",
          "priority": "string",
          "size": "string",
          "issueType": "string",
          "estimate": 0,
          "dueDate": "2024-01-15T09:30:00Z",
          "public": true,
          "startDate": "2024-01-15T09:30:00Z",
          "resolvedAt": "2024-01-15T09:30:00Z",
          "version": "string",
          "isDraft": true,
          "isScreeningTask": true,
          "parentId": "string",
          "project": {},
          "projectId": "string",
          "organizationSprint": {},
          "organizationSprintId": "string",
          "taskStatus": {},
          "taskStatusId": "string",
          "taskSize": {},
          "taskSizeId": "string",
          "taskPriority": {},
          "taskPriorityId": "string",
          "taskType": {
            "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",
            "value": "string",
            "description": "string",
            "icon": "string",
            "color": "string",
            "isDefault": false,
            "isSystem": false,
            "imageId": "string",
            "projectId": "string",
            "organizationTeamId": "string"
          },
          "taskTypeId": "string",
          "tags": [
            []
          ],
          "members": [
            []
          ],
          "teams": [
            []
          ],
          "modules": [
            []
          ]
        },
        "taskId": "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",
        "productId": "string"
      }
    ],
    "warehouses": [
      {
        "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",
        "quantity": 0,
        "warehouse": {},
        "warehouseId": "string",
        "productId": "string",
        "variants": []
      }
    ],
    "tags": [
      {
        "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",
        "textColor": "string",
        "description": "string",
        "icon": "string",
        "isSystem": false,
        "tagTypeId": "string",
        "organizationTeamId": "string"
      }
    ],
    "gallery": []
  },
  "productId": "string",
  "image": {
    "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",
    "url": "string",
    "thumb": "string",
    "width": 0,
    "height": 0,
    "size": 0,
    "isFeatured": true,
    "externalProviderId": "string",
    "storageProvider": "LOCAL",
    "productFeaturedImage": [],
    "equipmentImage": [
      {
        "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",
        "type": "string",
        "serialNumber": "string",
        "manufacturedYear": 0,
        "initialCost": 0,
        "currency": "AFN",
        "maxSharePeriod": 0,
        "autoApproveShare": true,
        "equipmentSharings": [
          {
            "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",
            "shareRequestDay": "2024-01-15T09:30:00Z",
            "shareStartDay": "2024-01-15T09:30:00Z",
            "shareEndDay": "2024-01-15T09:30:00Z",
            "status": 0,
            "equipmentId": "string",
            "equipmentSharingPolicy": {
              "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",
              "description": "string"
            },
            "equipmentSharingPolicyId": "string"
          }
        ],
        "tags": []
      }
    ],
    "warehouses": [
      {
        "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",
        "code": "string",
        "email": "string",
        "description": "string",
        "active": true,
        "logoId": "string",
        "contactId": "string",
        "products": []
      }
    ],
    "productGallery": []
  },
  "imageId": "string",
  "warehouseProductVariants": [
    {
      "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",
      "quantity": 0,
      "variantId": "string",
      "warehouseProductId": "string"
    }
  ],
  "options": {
    "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",
    "code": "string",
    "group": {
      "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",
      "product": {},
      "productId": "string",
      "options": [],
      "translations": [
        {
          "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",
          "languageCode": "en",
          "referenceId": "string"
        }
      ]
    },
    "groupId": "string",
    "translations": [
      {
        "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",
        "description": "string",
        "languageCode": "en",
        "referenceId": "string"
      }
    ]
  }
}'
```

### JavaScript

```javascript
const body = `{
  "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",
  "taxes": 0,
  "notes": "string",
  "quantity": 0,
  "billingInvoicingPolicy": "string",
  "internalReference": "string",
  "enabled": true,
  "product": {
    "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",
    "enabled": true,
    "code": "string",
    "imageUrl": "string",
    "featuredImage": {},
    "featuredImageId": "string",
    "productType": {
      "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",
      "icon": "briefcase-outline",
      "products": [],
      "translations": [
        {
          "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",
          "description": "string",
          "languageCode": "string",
          "referenceId": "string"
        }
      ]
    },
    "productTypeId": "string",
    "productCategory": {
      "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",
      "imageUrl": "string",
      "imageId": "string",
      "products": [],
      "translations": [
        {
          "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",
          "description": "string",
          "languageCode": "string",
          "referenceId": "string"
        }
      ]
    },
    "productCategoryId": "string",
    "translations": [
      {
        "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",
        "description": "string",
        "languageCode": "en",
        "referenceId": "string"
      }
    ],
    "variants": [],
    "invoiceItems": [
      {
        "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",
        "description": "string",
        "price": 0,
        "quantity": 0,
        "totalValue": 0,
        "applyTax": true,
        "applyDiscount": true,
        "expense": {
          "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",
          "amount": 0,
          "typeOfExpense": "string",
          "notes": "string",
          "currency": "AFN",
          "valueDate": "2024-01-15T09:30:00Z",
          "purpose": "string",
          "taxType": "string",
          "taxLabel": "string",
          "rateValue": 0,
          "receipt": "string",
          "splitExpense": true,
          "reference": "string",
          "status": "INVOICED",
          "employee": {},
          "vendor": {
            "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",
            "email": "string",
            "phone": "string",
            "website": "string",
            "expenses": []
          },
          "category": {
            "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",
            "expenses": []
          },
          "project": {},
          "projectId": "string",
          "organizationContact": {
            "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",
            "primaryEmail": "string",
            "primaryPhone": "string",
            "inviteStatus": "NOT_INVITED",
            "notes": "string",
            "contactType": "CLIENT",
            "imageUrl": "string",
            "budget": 0,
            "budgetType": "string",
            "contact": {
              "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",
              "firstName": "string",
              "lastName": "string",
              "country": "string",
              "city": "string",
              "address": "string",
              "address2": "string",
              "postcode": "string",
              "latitude": 0,
              "longitude": 0,
              "regionCode": "string",
              "fax": "string",
              "fiscalInformation": "string",
              "website": "string"
            },
            "contactId": "string",
            "imageId": "string",
            "expenses": [],
            "incomes": [
              {
                "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",
                "amount": 0,
                "currency": "AFN",
                "valueDate": "2024-01-15T09:30:00Z",
                "notes": "string",
                "isBonus": true,
                "reference": "string",
                "employee": {},
                "clientId": "string",
                "tags": []
              }
            ],
            "timeLogs": [
              {
                "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",
                "logType": "TRACKED",
                "source": "BROWSER",
                "description": "string",
                "reason": "string",
                "isBillable": false,
                "isRunning": true,
                "version": "1.0.1",
                "employeeId": "string",
                "timesheetId": "string",
                "projectId": "string",
                "taskId": "string",
                "organizationContactId": "string",
                "organizationTeamId": "string"
              }
            ]
          },
          "organizationContactId": "string",
          "invoiceItems": [],
          "tags": []
        },
        "expenseId": "string",
        "invoice": {
          "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",
          "invoiceDate": "2024-01-15T09:30:00Z",
          "invoiceNumber": 0,
          "dueDate": "2024-01-15T09:30:00Z",
          "currency": "AFN",
          "discountValue": 0,
          "paid": true,
          "tax": 0,
          "tax2": 0,
          "terms": "string",
          "totalValue": 0,
          "status": "string",
          "isEstimate": true,
          "isAccepted": true,
          "discountType": "PERCENT",
          "taxType": "PERCENT",
          "tax2Type": "PERCENT",
          "invoiceType": "BY_EMPLOYEE_HOURS",
          "sentTo": "string",
          "organizationContactId": "string",
          "internalNote": "string",
          "alreadyPaid": 0,
          "amountDue": 0,
          "hasRemainingAmountInvoiced": true,
          "token": "string",
          "fromOrganization": {
            "select": {},
            "relations": {},
            "where": {},
            "order": {},
            "withDeleted": true,
            "take": 0,
            "skip": 0
          },
          "fromOrganizationId": "string",
          "toContactId": "string",
          "invoiceItems": [],
          "payments": [
            {
              "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",
              "paymentDate": "2024-01-15T09:30:00Z",
              "amount": 0,
              "note": "string",
              "currency": "AFN",
              "paymentMethod": "BANK_TRANSFER",
              "overdue": true,
              "employeeId": "string",
              "invoiceId": "string",
              "projectId": "string",
              "organizationContactId": "string",
              "tags": [
                []
              ]
            }
          ],
          "historyRecords": [
            {
              "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",
              "action": "string",
              "title": "string",
              "user": {
                "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",
                "thirdPartyId": "string",
                "firstName": "string",
                "lastName": "string",
                "email": "string",
                "phoneNumber": "string",
                "username": "string",
                "timeZone": "string",
                "timeFormat": 12,
                "hash": "string",
                "refreshToken": "string",
                "imageUrl": "string",
                "preferredLanguage": "en",
                "preferredComponentLayout": "CARDS_GRID",
                "uiPreferences": {},
                "code": "string",
                "codeExpireAt": "2024-01-15T09:30:00Z",
                "emailVerifiedAt": "2024-01-15T09:30:00Z",
                "lastLoginAt": "2024-01-15T09:30:00Z",
                "emailToken": "string",
                "roleId": "string",
                "imageId": "string",
                "defaultTeamId": "string",
                "lastTeamId": "string",
                "defaultOrganizationId": "string",
                "lastOrganizationId": "string"
              },
              "userId": "string",
              "invoiceId": "string"
            }
          ],
          "tags": {}
        },
        "invoiceId": "string",
        "task": {
          "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",
          "title": "string",
          "description": "string",
          "status": "string",
          "priority": "string",
          "size": "string",
          "issueType": "string",
          "estimate": 0,
          "dueDate": "2024-01-15T09:30:00Z",
          "public": true,
          "startDate": "2024-01-15T09:30:00Z",
          "resolvedAt": "2024-01-15T09:30:00Z",
          "version": "string",
          "isDraft": true,
          "isScreeningTask": true,
          "parentId": "string",
          "project": {},
          "projectId": "string",
          "organizationSprint": {},
          "organizationSprintId": "string",
          "taskStatus": {},
          "taskStatusId": "string",
          "taskSize": {},
          "taskSizeId": "string",
          "taskPriority": {},
          "taskPriorityId": "string",
          "taskType": {
            "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",
            "value": "string",
            "description": "string",
            "icon": "string",
            "color": "string",
            "isDefault": false,
            "isSystem": false,
            "imageId": "string",
            "projectId": "string",
            "organizationTeamId": "string"
          },
          "taskTypeId": "string",
          "tags": [
            []
          ],
          "members": [
            []
          ],
          "teams": [
            []
          ],
          "modules": [
            []
          ]
        },
        "taskId": "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",
        "productId": "string"
      }
    ],
    "warehouses": [
      {
        "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",
        "quantity": 0,
        "warehouse": {},
        "warehouseId": "string",
        "productId": "string",
        "variants": []
      }
    ],
    "tags": [
      {
        "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",
        "textColor": "string",
        "description": "string",
        "icon": "string",
        "isSystem": false,
        "tagTypeId": "string",
        "organizationTeamId": "string"
      }
    ],
    "gallery": []
  },
  "productId": "string",
  "image": {
    "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",
    "url": "string",
    "thumb": "string",
    "width": 0,
    "height": 0,
    "size": 0,
    "isFeatured": true,
    "externalProviderId": "string",
    "storageProvider": "LOCAL",
    "productFeaturedImage": [],
    "equipmentImage": [
      {
        "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",
        "type": "string",
        "serialNumber": "string",
        "manufacturedYear": 0,
        "initialCost": 0,
        "currency": "AFN",
        "maxSharePeriod": 0,
        "autoApproveShare": true,
        "equipmentSharings": [
          {
            "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",
            "shareRequestDay": "2024-01-15T09:30:00Z",
            "shareStartDay": "2024-01-15T09:30:00Z",
            "shareEndDay": "2024-01-15T09:30:00Z",
            "status": 0,
            "equipmentId": "string",
            "equipmentSharingPolicy": {
              "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",
              "description": "string"
            },
            "equipmentSharingPolicyId": "string"
          }
        ],
        "tags": []
      }
    ],
    "warehouses": [
      {
        "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",
        "code": "string",
        "email": "string",
        "description": "string",
        "active": true,
        "logoId": "string",
        "contactId": "string",
        "products": []
      }
    ],
    "productGallery": []
  },
  "imageId": "string",
  "warehouseProductVariants": [
    {
      "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",
      "quantity": 0,
      "variantId": "string",
      "warehouseProductId": "string"
    }
  ],
  "options": {
    "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",
    "code": "string",
    "group": {
      "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",
      "product": {},
      "productId": "string",
      "options": [],
      "translations": [
        {
          "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",
          "languageCode": "en",
          "referenceId": "string"
        }
      ]
    },
    "groupId": "string",
    "translations": [
      {
        "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",
        "description": "string",
        "languageCode": "en",
        "referenceId": "string"
      }
    ]
  }
}`;

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

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

### Python

```python
import requests

body = '''{
  "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",
  "taxes": 0,
  "notes": "string",
  "quantity": 0,
  "billingInvoicingPolicy": "string",
  "internalReference": "string",
  "enabled": true,
  "product": {
    "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",
    "enabled": true,
    "code": "string",
    "imageUrl": "string",
    "featuredImage": {},
    "featuredImageId": "string",
    "productType": {
      "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",
      "icon": "briefcase-outline",
      "products": [],
      "translations": [
        {
          "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",
          "description": "string",
          "languageCode": "string",
          "referenceId": "string"
        }
      ]
    },
    "productTypeId": "string",
    "productCategory": {
      "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",
      "imageUrl": "string",
      "imageId": "string",
      "products": [],
      "translations": [
        {
          "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",
          "description": "string",
          "languageCode": "string",
          "referenceId": "string"
        }
      ]
    },
    "productCategoryId": "string",
    "translations": [
      {
        "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",
        "description": "string",
        "languageCode": "en",
        "referenceId": "string"
      }
    ],
    "variants": [],
    "invoiceItems": [
      {
        "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",
        "description": "string",
        "price": 0,
        "quantity": 0,
        "totalValue": 0,
        "applyTax": true,
        "applyDiscount": true,
        "expense": {
          "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",
          "amount": 0,
          "typeOfExpense": "string",
          "notes": "string",
          "currency": "AFN",
          "valueDate": "2024-01-15T09:30:00Z",
          "purpose": "string",
          "taxType": "string",
          "taxLabel": "string",
          "rateValue": 0,
          "receipt": "string",
          "splitExpense": true,
          "reference": "string",
          "status": "INVOICED",
          "employee": {},
          "vendor": {
            "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",
            "email": "string",
            "phone": "string",
            "website": "string",
            "expenses": []
          },
          "category": {
            "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",
            "expenses": []
          },
          "project": {},
          "projectId": "string",
          "organizationContact": {
            "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",
            "primaryEmail": "string",
            "primaryPhone": "string",
            "inviteStatus": "NOT_INVITED",
            "notes": "string",
            "contactType": "CLIENT",
            "imageUrl": "string",
            "budget": 0,
            "budgetType": "string",
            "contact": {
              "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",
              "firstName": "string",
              "lastName": "string",
              "country": "string",
              "city": "string",
              "address": "string",
              "address2": "string",
              "postcode": "string",
              "latitude": 0,
              "longitude": 0,
              "regionCode": "string",
              "fax": "string",
              "fiscalInformation": "string",
              "website": "string"
            },
            "contactId": "string",
            "imageId": "string",
            "expenses": [],
            "incomes": [
              {
                "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",
                "amount": 0,
                "currency": "AFN",
                "valueDate": "2024-01-15T09:30:00Z",
                "notes": "string",
                "isBonus": true,
                "reference": "string",
                "employee": {},
                "clientId": "string",
                "tags": []
              }
            ],
            "timeLogs": [
              {
                "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",
                "logType": "TRACKED",
                "source": "BROWSER",
                "description": "string",
                "reason": "string",
                "isBillable": false,
                "isRunning": true,
                "version": "1.0.1",
                "employeeId": "string",
                "timesheetId": "string",
                "projectId": "string",
                "taskId": "string",
                "organizationContactId": "string",
                "organizationTeamId": "string"
              }
            ]
          },
          "organizationContactId": "string",
          "invoiceItems": [],
          "tags": []
        },
        "expenseId": "string",
        "invoice": {
          "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",
          "invoiceDate": "2024-01-15T09:30:00Z",
          "invoiceNumber": 0,
          "dueDate": "2024-01-15T09:30:00Z",
          "currency": "AFN",
          "discountValue": 0,
          "paid": true,
          "tax": 0,
          "tax2": 0,
          "terms": "string",
          "totalValue": 0,
          "status": "string",
          "isEstimate": true,
          "isAccepted": true,
          "discountType": "PERCENT",
          "taxType": "PERCENT",
          "tax2Type": "PERCENT",
          "invoiceType": "BY_EMPLOYEE_HOURS",
          "sentTo": "string",
          "organizationContactId": "string",
          "internalNote": "string",
          "alreadyPaid": 0,
          "amountDue": 0,
          "hasRemainingAmountInvoiced": true,
          "token": "string",
          "fromOrganization": {
            "select": {},
            "relations": {},
            "where": {},
            "order": {},
            "withDeleted": true,
            "take": 0,
            "skip": 0
          },
          "fromOrganizationId": "string",
          "toContactId": "string",
          "invoiceItems": [],
          "payments": [
            {
              "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",
              "paymentDate": "2024-01-15T09:30:00Z",
              "amount": 0,
              "note": "string",
              "currency": "AFN",
              "paymentMethod": "BANK_TRANSFER",
              "overdue": true,
              "employeeId": "string",
              "invoiceId": "string",
              "projectId": "string",
              "organizationContactId": "string",
              "tags": [
                []
              ]
            }
          ],
          "historyRecords": [
            {
              "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",
              "action": "string",
              "title": "string",
              "user": {
                "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",
                "thirdPartyId": "string",
                "firstName": "string",
                "lastName": "string",
                "email": "string",
                "phoneNumber": "string",
                "username": "string",
                "timeZone": "string",
                "timeFormat": 12,
                "hash": "string",
                "refreshToken": "string",
                "imageUrl": "string",
                "preferredLanguage": "en",
                "preferredComponentLayout": "CARDS_GRID",
                "uiPreferences": {},
                "code": "string",
                "codeExpireAt": "2024-01-15T09:30:00Z",
                "emailVerifiedAt": "2024-01-15T09:30:00Z",
                "lastLoginAt": "2024-01-15T09:30:00Z",
                "emailToken": "string",
                "roleId": "string",
                "imageId": "string",
                "defaultTeamId": "string",
                "lastTeamId": "string",
                "defaultOrganizationId": "string",
                "lastOrganizationId": "string"
              },
              "userId": "string",
              "invoiceId": "string"
            }
          ],
          "tags": {}
        },
        "invoiceId": "string",
        "task": {
          "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",
          "title": "string",
          "description": "string",
          "status": "string",
          "priority": "string",
          "size": "string",
          "issueType": "string",
          "estimate": 0,
          "dueDate": "2024-01-15T09:30:00Z",
          "public": true,
          "startDate": "2024-01-15T09:30:00Z",
          "resolvedAt": "2024-01-15T09:30:00Z",
          "version": "string",
          "isDraft": true,
          "isScreeningTask": true,
          "parentId": "string",
          "project": {},
          "projectId": "string",
          "organizationSprint": {},
          "organizationSprintId": "string",
          "taskStatus": {},
          "taskStatusId": "string",
          "taskSize": {},
          "taskSizeId": "string",
          "taskPriority": {},
          "taskPriorityId": "string",
          "taskType": {
            "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",
            "value": "string",
            "description": "string",
            "icon": "string",
            "color": "string",
            "isDefault": false,
            "isSystem": false,
            "imageId": "string",
            "projectId": "string",
            "organizationTeamId": "string"
          },
          "taskTypeId": "string",
          "tags": [
            []
          ],
          "members": [
            []
          ],
          "teams": [
            []
          ],
          "modules": [
            []
          ]
        },
        "taskId": "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",
        "productId": "string"
      }
    ],
    "warehouses": [
      {
        "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",
        "quantity": 0,
        "warehouse": {},
        "warehouseId": "string",
        "productId": "string",
        "variants": []
      }
    ],
    "tags": [
      {
        "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",
        "textColor": "string",
        "description": "string",
        "icon": "string",
        "isSystem": false,
        "tagTypeId": "string",
        "organizationTeamId": "string"
      }
    ],
    "gallery": []
  },
  "productId": "string",
  "image": {
    "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",
    "url": "string",
    "thumb": "string",
    "width": 0,
    "height": 0,
    "size": 0,
    "isFeatured": true,
    "externalProviderId": "string",
    "storageProvider": "LOCAL",
    "productFeaturedImage": [],
    "equipmentImage": [
      {
        "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",
        "type": "string",
        "serialNumber": "string",
        "manufacturedYear": 0,
        "initialCost": 0,
        "currency": "AFN",
        "maxSharePeriod": 0,
        "autoApproveShare": true,
        "equipmentSharings": [
          {
            "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",
            "shareRequestDay": "2024-01-15T09:30:00Z",
            "shareStartDay": "2024-01-15T09:30:00Z",
            "shareEndDay": "2024-01-15T09:30:00Z",
            "status": 0,
            "equipmentId": "string",
            "equipmentSharingPolicy": {
              "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",
              "description": "string"
            },
            "equipmentSharingPolicyId": "string"
          }
        ],
        "tags": []
      }
    ],
    "warehouses": [
      {
        "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",
        "code": "string",
        "email": "string",
        "description": "string",
        "active": true,
        "logoId": "string",
        "contactId": "string",
        "products": []
      }
    ],
    "productGallery": []
  },
  "imageId": "string",
  "warehouseProductVariants": [
    {
      "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",
      "quantity": 0,
      "variantId": "string",
      "warehouseProductId": "string"
    }
  ],
  "options": {
    "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",
    "code": "string",
    "group": {
      "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",
      "product": {},
      "productId": "string",
      "options": [],
      "translations": [
        {
          "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",
          "languageCode": "en",
          "referenceId": "string"
        }
      ]
    },
    "groupId": "string",
    "translations": [
      {
        "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",
        "description": "string",
        "languageCode": "en",
        "referenceId": "string"
      }
    ]
  }
}'''

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