Skip to main content

Copy an activity

POST 

/api/v1/Activity/copy

Creates a new activity from an existing one. Set the id in the request body to the activity to copy and supply the settings for the new activity, including a new name. Settings you leave out take default values; they are not copied from the original activity. The copy gets its own copies of the original's start, during and end steps, and, when the body includes a connection profile id, its own copy of the original activity's connection profile settings. The creation is recorded in the event log.

Permission required: Administrator role. The signed-in session must have completed multifactor authentication.

Values for activityType: 0 = Interactive, 1 = InteractiveAppLaunch, 2 = TaskAutomation, 3 = CredentialRelease, 4 = FileRelease.

Values for loginAccount: 0 = Requester, 1 = Managed, 2 = ActivityIdentity (shown as Activity Token in the console), 3 = Vault, 4 = Resource.

Values for requesterLoginFormat: 0 = Samaccountname (Domain\SamAccountName), 1 = UPN (User Principal Name), 2 = Email, 3 = SamAccountNameOnly (SamAccountName), 4 = Custom.

Request​

Responses​

The copy is created. The response body is the new activity, and the Location header points to it.