All URIs are relative to https://api.sendx.io/api/v1/rest
| Method | HTTP request | Description |
|---|---|---|
| createPostTag | POST /post/tag | Create post tag |
| deletePostTag | DELETE /post/tag/{identifier} | Delete post tag |
| getAllPostTags | GET /post/tag | Get all post tags |
| getPostTag | GET /post/tag/{identifier} | Get post tag by ID |
| updatePostTag | PUT /post/tag/{identifier} | Update post tag |
RestRPostTag createPostTag(restEPostTag)
Create post tag
Creates a new tag for blog posts.
import sendx from 'sendx-javascript-sdk';
let defaultClient = sendx.ApiClient.instance;
// Configure API key authorization: TeamApiKey
let TeamApiKey = defaultClient.authentications['TeamApiKey'];
TeamApiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//TeamApiKey.apiKeyPrefix = 'Token';
let apiInstance = new sendx.PostTagApi();
let restEPostTag = new sendx.RestEPostTag(); // RestEPostTag |
apiInstance.createPostTag(restEPostTag).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| restEPostTag | RestEPostTag |
- Content-Type: application/json
- Accept: application/json
MessageResponse deletePostTag(identifier)
Delete post tag
Soft deletes a post tag.
import sendx from 'sendx-javascript-sdk';
let defaultClient = sendx.ApiClient.instance;
// Configure API key authorization: TeamApiKey
let TeamApiKey = defaultClient.authentications['TeamApiKey'];
TeamApiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//TeamApiKey.apiKeyPrefix = 'Token';
let apiInstance = new sendx.PostTagApi();
let identifier = "post_tag_leBDiFdrUnRmRz4nfopSrv"; // String | The unique post tag identifier to retrieve. - `post_tag_leBDiFdrUnRmRz4nfopSrv`
apiInstance.deletePostTag(identifier).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| identifier | String | The unique post tag identifier to retrieve. - `post_tag_leBDiFdrUnRmRz4nfopSrv` |
- Content-Type: Not defined
- Accept: application/json
[RestRPostTag] getAllPostTags()
Get all post tags
Retrieves all blog post tags.
import sendx from 'sendx-javascript-sdk';
let defaultClient = sendx.ApiClient.instance;
// Configure API key authorization: TeamApiKey
let TeamApiKey = defaultClient.authentications['TeamApiKey'];
TeamApiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//TeamApiKey.apiKeyPrefix = 'Token';
let apiInstance = new sendx.PostTagApi();
apiInstance.getAllPostTags().then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
RestRPostTag getPostTag(identifier)
Get post tag by ID
Retrieves a specific post tag.
import sendx from 'sendx-javascript-sdk';
let defaultClient = sendx.ApiClient.instance;
// Configure API key authorization: TeamApiKey
let TeamApiKey = defaultClient.authentications['TeamApiKey'];
TeamApiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//TeamApiKey.apiKeyPrefix = 'Token';
let apiInstance = new sendx.PostTagApi();
let identifier = "post_tag_leBDiFdrUnRmRz4nfopSrv"; // String | The unique post tag identifier to retrieve. - `post_tag_leBDiFdrUnRmRz4nfopSrv`
apiInstance.getPostTag(identifier).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| identifier | String | The unique post tag identifier to retrieve. - `post_tag_leBDiFdrUnRmRz4nfopSrv` |
- Content-Type: Not defined
- Accept: application/json
RestRPostTag updatePostTag(restEPostTag, identifier)
Update post tag
Updates a post tag.
import sendx from 'sendx-javascript-sdk';
let defaultClient = sendx.ApiClient.instance;
// Configure API key authorization: TeamApiKey
let TeamApiKey = defaultClient.authentications['TeamApiKey'];
TeamApiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//TeamApiKey.apiKeyPrefix = 'Token';
let apiInstance = new sendx.PostTagApi();
let restEPostTag = new sendx.RestEPostTag(); // RestEPostTag |
let identifier = "post_tag_leBDiFdrUnRmRz4nfopSrv"; // String | The unique post tag identifier to retrieve. - `post_tag_leBDiFdrUnRmRz4nfopSrv`
apiInstance.updatePostTag(restEPostTag, identifier).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| restEPostTag | RestEPostTag | ||
| identifier | String | The unique post tag identifier to retrieve. - `post_tag_leBDiFdrUnRmRz4nfopSrv` |
- Content-Type: application/json
- Accept: application/json