Edit a Function

After clicking on a Function, a menu as shown below is displayed.


Figure 1.
  1. In the General tab, edit the function:
    Option Description
    Status Indicates if the Function is deployed or not.
    Endpoint Enable/disable the endpoint.
    Note: You can delete a Function without disabling it first.
    Description Function description.
    Invocations Indicates the number of times the Function has been called.
  2. Click on the Code tab to edit the code associated with the Function. All changes related to code (change of template and the code itself) can be edited from here.
  3. Click on the Test button. This opens the API inspector to test the invocation of your Function. It allows you to "send" the inputs parameters to the Function and receive the solution in the test response section.


    Figure 2.
    1. You can also try the following endpoints to retrieve the inputs and the outputs of your Function:
      /spaces/YourSpaceID/functions/YourFunctionName/invoke/inputs
      /spaces/YourSpaceID/functions/YourFunctionName/invoke/outputs


      Figure 3.