Loading...

Description

Reactivates the action


Request URL

PUT   https://api.3seventy.com/api/v2.1/account/{accountId}/action/{actionId}

Request Properties

Parameter Description Mandatory
accountId The account Id which owns the action. Yes
actionId Disabled action to reactivate. Yes

Response Properties

Property Description
Id The Unique Id of the Action.
TypeId Type of Action.
AccountId Account Id which owns the Action.
StatusId Resource Status Id of the Action
Created Date on which the Action is created.
Modified Date on which the Action has been recently modified.
CreatedBy Name of the user who created the Action.
ModifiedBy Name of the user who modified the Action.

C#
PHP


using System;
using System.Collections.Generic;
using ThreeSeventy.Vector.Client;
using Action = ThreeSeventy.Vector.Client.Models.Action;
using ThreeSeventy.Vector.Client.Models;

public class Program

{

         private static void Main(string[] args)

{

const int accountId = XXXX;

const int actionId = XXXX;

var context = new T70Context();

var actionRepo = context.Repository<Action>(new { AccountId = accountId });

var item = actionRepo.Get(actionId);

//Activates the deleted Action

actionRepo.Update(item);

}

}

Stay tuned for JAVA code snippet
Stay tuned for RUBY code snippet
Stay tuned for PHP code snippet