Move Group File
POST /groups/{group_id}/ai-teams/files/move
This operation can change data. Use resources you control.
Request fields
| Field | Location | Type | Required |
|---|---|---|---|
group_id | path | string | Required |
destination | body | string | Required |
expected_revision | body | integer | Required |
operation_id | body | string | Required |
path | body | string | Required |
Examples
Use the environment settings from Quickstart. Replace sample resource IDs with your own. The examples show the required request shape.
import { MaxClient } from "@elmax/api";
const max = new MaxClient({
baseURL: process.env.MAX_API_URL,
apiKey: process.env.MAX_API_KEY,
});
const result = await max.api.postGroupsGroupIdAiTeamsFilesMove({
"path": {
"group_id": "grp_example"
},
"body": {
"path": "teams/team_example/cases/example/input/brief.txt",
"destination": "example",
"expected_revision": 0.0,
"operation_id": "examplex"
}
});
console.log(result);import os
from elmax_ai import MaxClient
with MaxClient(base_url=os.environ["MAX_API_URL"], api_key=os.environ["MAX_API_KEY"]) as max:
result = max.api.post_groups_group_id_ai_teams_files_move(**{'path': {'group_id': 'grp_example'},
'body': {'path': 'teams/team_example/cases/example/input/brief.txt',
'destination': 'example',
'expected_revision': 0.0,
'operation_id': 'examplex'}})
print(result)