Skip to content

Teams

List teams

sys_administrator

HTTP
curl {{host}}/api/core/teams/browse \
-H "Authorization: Token {{token}}" \
Response
JSON
{
  "success": true,
  "message": "Team List",
  "requestID": "",
  "executed_at": "2050-01-01T00:00:00.123456Z",
  "data": {
    "items": [
      {
        "team_id": "dc08ea00-6c09-ec11-82e1-0690a1809de2",
        "team_short": null,
        "team_name": "#10640  IT SOLUTIONS Marcin Kotynia",
        "team_color": null,
        "team_status": 0,
        "team_opts": null,
        "team_secret": null,
        "team_type": "internal",
        "team_created_at": "2050-01-01T00:00:00",
        "team_created_by": "[email protected]",
        "team_modified_at": "2022-08-23T12:30:00",
        "team_modified_by": "[email protected]",
        "subscribed": false,
        "user_count": 3,
        "teamuser_lvl": null
      },
      {
        "team_id": "7f86cfb7-f303-e711-93f6-f01fafe8ab47",
        "team_short": "DEMO",
        "team_name": "All except administration11",
        "team_color": null,
        "team_status": 0,
        "team_opts": null,
        "team_secret": null,
        "team_type": "internal",
        "team_created_at": "2050-01-01T00:00:00",
        "team_created_by": "[email protected]",
        "team_modified_at": "2023-12-02T22:40:00",
        "team_modified_by": "[email protected]",
        "subscribed": false,
        "user_count": 1,
        "teamuser_lvl": null
      }
    ]
  }
}

List team properties

sys_administrator

HTTP
curl {{host}}/api/core/teams/browse/{{team_id}} \
-H "Authorization: Token {{token}}" \
Response
JSON
{
  "success": true,
  "message": "Team Members",
  "requestID": "",
  "executed_at": "2050-01-01T00:00:00.123456Z",
  "data": {
    "items": [
      {
        "team_id": "dc08ea00-6c09-ec11-82e1-0690a1809de2",
        "user_id": "48863a48-2ebf-4fea-be15-4cc08531a776",
        "username": "[email protected]",
        "team_short": null,
        "team_color": null,
        "team_name": "#10640  IT SOLUTIONS Marcin Kotynia",
        "team_status": null,
        "teamuser_lvl": null,
        "team_is_default": false,
        "teamuser_created_at": "2050-01-01T00:00:00",
        "teamuser_created_by": "[email protected]",
        "options": []
      }
    ],
    "model": {
      "team_id": "dc08ea00-6c09-ec11-82e1-0690a1809de2",
      "team_short": null,
      "team_name": "#10640  IT SOLUTIONS Marcin Kotynia",
      "team_color": null,
      "team_status": 0,
      "team_opts": null,
      "team_secret": null,
      "team_type": "internal",
      "team_created_at": "2050-01-01T00:00:00",
      "team_created_by": "[email protected]",
      "team_modified_at": "2022-08-23T12:30:00",
      "team_modified_by": "[email protected]",
      "subscribed": false,
      "user_count": 3,
      "teamuser_lvl": null
    }
  }
}

Set user context

sys_administrator

HTTP
POST {{host}}/api/core/account/context/{{app_name}}/{{username}} 
Authorization: Basic api:{{token}}

authenticated

HTTP
POST {{host}}/api/core/account/context/{{app_name}}
Authorization: Basic api:{{token}}

Other Apis

HTTP
1
2
3
4
5
6
7
8
POST     {{host}}/api/core/teams/user-remove/{{team_id}}/{{username}}          //AUTH:sys_administrator
POST     {{host}}/api/core/teams/user-set-default/{{team_id}}/{{username}}     //AUTH:sys_administrator
POST     {{host}}/api/core/teams/user-set-default/{{team_id}}                  //AUTH
POST     {{host}}/api/core/teams/user-assign/{{team_id}}/{{username}}/{{teamuser_lvl}} //AUTH:sys_administrator
POST     {{host}}/api/core/teams/delete/{{team_id}}                            //AUTH:sys_administrator
POST     {{host}}/api/core/teams/close/{{team_id}}                             //AUTH:sys_administrator
POST     {{host}}/api/core/teams/open/{{team_id}}                              //AUTH:sys_administrator
POST     {{host}}/api/core/teams/set/{{team_name}}                             //AUTH:sys_administrator