# Submit bulk custom tracking data

`POST /api/timesheet/custom-tracking/bulk`

Submit multiple encoded tracking data entries to be processed in bulk

Authentication: no security requirement declared for this operation.

Request body: application/json (required)

Type: object

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

- `list` (required)
  Type: array
  
  Array of custom tracking data entries to process in bulk
  
  Items:
    Reference: [ProcessTrackingDataDTO](https://sourcey-gauzy.pages.dev/api-reference/models/processtrackingdatadto/index.md); Type: object

Responses:

- 201: Bulk custom tracking data submitted successfully

- 400: Invalid bulk tracking data

## Examples

### cURL

```bash
curl -X POST 'http://localhost:3000/api/timesheet/custom-tracking/bulk' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "list": [
    {
      "tenant": {},
      "tenantId": "string",
      "organization": {},
      "organizationId": "string",
      "sentTo": "string",
      "payload": "string",
      "startTime": "2024-01-15T09:30:00Z",
      "employeeId": "string"
    }
  ]
}'
```

### JavaScript

```javascript
const body = `{
  "list": [
    {
      "tenant": {},
      "tenantId": "string",
      "organization": {},
      "organizationId": "string",
      "sentTo": "string",
      "payload": "string",
      "startTime": "2024-01-15T09:30:00Z",
      "employeeId": "string"
    }
  ]
}`;

const response = await fetch('http://localhost:3000/api/timesheet/custom-tracking/bulk', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body,
});

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

### Python

```python
import requests

body = '''{
  "list": [
    {
      "tenant": {},
      "tenantId": "string",
      "organization": {},
      "organizationId": "string",
      "sentTo": "string",
      "payload": "string",
      "startTime": "2024-01-15T09:30:00Z",
      "employeeId": "string"
    }
  ]
}'''

response = requests.post(
    'http://localhost:3000/api/timesheet/custom-tracking/bulk',
    data=body.encode('utf-8'),
    headers={
        'Content-Type': 'application/json',
    },
)
print(response.text)
```
