Creating recipes

Create a new recipe in a particular tenant.

Procedure

  1. In a REST client platform, add the authentication details of the tenant where you want to create a recipe.
    
    //In case of Instance API key 
    Headers:
    {
    "x-instance-api-key": "instance_api_key"
    }
     
    // In case of MCSP or ISV token
    Headers:
    {
    "Authorization": "mcsp_or_isv_token"
    }
    Body:
    {
    recipe: <zip_file_binary>
    }
  2. Make a POST request at the URL of the project.

    URL syntax: <domain>/apis/v1/rest/recipes

    Method: POST

    If the request is successful, you receive the response code for success.
    {
    output: 
    	{        
    	"uid": <recipe_uid>
    	"name": "<recipe_name>",
    	"description": "<description>"              	           
    	}     
    }