Skip to main content
Glama

update_activity_priority

Modify the priority of an Adobe Target activity by specifying the tenant and new priority value, enabling efficient activity management through the Postman MCP Generator.

Instructions

Update the priority of an activity in Adobe Target.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
priorityYesThe new priority value for the activity.
tenantYesThe tenant identifier.

Implementation Reference

  • The handler function that performs the actual logic: makes a PUT request to the Adobe Target API to update the priority of activity ID 168816 for the given tenant.
    const executeFunction = async ({ tenant, priority }) => { const baseUrl = 'https://mc.adobe.io'; const token = process.env.ADOBE_API_KEY; const apiKey = process.env.ADOBE_API_KEY; try { // Construct the URL for the request const url = `${baseUrl}/${tenant}/target/activities/ab/168816/priority`; // Set up headers for the request const headers = { 'Authorization': `Bearer ${token}`, 'X-Api-Key': apiKey, 'Content-Type': 'application/vnd.adobe.target.v1+json' }; // Prepare the body data for the request const body = JSON.stringify({ priority }); // Perform the fetch request const response = await fetch(url, { method: 'PUT', headers, body }); // Check if the response was successful if (!response.ok) { const errorData = await response.json(); throw new Error(errorData); } // Parse and return the response data const data = await response.json(); return data; } catch (error) { console.error('Error updating activity priority:', error); return { error: 'An error occurred while updating activity priority.' }; } };
  • Input schema defining the required parameters: tenant (string) and priority (string).
    type: 'object', properties: { tenant: { type: 'string', description: 'The tenant identifier.' }, priority: { type: 'string', description: 'The new priority value for the activity.' } }, required: ['tenant', 'priority'] }
  • The tool registration object 'apiTool' that binds the handler function to the schema and exports it for discovery/registration in the MCP tools system.
    const apiTool = { function: executeFunction, definition: { type: 'function', function: { name: 'update_activity_priority', description: 'Update the priority of an activity in Adobe Target.', parameters: { type: 'object', properties: { tenant: { type: 'string', description: 'The tenant identifier.' }, priority: { type: 'string', description: 'The new priority value for the activity.' } }, required: ['tenant', 'priority'] } } } }; export { apiTool };

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/punkpeye/mcpserveronline'

If you have feedback or need assistance with the MCP directory API, please join our Discord server