UiPath API接口说明

Swagger网址

私有云网址(企业版)

https://企业/swagger/index.html

公有云网址(社区版)

https://cloud.uipath.com/linan/LinanZhang/orchestrator_/swagger/index.html#/

在这里插入图片描述

常见问题

  1. Swagger页面测试请求时报错“You are not authenticated!”

    解决:先登录OC,再打开Swagger

在这里插入图片描述

Parameters

filter 根据值来筛选

如果希望根据Title来搜索可以在输入$filter中输入如下(value用单引号括起来):

title eq 'Fin_Commercial_OneStopShop_001_KADD'

在这里插入图片描述

请求地址

https://uipathoc.ab.cn/odata/Processes?$Filter=title eq 'ClassicFolder'

top 显示返回的结果集数量

如果只希望返回2条结果,可以输入如下

在这里插入图片描述

请求地址

https://uipathoc.ab.cn/odata/Releases**?$top=2**

Account

获取token

方法:POST

请求地址:https://uipathoc.ab.cn/api/Account/Authenticate

请求体:

tenancyName:租户名(BCC所有的租户名均为null)

username:用户名

password:用户密码

{"tenancyName": null,"usernameOrEmailAddress": "zhanglinan","password": "your_password"
}

响应体:

result:token

{"result": "eyJhbGciOiJSUzI1NiIsImtpZCI6IkQ0NzJDRTcwNzdBOTE5Mjc3MzExRTA5Q0I2RkEyODE4NkREMDNGNkIiLCJ0eXAiOiJKV1QiLCJ4NXQiOiIxSExPY0hlcEdTZHpFZUNjdHZvb0dHM1FQMnMifQ.eyJuYmYiOjE2NjA4ODg4MjksImV4cCI6MTY2MDg5MjcyOSwiaXNzIjoiaHR0cHM6Ly91aXBhdGhvYy5hYi1pbmJldi5jbi9pZGVudGl0eSIsImF1ZCI6WyJJZGVudGl0eVNlcnZlckFwaSIsIk9yY2hlc3RyYXRvckFwaVVzZXJBY2Nlc3MiXSwiY2xpZW50X2lkIjoiNGQ3ZjJiZjItOTA5My00OTU5LTlkNTItYjRhNjYwZjE0ODVmIiwic3ViIjoiZWJjZjBiZDQtN2ViOS00NmZkLWIyMDMtNzkyMDdkYjE5NTkxIiwiYXV0aF90aW1lIjoxNjYwODg5MTI5LCJpZHAiOiJsb2NhbCIsIkFzcE5ldC5JZGVudGl0eS5TZWN1cml0eVN0YW1wIjoiNVIzRE1NSUJLN1FSTkJXMlFPU1hHUUlQRUFXSE1WVEciLCJwcnRfaWQiOiJkZGM0YTM3YS00N2M5LTQxZDEtOGRkZi05ZGViNmNiNGNmNjUiLCJob3N0IjoiRmFsc2UiLCJmaXJzdF9uYW1lIjoibGluYW4iLCJsYXN0X25hbWUiOiJ6aGFuZyIsInBydF9hZG0iOiJGYWxzZSIsInByZWZlcnJlZF91c2VybmFtZSI6InpoYW5nbGluYW4iLCJuYW1lIjoiemhhbmdsaW5hbiIsInNjb3BlIjpbImVtYWlsIiwib3BlbmlkIiwicHJvZmlsZSIsInRlbmFudCIsIklkZW50aXR5U2VydmVyQXBpIiwiT3JjaGVzdHJhdG9yQXBpVXNlckFjY2VzcyJdLCJhbXIiOlsicHdkIl19.YhDrcPhEFTHcXXQdnvAywYKPa0ng6wWbVqEO_g9qQs72dA_puvWk-KDZUrWbhzOfLGdoKi29ao23fm9c-C8r1o9LEYYSBYFjWAUNGiJ9-KWSQs1fs-CrKdk0iVd71pOeDN4-P7c6wTzfZ7pqBU6BofyXyugw0oWuDIoGHQorbtE4ZIcot3y9YD866zyK9wNaHRKEC_rS3_AoQrEvQBlu5sxI7wXFTpAxNeexZDI9JuYLDWKsI3qQ9nj_ioFpB1Ruukmng3Uc4bbJNdxdWmAXnO8ASeG1bc68Lf-H015pn9fXu4HabDzstDmrkXTvhTIVo4kXy14ooJnHxdEjREnhoA","targetUrl": null,"success": true,"error": null,"unAuthorizedRequest": false,"__abp": true
}

Users

获取用户信息

方法:GET

请求地址:https://uipathoc.ab.cn/odata/Users

请求头:Authorization:Bearer+空格+token

响应体:

{"@odata.context": "https://uipathoc.ab.cn/odata/$metadata#Users","@odata.count": 1,"value": [{"Name": "linan","Surname": "zhang","UserName": "zhanglinan","Domain": null,"DirectoryIdentifier": null,"FullName": "linan zhang","EmailAddress": "","IsEmailConfirmed": false,"LastLoginTime": "2022-09-06T13:56:57.073Z","IsActive": true,"CreationTime": "2022-08-17T08:36:29.45Z","AuthenticationSource": "local","Password": null,"IsExternalLicensed": false,"RolesList": ["Allow to be Folder Administrator","Allow to be Automation User","Robot"],"LoginProviders": [],"TenantId": 1,"TenancyName": null,"TenantDisplayName": null,"TenantKey": null,"Type": "DirectoryUser","ProvisionType": "Manual","LicenseType": null,"Key": "ebcf0bd4-7eb9-46fd-b203-79207db19591","MayHaveUserSession": true,"MayHaveRobotSession": false,"MayHaveUnattendedSession": false,"BypassBasicAuthRestriction": false,"MayHavePersonalWorkspace": false,"RestrictToPersonalWorkspace": false,"Id": 98,"RobotProvision": null,"UnattendedRobot": null,"NotificationSubscription": {"Queues": true,"Robots": true,"Jobs": true,"Schedules": true,"Tasks": true,"QueueItems": true,"Insights": false,"CloudRobots": true},"UpdatePolicy": null}]
}

Processes(包)

获取包

方法:GET

请求地址:https://uipathoc.ab.cn/odata/Processes

请求头:Authorization:Bearer+空格+token

请求体:如果不做限制,则返回本用户权限范围内的所有包。

响应体:

{"@odata.context": "","@odata.count": 1,"value": [{"IsActive": false,"SupportsMultipleEntryPoints": true,"MainEntryPointPath": "001_01_KADDDeductionReport\\Fin_Commercial_OneStopShop_001_01_02_KADDDeductionReportWeekly.xaml","RequiresUserInteraction": true,"IsAttended": false,"TargetFramework": "Legacy","Title": "Fin_Commercial_OneStopShop_001_KADD","Version": "1.0.29","Key": "Fin_Commercial_OneStopShop_001_KADD:1.0.29","Description": "Fin_Commercial_OneStopShop_001_KADD","Published": "2022-09-06T08:29:28.9333333Z","IsLatestVersion": false,"OldVersion": null,"ReleaseNotes": null,"Authors": "admin","ProjectType": "Process","Tags": "VisualBasic VB UiPathStudioProcess","IsCompiled": false,"Id": "Fin_Commercial_OneStopShop_001_KADD","Arguments": {"Input": null,"Output": null}}]
}

Folders(文件夹)

获取文件夹

方法:GET

请求地址:https://uipathoc.ab.cn/odata/Folders

请求头:Authorization:Bearer+空格+token

响应体:

{    "@odata.context":   "https://uipathoc.ab.cn/odata/$metadata#Folders","@odata.count":  7,"value":  [        {            "Key":   "9615a084-86a8-452a-8080-6d347bd60a26","DisplayName":   "Fin_Commercial_OneStopShop","FullyQualifiedName":   "ABI/Fin/Commercial/Fin_Commercial_OneStopShop","FullyQualifiedNameOrderable": "ABI�Fin�Commercial�Fin_Commercial_OneStopShop","Description":  null,"ProvisionType":   "Automatic","PermissionModel":   "FineGrained","ParentId":  24,"ParentKey":   "2cb9bb8c-daef-4f44-bc39-09537158d632","IsActive":  true,"FeedType":   "Processes","Id":  88        }    ]
}

Release(流程)

Release是流程,默认一个包有一个主流程,但可以设置多个入口点,包+入口点唯一确定1个流程。

【技巧】先返回所有结果集,观察键值,再通过filter找到需要触发的流程

获取多个流程

方法:GET

请求地址:https://uipathoc.ab.cn//odata/Releases

请求头:Authorization:Bearer+空格+token

请求体:如果不做限制,则返回本用户权限范围内的所有流程。

响应体:

OrganizationUnitFullyQualifiedName:文件夹名

Name:OC流程名

ProcessKey:包名

*OrganizationUnitFullyQualifiedName + Name唯一确定1个流程*

{"@odata.context": "https://uipathoc.ab.cn/odata/$metadata#Releases","@odata.count": 1,"value": [{"Key": "b76cf2e6-4724-45c3-ac57-1f9c8dca560c","ProcessKey": "DL_MRP_RPA_004_POCreate","ProcessVersion": "1.0.14","IsLatestVersion": false,"IsProcessDeleted": false,"Description": "PO Create","Name": "DL_MRP_RPA_004_POCreate","EnvironmentId": null,"EnvironmentName": "","EntryPointId": 10423,"InputArguments": null,"ProcessType": "Process","SupportsMultipleEntryPoints": true,"RequiresUserInteraction": true,"IsAttended": false,"IsCompiled": false,"AutoUpdate": false,"FeedId": "bfd8d74f-73c9-4cdb-ab50-a12c4d359e85","JobPriority": "Normal","CreationTime": "2023-01-20T05:43:27.817Z","OrganizationUnitId": 122,"OrganizationUnitFullyQualifiedName": "ABI/DL/MRP/DL_MRP_RPA","TargetFramework": "Legacy","Id": 788,"Arguments": {"Input": "[]","Output": "[]"},"ProcessSettings": null}]
}

获取单个流程

方法:GET

请求地址:https://uipathoc.ab.cn/odata/Releases({key})(key为Release的id)

请求地址示例:https://uipathoc.ab.cn/odata/Releases(788)

响应体:

{"@odata.context": "https://uipathoc.ab.cn/odata/$metadata#Releases/$entity","Key": "b76cf2e6-4724-45c3-ac57-1f9c8dca560c","ProcessKey": "DL_MRP_RPA_004_POCreate","ProcessVersion": "1.0.14","IsLatestVersion": false,"IsProcessDeleted": false,"Description": "PO Create","Name": "DL_MRP_RPA_004_POCreate","EnvironmentId": null,"EnvironmentName": "","EntryPointId": 10423,"InputArguments": null,"ProcessType": "Process","SupportsMultipleEntryPoints": true,"RequiresUserInteraction": true,"IsAttended": false,"IsCompiled": false,"AutoUpdate": false,"FeedId": "bfd8d74f-73c9-4cdb-ab50-a12c4d359e85","JobPriority": "Normal","CreationTime": "2023-01-20T05:43:27.817Z","OrganizationUnitId": 122,"OrganizationUnitFullyQualifiedName": null,"TargetFramework": "Legacy","Id": 788,"Arguments": {"Input": "[]","Output": "[]"},"ProcessSettings": {"ErrorRecordingEnabled": false,"Duration": 40,"Frequency": 500,"Quality": 100,"AutoStartProcess": false,"AlwaysRunning": false}
}

Job(作业)

Job是作业,作业是流程的实例。

开始作业

方法:POST

请求地址:https://uipathoc.ab.cn/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs

请求头:
X-UIPATH-OrganizationUnitId: 文件夹ID

Authorization:Bearer+空格+token

请求体(完整参数请参考Swagger页面):

ReleaseKey:Release的Key

RuntimeType:运行类型,如果设置为attended会报错。

{"startInfo": {"ReleaseKey": "b76cf2e6-4724-45c3-ac57-1f9c8dca560c","JobsCount": 1,"JobPriority": "Normal","Strategy": "ModernJobsCount","ResumeOnSameContext": false,"RuntimeType": "Unattended"
}
}

响应体:

{"@odata.context": "https://uipathoc.ab.cn/odata/$metadata#Jobs","value": [{"Key": "38a4b511-7d9b-4e06-aebb-86693d4af12c","StartTime": null,"EndTime": null,"State": "Pending","JobPriority": "Normal","Source": "Manual","SourceType": "Manual","BatchExecutionKey": "b8c9a01e-014b-4a83-9ea3-42f8eecbf0dc","Info": null,"CreationTime": "2023-02-03T06:41:00.06Z","StartingScheduleId": null,"ReleaseName": "DL_MRP_RPA_004_POCreate","Type": "Unattended","InputArguments": null,"OutputArguments": null,"HostMachineName": null,"HasMediaRecorded": false,"PersistenceId": null,"ResumeVersion": null,"StopStrategy": null,"RuntimeType": "Unattended","RequiresUserInteraction": true,"ReleaseVersionId": null,"EntryPointPath": "Business\\DL_MRP_RPA_004_POCreate.xaml","OrganizationUnitId": 122,"OrganizationUnitFullyQualifiedName": null,"Reference": "","ProcessType": "Process","ProfilingOptions": null,"ResumeOnSameContext": false,"LocalSystemAccount": "","OrchestratorUserIdentity": null,"Id": 170708}]
}

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.xdnf.cn/news/34617.html

如若内容造成侵权/违法违规/事实不符,请联系一条长河网进行投诉反馈,一经查实,立即删除!

相关文章

【机械加工】数字化软件打造,如何实现3D交互可视化?

机械加工是制造业的重要领域之一,随着制造技术和工艺的不断发展,机械加工的精度和效率要求越来越高。HOOPS作为一款专业的3D图形引擎,可以为机械加工行业提供高效、灵活的3D建模、可视化和交互工具。下面将从以下几个方面介绍HOOPS技术在机械…

CAMAv2: A Vision-Centric Approach for Static Map Element Annotation

CAMAv2: 摘要简介相关工作A. 视觉为中心的地图构建(Vision-centric HD Map Construction)B. 地图元素数据集(Map Element Datasets)1. nuScenes 数据集2. Argoverse2 数据集3. 车道线数据集 CAMAv2A. 场景重建(Scene R…

大数据新视界 -- 大数据大厂之 Hive 临时表与视图:灵活数据处理的技巧(上)(29 / 30)

💖💖💖亲爱的朋友们,热烈欢迎你们来到 青云交的博客!能与你们在此邂逅,我满心欢喜,深感无比荣幸。在这个瞬息万变的时代,我们每个人都在苦苦追寻一处能让心灵安然栖息的港湾。而 我的…

Python批量生成个性化Word录用通知书

你是一名人力资源部门的员工,你需要根据一份Excel表格中的员工信息,为每位员工生成一份录用通知书。 Excel表格中包含了员工的姓名、性别、职位、入职日期等信息,你需要将这些信息填充到Word模板中,并生成独立的录用通知书文件。…

Android显示系统(05)- OpenGL ES - Shader绘制三角形(使用glsl文件)

一、前言: 上一篇文章我们使用了Shader绘制了一个基本的三角形,但是,发现那样写Shader程序特别麻烦,各种加双引号,还没有语法高亮提示。因为glsl也和java、c一样是一门语言,实际工程项目都是单独的glsl文件…

Linux显卡驱动安装

前言 使用Windows配置环境失败,其中有一个包只有Linux版本,Windows版本的只有python3.10的,所以直接选用Linux来配置环境,显卡安装比较麻烦,单独出一期。 显卡驱动安装 参考文章:Ubuntu显卡驱动安装和这…

【Linux】进程控制

目录 一、进程创建1.1 fork函数1.2 fork函数返回值1.3 写时拷贝1.4 fork常规用法1.5 fork调用失败的原因1.6 使用fork创建多进程 二、进程退出2.1 进程退出场景2.1.1 进程运行完毕2.1.2 代码异常终止2.1.3 小结 2.2 进程常见退出方法2.2.1 return2.2.2 调用exit函数2.2.3 调用_…

smart-doc 使用

文档地址 添加插件 <plugin><groupId>com.ly.smart-doc</groupId><artifactId>smart-doc-maven-plugin</artifactId><version>3.0.9</version><configuration><includes><!--格式为&#xff1a;groupId:artifactId;…

Spring04——注解开发

Spring3.0启用了纯注解开发模式&#xff0c;使用Java类替代配置文件&#xff0c;开启了Spring快速开发赛道 Java类代替Spring核心配置文件&#xff0c; 配置类&#xff08;Configuration&#xff09; Configuration注解用于设定当前类为配置类ComponentScan注解用于设定扫描路…

ImportError: cannot import name ‘implements‘ from ‘zope.interface‘

ImportError: cannot import name ‘implements’ from ‘zope.interface’ 1. 问题分析 问题原因&#xff1a; /home/user/.conda/envs/vectornet/lib/python3.8/site-packages/apex/interfaces.py中在使用zope.interace中使用了老表达。 2. 解决办法 原文件内容&#xff…

多线程的操作

1、Thread类 1.1 Thread类的作用 上篇博文中我们了解了线程与操作系统的关系&#xff1a;线程是操作系统中的概念&#xff0c;操作系统内核实现了线程这样的机制, 并且对用户层提供了一些 API 供用户使用&#xff0c;Java 标准库中 Thread 类可以视为是对操作系统提供的 API 进…

51单片机应用开发(进阶)---串口接收字符命令

实现目标 1、巩固UART知识&#xff1b; 2、掌握串口接收字符数据&#xff1b; 3、具体实现目标&#xff1a;&#xff08;1&#xff09;上位机串口助手发送多字符命令&#xff0c;单片机接收命令作相应的处理&#xff08;如&#xff1a;openled1 即打开LED1;closeled1 即关…

3-5 C常用的字符串库函数

1.0 字符串库函数 strlen()函数用于返回字符串的长度&#xff0c;不包括结尾\0 uint32_t strlen(char *str) {uint32_t len 0;while (str[len] ! \0){len;}return len; } 编译器在处理字符串时&#xff0c;会自动的在数据末尾添加ASCI码“0对应十进制0&#xff0c;便于程序对…

python语法基础---正则表达式(补充)

&#x1f308;个人主页&#xff1a;羽晨同学 &#x1f4ab;个人格言:“成为自己未来的主人~” 上一篇文章中&#xff0c;我们讲到了贪婪匹配和非贪婪匹配&#xff0c;我们在这篇文章中&#xff0c;主要讲的就是贪婪匹配和非贪婪匹配的剩下的部分&#xff0c;话不多说&#x…

如何在谷歌浏览器中设置网络代理

在当今的网络环境中&#xff0c;使用代理服务器可以增强您的隐私和安全性。如果您希望在谷歌浏览器中设置网络代理&#xff0c;本文将为您提供详细的步骤指南。此外&#xff0c;我们还会简要介绍如何使用谷歌浏览器的任务管理器、查看Cookies以及更换侧边栏位置&#xff0c;以便…

【AI系统】MobileNet 系列

MobileNet 系列 在本文会介绍 MobileNet 系列&#xff0c;重点在于其模型结构的轻量化设计&#xff0c;主要介绍详细的轻量化设计原则&#xff0c;基于这原则&#xff0c;MobileNetV1 是如何设计成一个小型&#xff0c;低延迟&#xff0c;低功耗的参数化模型&#xff0c;可以满…

分层架构 IM 系统之 Router 假在线分析

通过对分层架构 IM 系统的分析&#xff0c;Router 的核心职责是作为中央存储记录在线客户端与 Entry 节点之间的映射关系&#xff0c;在本质上 Router 是一个内存数据库。 客户端已经离线&#xff0c;Entry 还未感知&#xff0c;或者 Entry 已经感知并且切断了连接&#xff0c;…

04 创建一个属于爬虫的主虚拟环境

文章目录 回顾conda常用指令创建一个爬虫虚拟主环境Win R 调出终端查看当前conda的虚拟环境创建 spider_base 的虚拟环境安装完成查看环境是否存在 为 pycharm 配置创建的爬虫主虚拟环境选一个盘符来存储之后学习所写的爬虫文件用 pycharm 打开创建的文件夹pycharm 配置解释器…

在Java的xml的sql语句里面的某一个参数是list集合的时候

经常在Java里面&#xff0c;遇到这样的问题&#xff0c;sql的一个查询语句&#xff0c;它的某一个参数是一个List集合&#xff0c;然而&#xff0c;在xml.mapper文件里面的时候&#xff0c;不知道如何去组成这个查询语句&#xff0c;不知道兄弟们是否经常忘记如何去写这个语句&…

pdf转word/markdown等格式——MinerU的部署:2024最新的智能数据提取工具

一、简介 MinerU是开源、高质量的数据提取工具&#xff0c;支持多源数据、深度挖掘、自定义规则、快速提取等。含数据采集、处理、存储模块及用户界面&#xff0c;适用于学术、商业、金融、法律等多领域&#xff0c;提高数据获取效率。一站式、开源、高质量的数据提取工具&…