# CommitDraftAsync Method

## Overloads

| [CommitDraftAsync(String)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.CommitDraftAsync.htm#Qlik_Engine_IApp_CommitDraftAsync_System_String_) |  | Commits the draft of an object that was previously created by invoking the `CreateDraft method`.<br><br>Committing a draft replaces the corresponding published object. |
| --- | --- | --- |
| [CommitDraftAsync(AsyncHandle, String)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.CommitDraftAsync.htm#Qlik_Engine_IApp_CommitDraftAsync_Qlik_Engine_AsyncHandle_System_String_) |  | Commits the draft of an object that was previously created by invoking the `CreateDraft method`.<br><br>Committing a draft replaces the corresponding published object. |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.CommitDraftAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.CommitDraftAsync.htm)

## CommitDraftAsync(String)

Commits the draft of an object that was previously created by invoking the `CreateDraft method`.

Committing a draft replaces the corresponding published object.

### Declaration

```

          [Obsolete("")]
Task CommitDraftAsync([QixName("qId")] string id)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | id | Identifier of the draft to commit. |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task |  |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.CommitDraftAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.CommitDraftAsync.htm)

## CommitDraftAsync(AsyncHandle, String)

Commits the draft of an object that was previously created by invoking the `CreateDraft method`.

Committing a draft replaces the corresponding published object.

### Declaration

```

          [Obsolete("")]
Task CommitDraftAsync(AsyncHandle asyncHandle, [QixName("qId")] string id)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |
| System.String | id | Identifier of the draft to commit. |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task |  |