Create Tenant To Upload A Package To Process Create Modern Folder In Orchestrator Using The Command Line

Need API command line to create a process.

To Create a Tenant, a Modern folder, and process using the Command line:

  1. To Create a new tenant with the host credentials and using a bearer token :
    • These parameters are generated by using the swagger API here need to specify the Url of the orchestrator tenants, Name: Tenant name, Admin name: your admin username, Admin password: your admin password these are the required parameters for creating the tenant at the host level. Here below provided the sample API call
    • API Call : curl -X POST "https://desktop-1t973ck/odata/Tenants" -H "accept: application/json" -H <Bearer Token> "Content-Type: application/json;odata.metadata=minimal;odata.streaming=true" -d "{ \"Name\": \"ClientDemo\", \"AdminName\": \"<AdminUsername>\", \"AdminPassword\": \"<AdminPassword>\", \"IsActive\": true, \"HasConnectionString\": true}"
  1. To Create a process using the admin credentials of the tenant using of bearer token :
    • To create a process in the modern folder using the API call with the parameters are Orchestrator URL: https://desktop-1t973ck/odata/Releases, X-UIPATH-OrganizationUnitId = different for every organization(33), ProcessKey =Processname(CreateFormTask) , ProcessVersion =1.0.1, Name = Create Form task
      • API Call : curl -X POST "https://desktop-1t973ck/odata/Releases" -H "accept: application/json" -H "X-UIPATH-OrganizationUnitId: 33" -H <BearerToken>"Content-Type: application/json;odata.metadata=minimal;odata.streaming=true" -d "{ \"ProcessKey\": \"CreateFormTask\", \"ProcessVersion\": \"1.0.1\", \"IsLatestVersion\": false, \"IsProcessDeleted\": false, \"Description\": \"string\", \"Name\": \"CreateFormTask\",\"EntryPointId\":1, \"TargetFramework\": \"Legacy\"}"
  1. To Create a modern folder using the admin credentials of the tenant and using of Bearer token
    • In this, below API call the parameters were to create a modern folder- folders Orchestrator Url: https://desktop-1t973ck/odata/Folders, Fully Qualified name= Foldername(Test1234), Feed Type= Processes.
      • API call: curl -X POST "https://desktop-1t973ck/odata/Folders" -H "accept: application/json" -H "Content-Type: application/json <Bearer Token>;odata.metadata=minimal;odata.streaming=true" -d {\"DisplayName\":\"Test1234\",\"FullyQualifiedName\":\"Test1234\",\"ProvisionType\":\"Automatic\",\"PermissionModel\":\"FineGrained\",\"FeedType\":\"Processes\"}"