Skip to content

Latest commit

 

History

History
143 lines (87 loc) · 4.54 KB

IntegrationMappings.md

File metadata and controls

143 lines (87 loc) · 4.54 KB

IIntegrationMappingsManager

List Slack integration mappings

Lists Slack integration mappings in a users' enterprise.

You need Admin or Co-Admin role to use this endpoint.

This operation is performed by calling function GetSlackIntegrationMapping.

See the endpoint docs at API Reference.

await userClient.IntegrationMappings.GetSlackIntegrationMappingAsync();

Arguments

  • queryParams GetSlackIntegrationMappingQueryParams
    • Query parameters of getSlackIntegrationMapping method
  • headers GetSlackIntegrationMappingHeaders
    • Headers of getSlackIntegrationMapping method
  • cancellationToken System.Threading.CancellationToken?
    • Token used for request cancellation.

Returns

This function returns a value of type IntegrationMappings.

Returns a collection of integration mappings

Create Slack integration mapping

Creates a Slack integration mapping by mapping a Slack channel to a Box item.

You need Admin or Co-Admin role to use this endpoint.

This operation is performed by calling function CreateSlackIntegrationMapping.

See the endpoint docs at API Reference.

await userClient.IntegrationMappings.CreateSlackIntegrationMappingAsync(requestBody: new IntegrationMappingSlackCreateRequest(partnerItem: new IntegrationMappingPartnerItemSlack(id: partnerItemId) { SlackOrgId = slackOrgId }, boxItem: new IntegrationMappingBoxItemSlack(id: folder.Id)));

Arguments

  • requestBody IntegrationMappingSlackCreateRequest
    • Request body of createSlackIntegrationMapping method
  • headers CreateSlackIntegrationMappingHeaders
    • Headers of createSlackIntegrationMapping method
  • cancellationToken System.Threading.CancellationToken?
    • Token used for request cancellation.

Returns

This function returns a value of type IntegrationMapping.

Returns the created integration mapping.

Update Slack integration mapping

Updates a Slack integration mapping. Supports updating the Box folder ID and options.

You need Admin or Co-Admin role to use this endpoint.

This operation is performed by calling function UpdateSlackIntegrationMappingById.

See the endpoint docs at API Reference.

Currently we don't have an example for calling UpdateSlackIntegrationMappingById in integration tests

Arguments

  • integrationMappingId string
    • An ID of an integration mapping Example: "11235432"
  • requestBody UpdateSlackIntegrationMappingByIdRequestBody
    • Request body of updateSlackIntegrationMappingById method
  • headers UpdateSlackIntegrationMappingByIdHeaders
    • Headers of updateSlackIntegrationMappingById method
  • cancellationToken System.Threading.CancellationToken?
    • Token used for request cancellation.

Returns

This function returns a value of type IntegrationMapping.

Returns the updated integration mapping object.

Delete Slack integration mapping

Deletes a Slack integration mapping.

You need Admin or Co-Admin role to use this endpoint.

This operation is performed by calling function DeleteSlackIntegrationMappingById.

See the endpoint docs at API Reference.

Currently we don't have an example for calling DeleteSlackIntegrationMappingById in integration tests

Arguments

  • integrationMappingId string
    • An ID of an integration mapping Example: "11235432"
  • headers DeleteSlackIntegrationMappingByIdHeaders
    • Headers of deleteSlackIntegrationMappingById method
  • cancellationToken System.Threading.CancellationToken?
    • Token used for request cancellation.

Returns

This function returns a value of type null.

Empty body in response