> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SuperOffice.WebApi.Data.HistoryRequest

# <a id="SuperOffice_WebApi_Data_HistoryRequest" /> Class HistoryRequest

Namespace: [SuperOffice.WebApi.Data](SuperOffice.WebApi.Data.md)\
Assembly: SuperOffice.WebApi.dll

Carrier object for HistoryRequest.
Specification for a request for history information, by id. It is possible to ask for rights for a new record (insert), but then you need to supply the parent ID for entities that have parents (projectmember, selectionmember, person)

```csharp theme={null}
public class HistoryRequest : Carrier
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Carrier](SuperOffice.WebApi.Data.Carrier.md) ←
[HistoryRequest](SuperOffice.WebApi.Data.HistoryRequest.md)

#### Inherited Members

[Carrier.TableRight](SuperOffice.WebApi.Data.Carrier.md#SuperOffice_WebApi_Data_Carrier_TableRight),
[Carrier.FieldProperties](SuperOffice.WebApi.Data.Carrier.md#SuperOffice_WebApi_Data_Carrier_FieldProperties),
[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring),
[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),
[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),
[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)

## Constructors

### <a id="SuperOffice_WebApi_Data_HistoryRequest__ctor" /> HistoryRequest()

Default constructor - defaults any enum props to 0.

```csharp theme={null}
public HistoryRequest()
```

## Properties

### <a id="SuperOffice_WebApi_Data_HistoryRequest_EntityName" /> EntityName

Name of entity to get history for

```csharp theme={null}
public virtual string EntityName { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_HistoryRequest_EntityOrParentId" /> EntityOrParentId

ID of entity to get history for, or parent entity id if requesting insert rights for an entity that has a parent

```csharp theme={null}
public virtual int EntityOrParentId { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_HistoryRequest_RequestForNewRecord" /> RequestForNewRecord

Are we requesting insert rights? If true, then EntityorParentId is taken to mean parent id

```csharp theme={null}
public virtual bool RequestForNewRecord { get; set; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

## See Also

[ViewStateAgent](SuperOffice.WebApi.Agents.ViewStateAgent.md)


## Related topics

- [SuperOffice.WebApi.Data.ViewState GetHistoriesByNamesAndIdsRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.ViewState_GetHistoriesByNamesAndIdsRequest.md)
- [SuperOffice.WebApi.Agents.IViewStateAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IViewStateAgent.md)
- [SuperOffice.WebApi.Agents.ViewStateAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.ViewStateAgent.md)
- [SuperOffice.WebApi.Data.MDO GetListWithHistoryRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.MDO_GetListWithHistoryRequest.md)
- [SuperOffice.WebApi.Data.ViewState SaveHistoriesRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.ViewState_SaveHistoriesRequest.md)
- [SuperOffice.WebApi.Data.Targets GetTargetRevisionHistoryRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Targets_GetTargetRevisionHistoryRequest.md)
