Skip to content

Commit a058517

Browse files
Merge pull request #93 from contentstack/staging
DX | 28-07-2025 | Release
2 parents bcaa241 + bbca793 commit a058517

File tree

5 files changed

+15
-12
lines changed

5 files changed

+15
-12
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
# Changelog
2+
## [v0.3.1](https://github.com/contentstack/contentstack-management-dotnet/tree/v0.3.1)
3+
- Fix
4+
- Fixed apiVersion param in Publish/Unpublish methods
5+
26
## [v0.3.0](https://github.com/contentstack/contentstack-management-dotnet/tree/v0.3.0)
37
- Feat
48
- Bulk Operations:
59
- Added Support for the bulk operations of Publish, Unpublish, Delete, Workflow Update, addRelease Items, Update Release Items, Job-Status both sync and async methods
610
- Nested Global Fields:
711
Added the support for the nested global fields for all the CRUD Operations
812

9-
# Changelog
1013
## [v0.2.0](https://github.com/contentstack/contentstack-management-dotnet/tree/v0.2.0)
1114
- Fix
1215
- Fixed the Single Publish issue with specific entry version (Changing the type from String to Int)

Contentstack.Management.Core/ContentstackClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class ContentstackClient : IContentstackClient
3535
private HttpClient _httpClient;
3636
private bool _disposed = false;
3737

38-
private string Version => "0.3.0";
38+
private string Version => "0.3.1";
3939
private string xUserAgent => $"contentstack-management-dotnet/{Version}";
4040
#endregion
4141

Contentstack.Management.Core/Models/Asset.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ public virtual ContentstackResponse Publish(PublishUnpublishDetails details, str
251251
stack.ThrowIfNotLoggedIn();
252252
ThrowIfUidEmpty();
253253

254-
var service = new PublishUnpublishService(stack.client.serializer, stack, details, $"{resourcePath}/publish", "asset", apiVersion);
255-
return stack.client.InvokeSync(service);
254+
var service = new PublishUnpublishService(stack.client.serializer, stack, details, $"{resourcePath}/publish", "asset");
255+
return stack.client.InvokeSync(service, apiVersion: apiVersion);
256256
}
257257

258258
/// <summary>
@@ -271,8 +271,8 @@ public virtual Task<ContentstackResponse> PublishAsync(PublishUnpublishDetails d
271271
stack.ThrowIfNotLoggedIn();
272272
ThrowIfUidEmpty();
273273

274-
var service = new PublishUnpublishService(stack.client.serializer, stack, details, $"{resourcePath}/publish", "asset", apiVersion);
275-
return stack.client.InvokeAsync<PublishUnpublishService, ContentstackResponse>(service);
274+
var service = new PublishUnpublishService(stack.client.serializer, stack, details, $"{resourcePath}/publish", "asset");
275+
return stack.client.InvokeAsync<PublishUnpublishService, ContentstackResponse>(service, apiVersion: apiVersion);
276276
}
277277

278278
/// <summary>
@@ -291,8 +291,8 @@ public virtual ContentstackResponse Unpublish(PublishUnpublishDetails details, s
291291
stack.ThrowIfNotLoggedIn();
292292
ThrowIfUidEmpty();
293293

294-
var service = new PublishUnpublishService(stack.client.serializer, stack, details, $"{resourcePath}/unpublish", "asset", apiVersion);
295-
return stack.client.InvokeSync(service);
294+
var service = new PublishUnpublishService(stack.client.serializer, stack, details, $"{resourcePath}/unpublish", "asset");
295+
return stack.client.InvokeSync(service, apiVersion: apiVersion);
296296
}
297297

298298
/// <summary>
@@ -311,8 +311,8 @@ public virtual Task<ContentstackResponse> UnpublishAsync(PublishUnpublishDetails
311311
stack.ThrowIfNotLoggedIn();
312312
ThrowIfUidEmpty();
313313

314-
var service = new PublishUnpublishService(stack.client.serializer, stack, details, $"{resourcePath}/unpublish", "asset", apiVersion);
315-
return stack.client.InvokeAsync<PublishUnpublishService, ContentstackResponse>(service);
314+
var service = new PublishUnpublishService(stack.client.serializer, stack, details, $"{resourcePath}/unpublish", "asset");
315+
return stack.client.InvokeAsync<PublishUnpublishService, ContentstackResponse>(service, apiVersion: apiVersion);
316316
}
317317

318318
/// <summary>

Contentstack.Management.Core/Models/Entry.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ public virtual ContentstackResponse Publish(PublishUnpublishDetails details, str
420420
ThrowIfUidEmpty();
421421

422422
var service = new PublishUnpublishService(stack.client.serializer, stack, details, $"{resourcePath}/publish", "entry", locale);
423-
return stack.client.InvokeSync(service);
423+
return stack.client.InvokeSync(service, apiVersion: apiVersion);
424424
}
425425

426426
/// <summary>

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>0.3.0</Version>
3+
<Version>0.3.1</Version>
44
</PropertyGroup>
55
</Project>

0 commit comments

Comments
 (0)