All URIs are relative to https://api.hubapi.com
| Method | HTTP request | Description |
|---|---|---|
| DeleteCmsV3BlogsAuthorsObjectIdArchive | DELETE /cms/v3/blogs/authors/{objectId} | Delete a Blog Author |
| GetCmsV3BlogsAuthorsGetPage | GET /cms/v3/blogs/authors | Get all Blog Authors |
| GetCmsV3BlogsAuthorsObjectIdGetById | GET /cms/v3/blogs/authors/{objectId} | Retrieve a Blog Author |
| PatchCmsV3BlogsAuthorsObjectIdUpdate | PATCH /cms/v3/blogs/authors/{objectId} | Update a Blog Author |
| PostCmsV3BlogsAuthorsBatchArchiveArchiveBatch | POST /cms/v3/blogs/authors/batch/archive | Delete a batch of Blog Authors |
| PostCmsV3BlogsAuthorsBatchCreateCreateBatch | POST /cms/v3/blogs/authors/batch/create | Create a batch of Blog Authors |
| PostCmsV3BlogsAuthorsBatchReadReadBatch | POST /cms/v3/blogs/authors/batch/read | Retrieve a batch of Blog Authors |
| PostCmsV3BlogsAuthorsBatchUpdateUpdateBatch | POST /cms/v3/blogs/authors/batch/update | Update a batch of Blog Authors |
| PostCmsV3BlogsAuthorsCreate | POST /cms/v3/blogs/authors | Create a new Blog Author |
| PostCmsV3BlogsAuthorsMultiLanguageAttachToLangGroup | POST /cms/v3/blogs/authors/multi-language/attach-to-lang-group | Attach a Blog Author to a multi-language group |
| PostCmsV3BlogsAuthorsMultiLanguageCreateLanguageVariation | POST /cms/v3/blogs/authors/multi-language/create-language-variation | Create a new language variation |
| PostCmsV3BlogsAuthorsMultiLanguageDetachFromLangGroup | POST /cms/v3/blogs/authors/multi-language/detach-from-lang-group | Detach a Blog Author from a multi-language group |
| PostCmsV3BlogsAuthorsMultiLanguageUpdateLanguages | POST /cms/v3/blogs/authors/multi-language/update-languages | Update languages of multi-language group |
| PutCmsV3BlogsAuthorsMultiLanguageSetNewLangPrimary | PUT /cms/v3/blogs/authors/multi-language/set-new-lang-primary | Set a new primary language |
void DeleteCmsV3BlogsAuthorsObjectIdArchive (string objectId, bool? archived = null)
Delete a Blog Author
Delete the Blog Author object identified by the id in the path.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class DeleteCmsV3BlogsAuthorsObjectIdArchiveExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BlogAuthorsApi(config);
var objectId = "objectId_example"; // string | The Blog Author id.
var archived = true; // bool? | Whether to return only results that have been archived. (optional)
try
{
// Delete a Blog Author
apiInstance.DeleteCmsV3BlogsAuthorsObjectIdArchive(objectId, archived);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BlogAuthorsApi.DeleteCmsV3BlogsAuthorsObjectIdArchive: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| objectId | string | The Blog Author id. | |
| archived | bool? | Whether to return only results that have been archived. | [optional] |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 204 | No content | - |
| 0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CollectionResponseWithTotalBlogAuthorForwardPaging GetCmsV3BlogsAuthorsGetPage (DateTimeOffset? createdAt = null, DateTimeOffset? createdAfter = null, DateTimeOffset? createdBefore = null, DateTimeOffset? updatedAt = null, DateTimeOffset? updatedAfter = null, DateTimeOffset? updatedBefore = null, List sort = null, string after = null, int? limit = null, bool? archived = null)
Get all Blog Authors
Get the list of blog authors. Supports paging and filtering. This method would be useful for an integration that examined these models and used an external service to suggest edits.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCmsV3BlogsAuthorsGetPageExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BlogAuthorsApi(config);
var createdAt = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTimeOffset? | Only return Blog Authors created at exactly the specified time. (optional)
var createdAfter = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTimeOffset? | Only return Blog Authors created after the specified time. (optional)
var createdBefore = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTimeOffset? | Only return Blog Authors created before the specified time. (optional)
var updatedAt = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTimeOffset? | Only return Blog Authors last updated at exactly the specified time. (optional)
var updatedAfter = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTimeOffset? | Only return Blog Authors last updated after the specified time. (optional)
var updatedBefore = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTimeOffset? | Only return Blog Authors last updated before the specified time. (optional)
var sort = new List<string>(); // List<string> | Specifies which fields to use for sorting results. Valid fields are `name`, `createdAt`, `updatedAt`, `createdBy`, `updatedBy`. `createdAt` will be used by default. (optional)
var after = "after_example"; // string | The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional)
var limit = 56; // int? | The maximum number of results to return. Default is 100. (optional)
var archived = true; // bool? | Specifies whether to return deleted Blog Authors. Defaults to `false`. (optional)
try
{
// Get all Blog Authors
CollectionResponseWithTotalBlogAuthorForwardPaging result = apiInstance.GetCmsV3BlogsAuthorsGetPage(createdAt, createdAfter, createdBefore, updatedAt, updatedAfter, updatedBefore, sort, after, limit, archived);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BlogAuthorsApi.GetCmsV3BlogsAuthorsGetPage: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| createdAt | DateTimeOffset? | Only return Blog Authors created at exactly the specified time. | [optional] |
| createdAfter | DateTimeOffset? | Only return Blog Authors created after the specified time. | [optional] |
| createdBefore | DateTimeOffset? | Only return Blog Authors created before the specified time. | [optional] |
| updatedAt | DateTimeOffset? | Only return Blog Authors last updated at exactly the specified time. | [optional] |
| updatedAfter | DateTimeOffset? | Only return Blog Authors last updated after the specified time. | [optional] |
| updatedBefore | DateTimeOffset? | Only return Blog Authors last updated before the specified time. | [optional] |
| sort | List<string> | Specifies which fields to use for sorting results. Valid fields are `name`, `createdAt`, `updatedAt`, `createdBy`, `updatedBy`. `createdAt` will be used by default. | [optional] |
| after | string | The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. | [optional] |
| limit | int? | The maximum number of results to return. Default is 100. | [optional] |
| archived | bool? | Specifies whether to return deleted Blog Authors. Defaults to `false`. | [optional] |
CollectionResponseWithTotalBlogAuthorForwardPaging
No authorization required
- Content-Type: Not defined
- Accept: application/json, /
| Status code | Description | Response headers |
|---|---|---|
| 200 | successful operation | - |
| 0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BlogAuthor GetCmsV3BlogsAuthorsObjectIdGetById (string objectId, bool? archived = null)
Retrieve a Blog Author
Retrieve the Blog Author object identified by the id in the path.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCmsV3BlogsAuthorsObjectIdGetByIdExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BlogAuthorsApi(config);
var objectId = "objectId_example"; // string | The Blog Author id.
var archived = true; // bool? | Specifies whether to return deleted Blog Authors. Defaults to `false`. (optional)
try
{
// Retrieve a Blog Author
BlogAuthor result = apiInstance.GetCmsV3BlogsAuthorsObjectIdGetById(objectId, archived);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BlogAuthorsApi.GetCmsV3BlogsAuthorsObjectIdGetById: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| objectId | string | The Blog Author id. | |
| archived | bool? | Specifies whether to return deleted Blog Authors. Defaults to `false`. | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json, /
| Status code | Description | Response headers |
|---|---|---|
| 200 | successful operation | - |
| 0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BlogAuthor PatchCmsV3BlogsAuthorsObjectIdUpdate (string objectId, BlogAuthor blogAuthor, bool? archived = null)
Update a Blog Author
Sparse updates a single Blog Author object identified by the id in the path. All the column values need not be specified. Only the that need to be modified can be specified.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PatchCmsV3BlogsAuthorsObjectIdUpdateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BlogAuthorsApi(config);
var objectId = "objectId_example"; // string | The Blog Author id.
var blogAuthor = new BlogAuthor(); // BlogAuthor | The JSON representation of the updated Blog Author.
var archived = true; // bool? | Specifies whether to update deleted Blog Authors. Defaults to `false`. (optional)
try
{
// Update a Blog Author
BlogAuthor result = apiInstance.PatchCmsV3BlogsAuthorsObjectIdUpdate(objectId, blogAuthor, archived);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BlogAuthorsApi.PatchCmsV3BlogsAuthorsObjectIdUpdate: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| objectId | string | The Blog Author id. | |
| blogAuthor | BlogAuthor | The JSON representation of the updated Blog Author. | |
| archived | bool? | Specifies whether to update deleted Blog Authors. Defaults to `false`. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json, /
| Status code | Description | Response headers |
|---|---|---|
| 200 | successful operation | - |
| 0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void PostCmsV3BlogsAuthorsBatchArchiveArchiveBatch (BatchInputString batchInputString)
Delete a batch of Blog Authors
Delete the Blog Author objects identified in the request body.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PostCmsV3BlogsAuthorsBatchArchiveArchiveBatchExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BlogAuthorsApi(config);
var batchInputString = new BatchInputString(); // BatchInputString | The JSON array of Blog Author ids.
try
{
// Delete a batch of Blog Authors
apiInstance.PostCmsV3BlogsAuthorsBatchArchiveArchiveBatch(batchInputString);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BlogAuthorsApi.PostCmsV3BlogsAuthorsBatchArchiveArchiveBatch: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| batchInputString | BatchInputString | The JSON array of Blog Author ids. |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 204 | No content | - |
| 0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BatchResponseBlogAuthor PostCmsV3BlogsAuthorsBatchCreateCreateBatch (BatchInputBlogAuthor batchInputBlogAuthor)
Create a batch of Blog Authors
Create the Blog Author objects detailed in the request body.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PostCmsV3BlogsAuthorsBatchCreateCreateBatchExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BlogAuthorsApi(config);
var batchInputBlogAuthor = new BatchInputBlogAuthor(); // BatchInputBlogAuthor | The JSON array of new Blog Authors to create.
try
{
// Create a batch of Blog Authors
BatchResponseBlogAuthor result = apiInstance.PostCmsV3BlogsAuthorsBatchCreateCreateBatch(batchInputBlogAuthor);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BlogAuthorsApi.PostCmsV3BlogsAuthorsBatchCreateCreateBatch: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| batchInputBlogAuthor | BatchInputBlogAuthor | The JSON array of new Blog Authors to create. |
No authorization required
- Content-Type: application/json
- Accept: application/json, /
| Status code | Description | Response headers |
|---|---|---|
| 201 | successful operation | - |
| 207 | multiple statuses | - |
| 0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BatchResponseBlogAuthor PostCmsV3BlogsAuthorsBatchReadReadBatch (BatchInputString batchInputString, bool? archived = null)
Retrieve a batch of Blog Authors
Retrieve the Blog Author objects identified in the request body.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PostCmsV3BlogsAuthorsBatchReadReadBatchExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BlogAuthorsApi(config);
var batchInputString = new BatchInputString(); // BatchInputString | The JSON array of Blog Author ids.
var archived = true; // bool? | Specifies whether to return deleted Blog Authors. Defaults to `false`. (optional)
try
{
// Retrieve a batch of Blog Authors
BatchResponseBlogAuthor result = apiInstance.PostCmsV3BlogsAuthorsBatchReadReadBatch(batchInputString, archived);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BlogAuthorsApi.PostCmsV3BlogsAuthorsBatchReadReadBatch: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| batchInputString | BatchInputString | The JSON array of Blog Author ids. | |
| archived | bool? | Specifies whether to return deleted Blog Authors. Defaults to `false`. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json, /
| Status code | Description | Response headers |
|---|---|---|
| 200 | successful operation | - |
| 207 | multiple statuses | - |
| 0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BatchResponseBlogAuthor PostCmsV3BlogsAuthorsBatchUpdateUpdateBatch (BatchInputJsonNode batchInputJsonNode, bool? archived = null)
Update a batch of Blog Authors
Update the Blog Author objects identified in the request body.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PostCmsV3BlogsAuthorsBatchUpdateUpdateBatchExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BlogAuthorsApi(config);
var batchInputJsonNode = new BatchInputJsonNode(); // BatchInputJsonNode | A JSON array of the JSON representations of the updated Blog Authors.
var archived = true; // bool? | Specifies whether to update deleted Blog Authors. Defaults to `false`. (optional)
try
{
// Update a batch of Blog Authors
BatchResponseBlogAuthor result = apiInstance.PostCmsV3BlogsAuthorsBatchUpdateUpdateBatch(batchInputJsonNode, archived);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BlogAuthorsApi.PostCmsV3BlogsAuthorsBatchUpdateUpdateBatch: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| batchInputJsonNode | BatchInputJsonNode | A JSON array of the JSON representations of the updated Blog Authors. | |
| archived | bool? | Specifies whether to update deleted Blog Authors. Defaults to `false`. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json, /
| Status code | Description | Response headers |
|---|---|---|
| 200 | successful operation | - |
| 207 | multiple statuses | - |
| 0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BlogAuthor PostCmsV3BlogsAuthorsCreate (BlogAuthor blogAuthor)
Create a new Blog Author
Create a new Blog Author.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PostCmsV3BlogsAuthorsCreateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BlogAuthorsApi(config);
var blogAuthor = new BlogAuthor(); // BlogAuthor | The JSON representation of a new Blog Author.
try
{
// Create a new Blog Author
BlogAuthor result = apiInstance.PostCmsV3BlogsAuthorsCreate(blogAuthor);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BlogAuthorsApi.PostCmsV3BlogsAuthorsCreate: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| blogAuthor | BlogAuthor | The JSON representation of a new Blog Author. |
No authorization required
- Content-Type: application/json
- Accept: application/json, /
| Status code | Description | Response headers |
|---|---|---|
| 201 | successful operation | - |
| 0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Error PostCmsV3BlogsAuthorsMultiLanguageAttachToLangGroup (AttachToLangPrimaryRequestVNext attachToLangPrimaryRequestVNext)
Attach a Blog Author to a multi-language group
Attach a Blog Author to a multi-language group.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PostCmsV3BlogsAuthorsMultiLanguageAttachToLangGroupExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BlogAuthorsApi(config);
var attachToLangPrimaryRequestVNext = new AttachToLangPrimaryRequestVNext(); // AttachToLangPrimaryRequestVNext | The JSON representation of the AttachToLangPrimaryRequest object.
try
{
// Attach a Blog Author to a multi-language group
Error result = apiInstance.PostCmsV3BlogsAuthorsMultiLanguageAttachToLangGroup(attachToLangPrimaryRequestVNext);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BlogAuthorsApi.PostCmsV3BlogsAuthorsMultiLanguageAttachToLangGroup: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| attachToLangPrimaryRequestVNext | AttachToLangPrimaryRequestVNext | The JSON representation of the AttachToLangPrimaryRequest object. |
No authorization required
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BlogAuthor PostCmsV3BlogsAuthorsMultiLanguageCreateLanguageVariation (BlogAuthorCloneRequestVNext blogAuthorCloneRequestVNext)
Create a new language variation
Create a new language variation from an existing Blog Author.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PostCmsV3BlogsAuthorsMultiLanguageCreateLanguageVariationExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BlogAuthorsApi(config);
var blogAuthorCloneRequestVNext = new BlogAuthorCloneRequestVNext(); // BlogAuthorCloneRequestVNext | The JSON representation of the ContentLanguageCloneRequest object.
try
{
// Create a new language variation
BlogAuthor result = apiInstance.PostCmsV3BlogsAuthorsMultiLanguageCreateLanguageVariation(blogAuthorCloneRequestVNext);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BlogAuthorsApi.PostCmsV3BlogsAuthorsMultiLanguageCreateLanguageVariation: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| blogAuthorCloneRequestVNext | BlogAuthorCloneRequestVNext | The JSON representation of the ContentLanguageCloneRequest object. |
No authorization required
- Content-Type: application/json
- Accept: application/json, /
| Status code | Description | Response headers |
|---|---|---|
| 200 | successful operation | - |
| 0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Error PostCmsV3BlogsAuthorsMultiLanguageDetachFromLangGroup (DetachFromLangGroupRequestVNext detachFromLangGroupRequestVNext)
Detach a Blog Author from a multi-language group
Detach a Blog Author from a multi-language group.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PostCmsV3BlogsAuthorsMultiLanguageDetachFromLangGroupExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BlogAuthorsApi(config);
var detachFromLangGroupRequestVNext = new DetachFromLangGroupRequestVNext(); // DetachFromLangGroupRequestVNext | The JSON representation of the DetachFromLangGroupRequest object.
try
{
// Detach a Blog Author from a multi-language group
Error result = apiInstance.PostCmsV3BlogsAuthorsMultiLanguageDetachFromLangGroup(detachFromLangGroupRequestVNext);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BlogAuthorsApi.PostCmsV3BlogsAuthorsMultiLanguageDetachFromLangGroup: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| detachFromLangGroupRequestVNext | DetachFromLangGroupRequestVNext | The JSON representation of the DetachFromLangGroupRequest object. |
No authorization required
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Error PostCmsV3BlogsAuthorsMultiLanguageUpdateLanguages (UpdateLanguagesRequestVNext updateLanguagesRequestVNext)
Update languages of multi-language group
Explicitly set new languages for each Blog Author in a multi-language group.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PostCmsV3BlogsAuthorsMultiLanguageUpdateLanguagesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BlogAuthorsApi(config);
var updateLanguagesRequestVNext = new UpdateLanguagesRequestVNext(); // UpdateLanguagesRequestVNext | The JSON representation of the UpdateLanguagesRequest object.
try
{
// Update languages of multi-language group
Error result = apiInstance.PostCmsV3BlogsAuthorsMultiLanguageUpdateLanguages(updateLanguagesRequestVNext);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BlogAuthorsApi.PostCmsV3BlogsAuthorsMultiLanguageUpdateLanguages: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| updateLanguagesRequestVNext | UpdateLanguagesRequestVNext | The JSON representation of the UpdateLanguagesRequest object. |
No authorization required
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void PutCmsV3BlogsAuthorsMultiLanguageSetNewLangPrimary (SetNewLanguagePrimaryRequestVNext setNewLanguagePrimaryRequestVNext)
Set a new primary language
Set a Blog Author as the primary language of a multi-language group.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PutCmsV3BlogsAuthorsMultiLanguageSetNewLangPrimaryExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BlogAuthorsApi(config);
var setNewLanguagePrimaryRequestVNext = new SetNewLanguagePrimaryRequestVNext(); // SetNewLanguagePrimaryRequestVNext | The JSON representation of the SetNewLanguagePrimaryRequest object.
try
{
// Set a new primary language
apiInstance.PutCmsV3BlogsAuthorsMultiLanguageSetNewLangPrimary(setNewLanguagePrimaryRequestVNext);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BlogAuthorsApi.PutCmsV3BlogsAuthorsMultiLanguageSetNewLangPrimary: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| setNewLanguagePrimaryRequestVNext | SetNewLanguagePrimaryRequestVNext | The JSON representation of the SetNewLanguagePrimaryRequest object. |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 204 | No content | - |
| 0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]