All URIs are relative to https://www.exacttargetapis.com
Method | HTTP request | Description |
---|---|---|
createAsset | POST /asset/v1/content/assets | createAsset |
deleteAssetById | DELETE /asset/v1/content/assets/{id} | deleteAssetById |
getAssetById | GET /asset/v1/content/assets/{id} | getAssetById |
partiallyUpdateAssetById | PATCH /asset/v1/content/assets/{id} | partiallyUpdateAssetById |
Asset createAsset(body)
createAsset
Creates a new asset.
const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk');
let apiInstance = new SalesforceMarketingCloud.AssetApi();
let body = new SalesforceMarketingCloud.Asset(); // Asset | JSON Parameters
apiInstance.createAsset(body).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
body | Asset | JSON Parameters |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
deleteAssetById(id)
deleteAssetById
Deletes an asset.
const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk');
let apiInstance = new SalesforceMarketingCloud.AssetApi();
let id = 8.14; // Number | The ID of the asset to delete
apiInstance.deleteAssetById(id).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | The ID of the asset to delete |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Asset getAssetById(id)
getAssetById
Gets an asset by ID.
const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk');
let apiInstance = new SalesforceMarketingCloud.AssetApi();
let id = 8.14; // Number | The ID of the asset
apiInstance.getAssetById(id).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | The ID of the asset |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Asset partiallyUpdateAssetById(id, body)
partiallyUpdateAssetById
Updates part of an asset.
const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk');
let apiInstance = new SalesforceMarketingCloud.AssetApi();
let id = 8.14; // Number | The ID of the asset to update
let body = new SalesforceMarketingCloud.Asset(); // Asset | JSON Parameters
apiInstance.partiallyUpdateAssetById(id, body).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | The ID of the asset to update | |
body | Asset | JSON Parameters |
No authorization required
- Content-Type: Not defined
- Accept: Not defined