> ## 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.RequestOptions

# <a id="SuperOffice_WebApi_RequestOptions" /> Class RequestOptions

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

Customize this particular request with special language code or timezone specifics.

```csharp theme={null}
public class RequestOptions
```

#### Inheritance

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

#### Derived

[WebApiOptions](SuperOffice.WebApi.WebApiOptions.md)

#### Inherited Members

[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_RequestOptions__ctor" /> RequestOptions()

Default request configuration

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

### <a id="SuperOffice_WebApi_RequestOptions__ctor_System_Threading_CancellationToken_" /> RequestOptions(CancellationToken)

Request configuration with a CancellationToken.

```csharp theme={null}
public RequestOptions(CancellationToken token)
```

#### Parameters

`token` [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken)

### <a id="SuperOffice_WebApi_RequestOptions__ctor_System_String_" /> RequestOptions(string)

Request configuration with a language

```csharp theme={null}
public RequestOptions(string languageCode)
```

#### Parameters

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

ISO2 Language code: "sv", "de", "en" etc

### <a id="SuperOffice_WebApi_RequestOptions__ctor_System_String_System_Threading_CancellationToken_" /> RequestOptions(string, CancellationToken)

Request configuration with a language

```csharp theme={null}
public RequestOptions(string languageCode, CancellationToken token)
```

#### Parameters

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

ISO2 Language code: "sv", "de", "en" etc

`token` [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken)

Token to indicate a cancel signal.

## Fields

### <a id="SuperOffice_WebApi_RequestOptions_DefaultTimeout" /> DefaultTimeout

```csharp theme={null}
public static TimeSpan DefaultTimeout
```

#### Field Value

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

## Properties

### <a id="SuperOffice_WebApi_RequestOptions_CultureCode" /> CultureCode

Controls number and date formatting.
ISO 2 language code: "nb-no", "en", "sv" etc

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

#### Property Value

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

### <a id="SuperOffice_WebApi_RequestOptions_CustomHeaders" /> CustomHeaders

Custom headers appended to each request.

```csharp theme={null}
public StringDictionary CustomHeaders { get; set; }
```

#### Property Value

[StringDictionary](SuperOffice.WebApi.Data.StringDictionary.md)

### <a id="SuperOffice_WebApi_RequestOptions_LanguageCode" /> LanguageCode

Controls string parsing/substitution.
ISO 2 language code: "nb-no", "en", "sv" etc

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

#### Property Value

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

### <a id="SuperOffice_WebApi_RequestOptions_TimeZone" /> TimeZone

TimeZone code: "UTC" or similar timezone name or id.

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

#### Property Value

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

### <a id="SuperOffice_WebApi_RequestOptions_TimeZoneIncludeOffset" /> TimeZoneIncludeOffset

Ask server to include timezone offset in returned datetime values

```csharp theme={null}
public bool? TimeZoneIncludeOffset { get; set; }
```

#### Property Value

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

### <a id="SuperOffice_WebApi_RequestOptions_Timeout" /> Timeout

Request timeout in milliseconds. Default 30 seconds.

```csharp theme={null}
public TimeSpan Timeout { get; set; }
```

#### Property Value

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


## Related topics

- [SuperOffice.WebApi.Agents.IListAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IListAgent.md)
- [SuperOffice.WebApi.Agents.ListAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.ListAgent.md)
- [SuperOffice.WebApi.Agents.IAIAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IAIAgent.md)
- [SuperOffice.WebApi.Agents.AIAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.AIAgent.md)
- [SuperOffice.WebApi.Agents.DocumentAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.DocumentAgent.md)
- [SuperOffice.WebApi.Agents.IDocumentAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IDocumentAgent.md)
