Create a template from an action step
POST/api/v1/ActionTemplate/action/:actionId
Creates a new user-defined action template from an existing action step and returns it. The template is named after the step (or after the step's own template when the step has no name) and copies the description, definition, icon and parameters from the step's template. A parameter that has a value on the step becomes optional, with that value as its default. The classification is not copied, so the new template has classification 0 (PreSession).
Permission required: Requires the Admin or App role.
Values for classification: 0 = PreSession, 1 = Session, 2 = PostSession, 3 = Internal, 4 = Any.
Request
Responses
- 200
- 400
The new action template.
No action step has this ID, or a user-defined template with the same name already exists; the body holds the error text.