@POST
   @Path("{actionName}")
   @Produces(MediaType.TEXT_PLAIN)
   @ApiOperation(value = "Creates an action definition - Currently Not Supported",
       nickname = "ActionService#createActionDefinition"
   )
   @ApiImplicitParams({
       @ApiImplicitParam(dataType = ACTION_REQUEST_TYPE, paramType = "body", allowMultiple = false)
   })
   @ApiResponses({
       @ApiResponse(code = HttpStatus.SC_BAD_REQUEST, message = MSG_INVALID_REQUEST),
       @ApiResponse(code = HttpStatus.SC_UNAUTHORIZED, message = MSG_NOT_AUTHENTICATED),
       @ApiResponse(code = HttpStatus.SC_FORBIDDEN, message = MSG_PERMISSION_DENIED),
       @ApiResponse(code = HttpStatus.SC_INTERNAL_SERVER_ERROR, message = MSG_SERVER_ERROR),
   })
   public Response createActionDefinition(String body, @Context HttpHeaders headers, @Context UriInfo ui,
                                 @ApiParam(required = true) @PathParam("actionName") String actionName) {

    return handleRequest(headers, body, ui, Request.Type.POST, createActionDefinitionResource(actionName));
  }
Handles: POST /actions/{actionName}
Create a specific action definition.

@param headers     http headers
@param ui          uri info
@param actionName  action name
@return information regarding the action definition being created
ambari-server/src/main/java/org/apache/ambari/server/api/services/ActionService.java