new IntegrationMappingsManager(client)
Parameters:
Name | Type | Description |
---|---|---|
client |
BoxClient | The Box API Client that is responsible for making calls to the API |
- Source:
Classes
Methods
createSlackIntegrationMapping(body, optionsopt, callbackopt) → {Promise.<schemas.IntegrationMapping>}
Create Slack integration mapping
Creates a [Slack integration mapping](https://support.box.com/hc/en-us/articles/4415585987859-Box-as-the-Content-Layer-for-Slack)
by mapping a Slack channel to a Box item.
You need Admin or Co-Admin role to
use this endpoint.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
body |
schemas.IntegrationMappingSlackCreateRequest | ||
options |
object |
<optional> |
Options for the request |
callback |
function |
<optional> |
Passed the result if successful, error otherwise |
- Source:
Returns:
A promise resolving to the result or rejecting with an error
- Type
- Promise.<schemas.IntegrationMapping>
createSlackIntegrationMapping(body, optionsopt, callbackopt) → {Promise.<schemas.IntegrationMapping>}
Create Slack integration mapping
Creates a [Slack integration mapping](https://support.box.com/hc/en-us/articles/4415585987859-Box-as-the-Content-Layer-for-Slack)
by mapping a Slack channel to a Box item.
You need Admin or Co-Admin role to
use this endpoint.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
body |
schemas.IntegrationMappingSlackCreateRequest | ||
options |
object |
<optional> |
Options for the request |
callback |
function |
<optional> |
Passed the result if successful, error otherwise |
- Source:
Returns:
A promise resolving to the result or rejecting with an error
- Type
- Promise.<schemas.IntegrationMapping>
deleteSlackIntegrationMappingById(options, callbackopt) → {Promise.<void>}
Delete Slack integration mapping
Deletes a [Slack integration mapping](https://support.box.com/hc/en-us/articles/4415585987859-Box-as-the-Content-Layer-for-Slack).
You need Admin or Co-Admin role to
use this endpoint.
Parameters:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
options |
object | Options for the request
Properties
|
|||||||
callback |
function |
<optional> |
Passed the result if successful, error otherwise |
- Source:
Returns:
A promise resolving to the result or rejecting with an error
- Type
- Promise.<void>
deleteSlackIntegrationMappingById(options, callbackopt) → {Promise.<void>}
Delete Slack integration mapping
Deletes a [Slack integration mapping](https://support.box.com/hc/en-us/articles/4415585987859-Box-as-the-Content-Layer-for-Slack).
You need Admin or Co-Admin role to
use this endpoint.
Parameters:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
options |
object | Options for the request
Properties
|
|||||||
callback |
function |
<optional> |
Passed the result if successful, error otherwise |
- Source:
Returns:
A promise resolving to the result or rejecting with an error
- Type
- Promise.<void>
getSlackIntegrationMappings(optionsopt, callbackopt) → {Promise.<schemas.IntegrationMappings>}
List Slack integration mappings
Lists [Slack integration mappings](https://support.box.com/hc/en-us/articles/4415585987859-Box-as-the-Content-Layer-for-Slack) in a users' enterprise.
You need Admin or Co-Admin role to
use this endpoint.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
<optional> |
Options for the request
Properties
|
||||||||||||||||||||||||||||||||
callback |
function |
<optional> |
Passed the result if successful, error otherwise |
- Source:
Returns:
A promise resolving to the result or rejecting with an error
- Type
- Promise.<schemas.IntegrationMappings>
getSlackIntegrationMappings(optionsopt, callbackopt) → {Promise.<schemas.IntegrationMappings>}
List Slack integration mappings
Lists [Slack integration mappings](https://support.box.com/hc/en-us/articles/4415585987859-Box-as-the-Content-Layer-for-Slack) in a users' enterprise.
You need Admin or Co-Admin role to
use this endpoint.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
<optional> |
Options for the request
Properties
|
||||||||||||||||||||||||||||||||
callback |
function |
<optional> |
Passed the result if successful, error otherwise |
- Source:
Returns:
A promise resolving to the result or rejecting with an error
- Type
- Promise.<schemas.IntegrationMappings>
updateSlackIntegrationMapping(body, options, callbackopt) → {Promise.<schemas.IntegrationMapping>}
Update Slack integration mapping
Updates a [Slack integration mapping](https://support.box.com/hc/en-us/articles/4415585987859-Box-as-the-Content-Layer-for-Slack).
Supports updating the Box folder ID and options.
You need Admin or Co-Admin role to
use this endpoint.
Parameters:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
body |
object | ||||||||
options |
object | Options for the request
Properties
|
|||||||
callback |
function |
<optional> |
Passed the result if successful, error otherwise |
- Source:
Returns:
A promise resolving to the result or rejecting with an error
- Type
- Promise.<schemas.IntegrationMapping>
updateSlackIntegrationMapping(body, options, callbackopt) → {Promise.<schemas.IntegrationMapping>}
Update Slack integration mapping
Updates a [Slack integration mapping](https://support.box.com/hc/en-us/articles/4415585987859-Box-as-the-Content-Layer-for-Slack).
Supports updating the Box folder ID and options.
You need Admin or Co-Admin role to
use this endpoint.
Parameters:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
body |
object | ||||||||
options |
object | Options for the request
Properties
|
|||||||
callback |
function |
<optional> |
Passed the result if successful, error otherwise |
- Source:
Returns:
A promise resolving to the result or rejecting with an error
- Type
- Promise.<schemas.IntegrationMapping>