# Time

Part of the [GeoDynamics API](/api/geodynamics/index.md). Host: `https://api.geodynamics.dev`.

## GET /intellitracer/v2/costcenter?page={page}&search={search}

`https://api.geodynamics.dev/intellitracer/v2/costcenter?page={page}&search={search}`

Get cost centers

Returns a paged list of cost centers.

Pagination and searching is explained in [Pagination](#pagination).

_Privilege required: `Api: Resource read` or `Api: Resource management`_

### Path parameters

| Name | Type | Required | Example |
| --- | --- | --- | --- |
| `page` | number | required | `1` |
| `search` | string | required | `ABC` |

### Responses

#### 200: OK

| Field | Type |
| --- | --- |
| `Data` (default = null) | array |
| `PagingFilter` (default = null) | object |

```json
{
  "Data": [
    {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Name": "Workplace 1",
      "Code": "012345",
      "ExpirationDate": "2022-08-24T17:00:00+01:00",
      "Poi": {
        "Id": "00000000-0000-0000-0000-000000000000",
        "Name": "Home",
        "Code": "012345"
      },
      "AutoCreate": false,
      "CreationDate": "2021-08-24T17:00:00+01:00"
    }
  ],
  "PagingFilter": {
    "Page": 1,
    "Search": "ABC",
    "PageCount": 4,
    "TotalCount": 100,
    "Links": {
      "Base": "https://api.geodynamics.dev",
      "First": "/intellitracer/v2/asset?page=1",
      "Prev": "/intellitracer/v2/asset?page=2",
      "Next": "/intellitracer/v2/asset?page=4",
      "Last": "/intellitracer/v2/asset?page=4"
    }
  }
}
```

#### 401: Unauthorized

#### 403: Forbidden

## GET /intellitracer/v2/costcenter/{id}

`https://api.geodynamics.dev/intellitracer/v2/costcenter/{id}`

Get cost center

Returns a cost center by id.

_Privilege required: `Api: Resource read` or `Api: Resource management`_

### Path parameters

| Name | Type | Required | Example |
| --- | --- | --- | --- |
| `id` | string | required | `00000000-0000-0000-0000-000000000000` |

### Responses

#### 200: OK

| Field | Type |
| --- | --- |
| `Data` (default = null) | object |

```json
{
  "Data": {
    "Id": "00000000-0000-0000-0000-000000000000",
    "Name": "Workplace 1",
    "Code": "012345",
    "ExpirationDate": "2022-08-24T17:00:00+01:00",
    "Poi": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Name": "Home",
      "Code": "012345"
    },
    "AutoCreate": false,
    "CreationDate": "2021-08-24T17:00:00+01:00"
  }
}
```

#### 401: Unauthorized

#### 403: Forbidden

## POST /intellitracer/v2/costcenter

`https://api.geodynamics.dev/intellitracer/v2/costcenter`

Privilege required: `Api: Resource management`

Create/Update cost center

Creates a new cost center if no cost center exists with the given code.

Updates the cost center if a cost center exists with the given code.

If no expiration date is provided, the cost center will expire within one year.

### Request body

Type: `object`

| Field | Type | Required |
| --- | --- | --- |
| `Name` | string | required |
| `Code` (default = null) | string | required |
| `ExpirationDate` (default = null) | string | optional |
| `PoiId` (default = null) | string | optional |
| `ValidatorIds` (default = []) | array | optional |

### Responses

#### 200: OK

| Field | Type |
| --- | --- |
| `Data` (default = null) | object |

```json
{
  "Data": {
    "Id": "00000000-0000-0000-0000-000000000000",
    "Name": "Workplace 1",
    "Code": "012345",
    "ExpirationDate": "2022-08-24T17:00:00+01:00",
    "Poi": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Name": "Home",
      "Code": "012345"
    },
    "AutoCreate": false,
    "CreationDate": "2021-08-24T17:00:00+01:00"
  }
}
```

#### 400: BadRequest

| Field | Type |
| --- | --- |
| `Entity` | object |
| `ValidationResult` | array |

```json
{
  "Entity": {
    "Name": "Workplace 1",
    "Code": "012345",
    "ExpirationDate": "2021-08-24T17:00:00+01:00",
    "PoiId": "00000000-0000-0000-0000-000000000000",
    "ValidatorIds": [
      "00000000-0000-0000-0000-000000000000",
      "00000000-0000-0000-0000-000000000000"
    ]
  },
  "ValidationResult": [
    {
      "Message": "",
      "SourceMemberNames": []
    }
  ]
}
```

#### 401: Unauthorized

#### 403: Forbidden

#### 417: ExpectationFailed

## DELETE /intellitracer/v1/costcenter

`https://api.geodynamics.dev/intellitracer/v1/costcenter`

Privilege required: `Api: Resource management`

Delete cost center

Deletes a cost center.

### Request body

### Responses

#### 200: OK

| Field | Type |
| --- | --- |
| `Id` | string |
| `Name` | string |
| `Code` (default = null) | string |
| `Poi` (default = null) | object |
| `_typeDescriptor` | string |

```json
{
  "Id": "00000000-0000-0000-0000-000000000000",
  "Name": "Workplace 1",
  "Code": "012345",
  "Poi": {
    "Id": "00000000-0000-0000-0000-000000000000",
    "Name": "Work",
    "Code": "012345",
    "PoiType": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Name": "Work place",
      "Color": "#00FF2F"
    },
    "IsAssetLocation": false,
    "Street": "Dumolinlaan",
    "HouseNumber": "9",
    "City": "Kortrijk",
    "Submunicipality": "Kortrijk",
    "PostalCode": "8500",
    "Country": 0,
    "Priority": "0",
    "Description": "Work",
    "GeographyWkt": "POLYGON ((3.145219 50.81309, 3.244998 50.81309, 3.244998 50.91806, 3.145219 50.91806, 3.145219 50.81309))",
    "LonMin": 3.145219,
    "LonMax": 3.244998,
    "LatMin": 50.81309,
    "LatMax": 50.91806,
    "MarkerLon": 3.145219,
    "MarkerLat": 50.81309,
    "IsLambert72": false,
    "Radius": 0.03,
    "ReverseGeocoding": false,
    "Groups": [
      {
        "Id": "00000000-0000-0000-0000-000000000000",
        "Name": "Work places",
        "Pois": [
          {}
        ],
        "NumberOfPois": 1
      }
    ]
  }
}
```

#### 400: BadRequest

| Field | Type |
| --- | --- |
| `Entity` | object |
| `ValidationResult` | array |

```json
{
  "Entity": {
    "Id": "00000000-0000-0000-0000-000000000000",
    "Name": "Workplace 1",
    "Code": "012345",
    "Poi": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Name": "Work",
      "Code": "012345",
      "PoiType": {
        "Id": "00000000-0000-0000-0000-000000000000",
        "Name": "Work place",
        "Color": "#00FF2F"
      },
      "IsAssetLocation": false,
      "Street": "Dumolinlaan",
      "HouseNumber": "9",
      "City": "Kortrijk",
      "Submunicipality": "Kortrijk",
      "PostalCode": "8500",
      "Country": 0,
      "Priority": "0",
      "Description": "Work",
      "GeographyWkt": "POLYGON ((3.145219 50.81309, 3.244998 50.81309, 3.244998 50.91806, 3.145219 50.91806, 3.145219 50.81309))",
      "LonMin": 3.145219,
      "LonMax": 3.244998,
      "LatMin": 50.81309,
      "LatMax": 50.91806,
      "MarkerLon": 3.145219,
      "MarkerLat": 50.81309,
      "IsLambert72": false,
      "Radius": 0.03,
      "ReverseGeocoding": false,
      "Groups": [
        {
          "Id": "00000000-0000-0000-0000-000000000000",
          "Name": "Work places",
          "Pois": [
            {}
          ],
          "NumberOfPois": 1
        }
      ]
    }
  },
  "ValidationResult": [
    {
      "Message": "",
      "SourceMemberNames": []
    }
  ]
}
```

#### 401: Unauthorized

#### 403: Forbidden

#### 417: ExpectationFailed

## GET /intellitracer/v1/costcenter/linktoresource

`https://api.geodynamics.dev/intellitracer/v1/costcenter/linktoresource`

Privilege required: `Api: Resource management`

Link cost center to resource

Links a cost center to a resource.

### Query parameters

| Name | Type | Required | Example |
| --- | --- | --- | --- |
| `costCenterId` | string | required | `00000000-0000-0000-0000-000000000000` |
| `resourceId` | string | required | `00000000-0000-0000-0000-000000000000` |

### Responses

#### 200: OK

#### 400: BadRequest

## GET /intellitracer/v2/costcenter/{id}/validator?page={page}&search={search}

`https://api.geodynamics.dev/intellitracer/v2/costcenter/{id}/validator?page={page}&search={search}`

Get validators

Returns a paged list of validators linked to a cost center.

Pagination and searching is explained in [Pagination](#pagination).

_Privilege required: `Api: Resource read` or `Api: Resource management`_

### Path parameters

| Name | Type | Required | Example |
| --- | --- | --- | --- |
| `id` | string | required | `00000000-0000-0000-0000-000000000000` |
| `page` | number | required | `1` |
| `search` | string | required | `ABC` |

### Responses

#### 200: OK

| Field | Type |
| --- | --- |
| `Data` (default = null) | array |
| `PagingFilter` (default = null) | object |

```json
{
  "Data": [
    {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Name": "Workplace 1",
      "Code": "012345"
    }
  ],
  "PagingFilter": {
    "Page": 1,
    "Search": "ABC",
    "PageCount": 4,
    "TotalCount": 100,
    "Links": {
      "Base": "https://api.geodynamics.dev",
      "First": "/intellitracer/v2/asset?page=1",
      "Prev": "/intellitracer/v2/asset?page=2",
      "Next": "/intellitracer/v2/asset?page=4",
      "Last": "/intellitracer/v2/asset?page=4"
    }
  }
}
```

#### 401: Unauthorized

#### 403: Forbidden

## PUT /intellitracer/v2/costcenter/{id}/validator

`https://api.geodynamics.dev/intellitracer/v2/costcenter/{id}/validator`

Privilege required: `Api: Resource management`

Link validators to cost center

Links one or more validators to a cost center.

### Path parameters

| Name | Type | Required | Example |
| --- | --- | --- | --- |
| `id` | string | required | `00000000-0000-0000-0000-000000000000` |

### Request body

### Responses

#### 200: OK

| Field | Type |
| --- | --- |
| `Data` (default = null) | array |

```json
{
  "Data": [
    {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Name": "Workplace 1",
      "Code": "012345"
    }
  ]
}
```

#### 400: BadRequest

| Field | Type |
| --- | --- |
| `Entity` | object |
| `ValidationResult` | array |

```json
{
  "Entity": {
    "ValidatorIds": [
      "00000000-0000-0000-0000-000000000000",
      "00000000-0000-0000-0000-000000000000"
    ]
  },
  "ValidationResult": [
    {
      "Message": "",
      "SourceMemberNames": []
    }
  ]
}
```

#### 401: Unauthorized

#### 403: Forbidden

#### 417: ExpectationFailed

## POST /intellitracer/v2/costcenter/{id}/validator/delete

`https://api.geodynamics.dev/intellitracer/v2/costcenter/{id}/validator/delete`

Privilege required: `Api: Resource management`

Unlink validators from cost center

Unlinks one or more validators from a cost center.

### Path parameters

| Name | Type | Required | Example |
| --- | --- | --- | --- |
| `id` | string | required | `00000000-0000-0000-0000-000000000000` |

### Request body

### Responses

#### 200: OK

| Field | Type |
| --- | --- |
| `Data` (default = null) | array |

```json
{
  "Data": [
    {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Name": "Workplace 1",
      "Code": "012345"
    }
  ]
}
```

#### 400: BadRequest

| Field | Type |
| --- | --- |
| `Entity` | object |
| `ValidationResult` | array |

```json
{
  "Entity": {
    "ValidatorIds": [
      "00000000-0000-0000-0000-000000000000",
      "00000000-0000-0000-0000-000000000000"
    ]
  },
  "ValidationResult": [
    {
      "Message": "",
      "SourceMemberNames": []
    }
  ]
}
```

#### 401: Unauthorized

#### 403: Forbidden

#### 417: ExpectationFailed

## GET /intellitracer/v1/dayprogram_V2

`https://api.geodynamics.dev/intellitracer/v1/dayprogram_V2`

Get day programs

Returns a list of all day programs in detail.

_Privilege required: `Api: Timesheet read` or `Api: Timesheet management`_

### Responses

#### 200: OK

```json
[
  {
    "Id": "00000000-0000-0000-0000-000000000000",
    "Name": "Default",
    "Code": "012345",
    "DayStartBoundary": "00:00:00",
    "DayDuration": "24:00:00",
    "Break1StartRelativeToDayBoundary": "00:00:00",
    "Break1StopRelativeToDayBoundary": "00:00:00",
    "Break2StartRelativeToDayBoundary": "00:00:00",
    "Break2StopRelativeToDayBoundary": "00:00:00",
    "Break3StartRelativeToDayBoundary": "00:00:00",
    "Break3StopRelativeToDayBoundary": "00:00:00",
    "MondayWorkingStartRelativeToDayBoundary": "00:00:00",
    "MondayWorkingStopRelativeToDayBoundary": "00:00:00",
    "TuesdayWorkingStartRelativeToDayBoundary": "00:00:00",
    "TuesdayWorkingStopRelativeToDayBoundary": "00:00:00",
    "WednesdayWorkingStartRelativeToDayBoundary": "00:00:00",
    "WednesdayWorkingStopRelativeToDayBoundary": "00:00:00",
    "ThursdayWorkingStartRelativeToDayBoundary": "00:00:00",
    "ThursdayWorkingStopRelativeToDayBoundary": "00:00:00",
    "FridayWorkingStartRelativeToDayBoundary": "00:00:00",
    "FridayWorkingStopRelativeToDayBoundary": "00:00:00",
    "SaturdayWorkingStartRelativeToDayBoundary": "00:00:00",
    "SaturdayWorkingStopRelativeToDayBoundary": "00:00:00",
    "SundayWorkingStartRelativeToDayBoundary": "00:00:00",
    "SundayWorkingStopRelativeToDayBoundary": "00:00:00",
    "Users": [
      {
        "Id": "00000000-0000-0000-0000-000000000000",
        "Name": "John Doe"
      }
    ]
  }
]
```

#### 401: Unauthorized

#### 403: Forbidden

## GET /intellitracer/v1/byuseriddaterange

`https://api.geodynamics.dev/intellitracer/v1/byuseriddaterange`

Get plannings

Returns a list of all plannings for a user within a date/time range.

_Privilege required: `Api: Planning read` or `Api: Planning management`_

### Query parameters

| Name | Type | Required | Example |
| --- | --- | --- | --- |
| `userId` | string | required | `00000000-0000-0000-0000-000000000000` |
| `fromDate` | string | required | `2019-01-25T08:00:00` |
| `toDate` | string | required | `2019-01-25T17:00:00` |

### Responses

#### 200: OK

```json
[
  {
    "Id": "00000000-0000-0000-0000-000000000000",
    "User": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Name": "John Doe",
      "Code": "012345",
      "EmployerCode": "012345",
      "Email": "john.doe@doe.com",
      "Gsm": "+32477665544",
      "FreeField1": null,
      "FreeField2": null,
      "FreeField3": null,
      "FreeField4": null,
      "FreeField5": null,
      "FreeField6": null,
      "Notes": null,
      "Street": "Dumolinlaan",
      "HouseNumber": "9",
      "City": "Kortrijk",
      "PostalCode": "8500",
      "Submunicipality": "Kortrijk",
      "Country": 0,
      "Longitude": 3.245304,
      "Latitude": 50.812939,
      "DefaultDayProgram": {
        "Id": "00000000-0000-0000-0000-000000000000",
        "Name": "Default"
      },
      "Groups": [
        {
          "Id": "00000000-0000-0000-0000-000000000000",
          "Name": "Employees",
          "Type": 0,
          "Code": "012345"
        }
      ]
    },
    "Resource": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Name": "John Doe",
      "Code": "012345",
      "Type": 0
    },
    "FromDate": "2019-01-24T08:00:00",
    "ToDate": "2019-01-24T17:00:00",
    "BreakTime": "01:00:00",
    "Description": "012345",
    "ActivityNumber": "012345",
    "Poi": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Name": "Work",
      "Code": "012345"
    }
  }
]
```

#### 401: Unauthorized

#### 403: Forbidden

## DELETE /intellitracer/v1/byuseriddaterange

`https://api.geodynamics.dev/intellitracer/v1/byuseriddaterange`

Privilege required: `Api: Planning management`

Delete plannings

Deletes all plannings for a user within a date/time range.

### Query parameters

| Name | Type | Required | Example |
| --- | --- | --- | --- |
| `userId` | string | required | `00000000-0000-0000-0000-000000000000` |
| `fromDate` | string | required | `2019-01-25T08:00:00` |
| `toDate` | string | required | `2019-01-25T17:00:00` |

### Responses

#### 200: OK

#### 401: Unauthorized

#### 403: Forbidden

## POST /intellitracer/v3/planning

`https://api.geodynamics.dev/intellitracer/v3/planning`

Privilege required: `Api: Planning management`

Edit planning

Edit a planning with given id.

### Request body

Type: `object`

| Field | Type | Required |
| --- | --- | --- |
| `Id` | string | required |
| `UserId` | string | required |
| `ResourceId` (default = null) | string | optional |
| `FromDateUtc` | string | required |
| `ToDateUtc` | string | required |
| `BreakTime` (default = null) | string | optional |
| `Description` (default = null) | string | optional |
| `ActivityNumber` (default = null) | string | optional |
| `PoiId` (default = null) | string | optional |

### Responses

#### 200: OK

| Field | Type |
| --- | --- |
| `Data` (default = null) | object |

```json
{
  "Data": {
    "Id": "00000000-0000-0000-0000-000000000000",
    "User": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Code": "012345",
      "Name": "John Doe",
      "Type": 0
    },
    "Resource": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Code": "012345",
      "Name": "John Doe",
      "Type": 0
    },
    "FromDateUtc": "2019-01-25T08:00:00",
    "ToDateUtc": "2019-01-25T08:00:00",
    "BreakTime": "01:00:00",
    "Description": "012345",
    "ActivityNumber": "2023/0017",
    "Poi": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Name": "Work",
      "Code": "012345"
    }
  }
}
```

#### 400: BadRequest

| Field | Type |
| --- | --- |
| `Entity` | object |
| `ValidationResult` | array |

```json
{
  "Entity": {
    "Id": "00000000-0000-0000-0000-000000000000",
    "User": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Code": "012345",
      "Name": "John Doe",
      "Type": 0
    },
    "Resource": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Code": "012345",
      "Name": "John Doe",
      "Type": 0
    },
    "FromDateLocal": "2019-01-25T10:00:00",
    "FromDateUtc": "2019-01-25T08:00:00",
    "ToDateLocal": "2019-01-25T10:00:00",
    "ToDateUtc": "2019-01-25T08:00:00",
    "BreakTime": "01:00:00",
    "Description": "012345",
    "Poi": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Name": "Work",
      "Code": "012345"
    }
  },
  "ValidationResult": [
    {
      "Message": "",
      "SourceMemberNames": []
    }
  ]
}
```

#### 401: Unauthorized

#### 403: Forbidden

#### 417: ExpectationFailed

## PUT /intellitracer/v3/planning

`https://api.geodynamics.dev/intellitracer/v3/planning`

Privilege required: `Api: Planning management`

Create planning

Creates a new planning for the given resource.

### Request body

Type: `object`

| Field | Type | Required |
| --- | --- | --- |
| `Id` | string | optional |
| `UserId` | string | required |
| `ResourceId` (default = null) | string | optional |
| `FromDateUtc` | string | required |
| `ToDateUtc` | string | required |
| `BreakTime` (default = null) | string | optional |
| `Description` (default = null) | string | optional |
| `ActivityNumber` (default = null) | string | optional |
| `PoiId` (default = null) | string | optional |

### Responses

#### 200: OK

| Field | Type |
| --- | --- |
| `Data` (default = null) | object |

```json
{
  "Data": {
    "Id": "00000000-0000-0000-0000-000000000000",
    "User": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Code": "012345",
      "Name": "John Doe",
      "Type": 0
    },
    "Resource": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Code": "012345",
      "Name": "John Doe",
      "Type": 0
    },
    "FromDateUtc": "2019-01-25T08:00:00",
    "ToDateUtc": "2019-01-25T08:00:00",
    "BreakTime": "01:00:00",
    "Description": "012345",
    "ActivityNumber": "2023/0017",
    "Poi": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Name": "Work",
      "Code": "012345"
    }
  }
}
```

#### 400: BadRequest

| Field | Type |
| --- | --- |
| `Entity` | object |
| `ValidationResult` | array |

```json
{
  "Entity": {
    "Id": "00000000-0000-0000-0000-000000000000",
    "User": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Code": "012345",
      "Name": "John Doe",
      "Type": 0
    },
    "Resource": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Code": "012345",
      "Name": "John Doe",
      "Type": 0
    },
    "FromDateLocal": "2019-01-25T10:00:00",
    "FromDateUtc": "2019-01-25T08:00:00",
    "ToDateLocal": "2019-01-25T10:00:00",
    "ToDateUtc": "2019-01-25T08:00:00",
    "BreakTime": "01:00:00",
    "Description": "012345",
    "Poi": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Name": "Work",
      "Code": "012345"
    }
  },
  "ValidationResult": [
    {
      "Message": "",
      "SourceMemberNames": []
    }
  ]
}
```

#### 401: Unauthorized

#### 403: Forbidden

#### 417: ExpectationFailed

## DELETE /intellitracer/v2/planning/{id}

`https://api.geodynamics.dev/intellitracer/v2/planning/{id}`

Privilege required: `Api: Planning management`

Delete planning

Deletes a planning by id.

### Request body

### Responses

#### 200: OK

| Field | Type |
| --- | --- |
| `Data` (default = null) | object |

```json
{
  "Data": {
    "Id": "00000000-0000-0000-0000-000000000000",
    "User": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Code": "012345",
      "Name": "John Doe",
      "Type": 0
    },
    "Resource": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Code": "012345",
      "Name": "John Doe",
      "Type": 0
    },
    "FromDateLocal": "2019-01-25T10:00:00",
    "FromDateUtc": "2019-01-25T08:00:00",
    "ToDateLocal": "2019-01-25T10:00:00",
    "ToDateUtc": "2019-01-25T08:00:00",
    "BreakTime": "01:00:00",
    "Description": "012345",
    "Poi": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Name": "Work",
      "Code": "012345"
    }
  }
}
```

#### 400: BadRequest

| Field | Type |
| --- | --- |
| `Entity` | object |
| `ValidationResult` | array |

```json
{
  "Entity": {
    "Id": "00000000-0000-0000-0000-000000000000",
    "User": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Code": "012345",
      "Name": "John Doe",
      "Type": 0
    },
    "Resource": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Code": "012345",
      "Name": "John Doe",
      "Type": 0
    },
    "FromDateLocal": "2019-01-25T10:00:00",
    "FromDateUtc": "2019-01-25T08:00:00",
    "ToDateLocal": "2019-01-25T10:00:00",
    "ToDateUtc": "2019-01-25T08:00:00",
    "BreakTime": "01:00:00",
    "Description": "012345",
    "Poi": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Name": "Work",
      "Code": "012345"
    }
  },
  "ValidationResult": [
    {
      "Message": "",
      "SourceMemberNames": []
    }
  ]
}
```

#### 401: Unauthorized

#### 403: Forbidden

#### 417: ExpectationFailed

## GET /intellitracer/v1/anomaliesbyuseriddate

`https://api.geodynamics.dev/intellitracer/v1/anomaliesbyuseriddate`

Get planning anomalies

Returns a list of all planning anomalies for a user on a single day.

_Privilege required: `Api: Planning read` or `Api: Planning management`_

### Query parameters

| Name | Type | Required | Example |
| --- | --- | --- | --- |
| `userId` | string | required | `00000000-0000-0000-0000-000000000000` |
| `year` | number | required | `2019` |
| `month` | number | required | `1` |
| `day` | number | required | `25` |

### Responses

#### 200: OK

| Field | Type |
| --- | --- |
| `AnomalyTypes` (default = null) | array |
| `WorkedHours` (default = null) | string |
| `PlannedHours` (default = null) | string |
| `WorkedFrom` (default = null) | string |
| `WorkedTo` (default = null) | string |
| `_typeDescriptor` | string |

```json
{
  "AnomalyTypes": [
    {},
    {}
  ],
  "WorkedHours": "01:00:00",
  "PlannedHours": "08:00:00",
  "WorkedFrom": "2019-01-24T08:00:00+01:00",
  "WorkedTo": "2019-01-24T09:00:00+01:00"
}
```

#### 401: Unauthorized

#### 403: Forbidden
