Find which of my teams holds a project
Console URLs omit the team. For a link to another team's project, this names the caller's own teams in which the project (and the run, training or recording, when given) exists and the caller may read it, so the console can offer the switch. Teams the caller is not in are never searched; a project the caller cannot read, a trashed one and a missing one all answer an empty list. Browser session only.
curl -X GET 'https://api.embodiflow.io/v1/users/me/resource-teams' \
-H "Authorization: Bearer $EMBODIFLOW_PAT"认证
每个请求都需要携带个人访问令牌(PAT)。
- Authorization: Bearer PAT
查询参数
- projectstring必填
The project as a console URL carries it: its slug, an old slug of a renamed project, or its id
- resourceTypestring
A resource in the project the URL names; the team must hold it too. Requires resourceId.
可选值workflow_runtraining_jobrecording - resourceIdstring (uuid)
Id of the resource. Required with resourceType.
响应
Success
- dataobject必填
- teamsarray<ResourceTeamSwaggerDto>必填
The caller's own teams in which the project (and the resource) can be read; empty when none. Bounded by the caller's memberships.
- metaobject必填
- requestIdstring必填
{
"data": {
"teams": [
{
"membershipId": "00000000-0000-0000-0000-000000000000",
"tenantId": "00000000-0000-0000-0000-000000000000",
"name": "string",
"handle": "string",
"current": true
}
]
},
"meta": {
"requestId": "string"
}
}