ms::Graph method team create (public)

 <instance of ms::Graph[i]> team create [ -description description ] \
    -displayName displayName  [ -visibility visibility ] -owner owner  \
    [ -donecallback donecallback ] [ -wait ]

Defined in packages/xooauth/tcl/ms-procs.tcl

Create a new team. A team owner must be provided when creating a team in an application context. Details: https://docs.microsoft.com/en-us/graph/api/team-post

Switches:
-description
(optional)
-displayName
(required)
-visibility
(optional)
-owner
(required)
-donecallback
(optional)
cmd to be executed when the async command succeeded or failed. One additional argument is passed to the callback indicating the result status.
-wait
(defaults to "false") (optional)
when specified, perform up to 10 requests checking the status of the async command

Partial Call Graph (max 5 caller/called nodes):
%3

Testcases:
No testcase defined.
Source code:
set template@odata.bind "https://graph.microsoft.com/v1.0/teamsTemplates('standard')"
set members [subst {{
    @odata.type string "#microsoft.graph.aadUserConversationMember"
    roles array {0 string owner}
    user@odata.bind string "https://graph.microsoft.com/v1.0/users('$owner')"
}}]
set r [:request -method POST -token [:token]  -vars {template@odata.bind description displayName visibility members:array,document}  -url /teams]
return [:async_operation_status -wait=$wait -donecallback $donecallback $r]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: