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"Authorization
Send a personal access token with every request.
- Authorization: Bearer PAT
Query parameters
- projectstringrequired
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.
Allowed valuesworkflow_runtraining_jobrecording - resourceIdstring (uuid)
Id of the resource. Required with resourceType.
Responses
Success
- dataobjectrequired
- teamsarray<ResourceTeamSwaggerDto>required
The caller's own teams in which the project (and the resource) can be read; empty when none. Bounded by the caller's memberships.
- metaobjectrequired
- requestIdstringrequired
{
"data": {
"teams": [
{
"membershipId": "00000000-0000-0000-0000-000000000000",
"tenantId": "00000000-0000-0000-0000-000000000000",
"name": "string",
"handle": "string",
"current": true
}
]
},
"meta": {
"requestId": "string"
}
}