Console
SDK
REST API
Preparing search index...
The search index is not available
Integration App React - v2.13.2
Integration App React
useConnection
Function useConnection
useConnection
(
id
?:
string
,
)
:
{
connection
:
undefined
|
Connection
;
accessor
:
undefined
|
ConnectionAccessor
;
loading
:
boolean
;
saving
:
boolean
;
error
:
any
;
refresh
:
()
=>
Promise
<
Connection
>
;
refreshing
:
boolean
;
create
:
(
data
:
CreateConnectionRequest
)
=>
Promise
<
undefined
|
Connection
>
;
patch
:
(
data
:
Partial
<
UpdateConnectionRequest
>
)
=>
Promise
<
void
>
;
put
:
(
data
:
UpdateConnectionRequest
)
=>
Promise
<
void
>
;
archive
:
()
=>
Promise
<
void
>
;
}
Parameters
Optional
id
:
string
Returns
{
connection
:
undefined
|
Connection
;
accessor
:
undefined
|
ConnectionAccessor
;
loading
:
boolean
;
saving
:
boolean
;
error
:
any
;
refresh
:
()
=>
Promise
<
Connection
>
;
refreshing
:
boolean
;
create
:
(
data
:
CreateConnectionRequest
)
=>
Promise
<
undefined
|
Connection
>
;
patch
:
(
data
:
Partial
<
UpdateConnectionRequest
>
)
=>
Promise
<
void
>
;
put
:
(
data
:
UpdateConnectionRequest
)
=>
Promise
<
void
>
;
archive
:
()
=>
Promise
<
void
>
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Console
SDK
REST API
Integration App React - v2.13.2
Loading...