Updating projects

Update an existing project.

Before you begin

  • Any user having write access to the project can update the project.
  • Project owner or an administrator can change the project access from public to private.

Procedure

  1. In a REST client platform, add the authentication details of the tenant that is associated with the project you want to update.
    
    //In case of Instance API key 
    Headers:
    {
    "x-instance-api-key": "instance_api_key"
    }
     
    // In case of MCSP or ISV token
    Headers:
    {
    "Authorization": "Bearer mcsp_or_isv_token"
    }
    Body: 
    {
          "name": "<project_name>",
          "visibility": "<Indicates the project access. It can be either private or public>",
    }
  2. Make a PUT request to the URL of the project.

    URL Syntax: <domain>/apis/v1/rest/projects/:project

    In this URL request, /:project is the UID or name of the project you want to update.

    Method: PUT

    If the request is successful, you receive the response code for success.
    
      output : 
    		{
    		name: <project_name>,
    		uid: <project_uid>,
    		tenant_uid: <project_tenant_uid>,
    		workflow_count: <workflow_count>,
    		flowservice_count: <flowservice_count>
                  visibility: <Indicates the project access. It can be either private or public>,
    		}