18.11. createUserRobot
使用指定名称创建一个新用户机器人。
PUT /api/v1/user/robots/{robot_shortname}
授权: oauth2_implicit (user:admin)
路径参数
类型 | Name | 描述 | 模式 |
---|---|---|---|
path |
robot_shortname | 机器人的短名称,没有任何用户或机构前缀 | 字符串 |
请求正文模式(application/json)
创建机器人的可选数据
名称 | 描述 | 模式 |
---|---|---|
description | 机器人的可选文本描述 | 字符串 |
unstructured_metadata | 机器人的可选非结构化元数据 | 对象 |
响应
示例命令
curl -X PUT -H "Authorization: Bearer <bearer_token>" "https://<quay-server.example.com>/api/v1/user/robots/<robot_name>"
$ curl -X PUT -H "Authorization: Bearer <bearer_token>" "https://<quay-server.example.com>/api/v1/user/robots/<robot_name>"