Update Slack Integration Mapping
Update Slack Integration Mapping
Use the PUT integration_mappings/slack/:integration_mapping_id
call to update the existing mapping or the target Box folder.
cURL
curl -X -L PUT "https://api.box.com/2.0/integration_mappings/slack/512521" \
-H "authorization: Bearer <ACCESS_TOKEN>" \
-H 'content-type: application/json' \
-d'{
"options": {
"is_access_management_disabled": true
}
}'
TypeScript Gen
await userClient.integrationMappings.updateSlackIntegrationMappingById(
integrationMappingId,
{
requestBody: {
boxItem: new IntegrationMappingBoxItemSlack({ id: '1234567' }),
} satisfies UpdateSlackIntegrationMappingByIdRequestBody,
} satisfies UpdateSlackIntegrationMappingByIdOptionalsInput,
);
Python Gen
user_client.integration_mappings.update_slack_integration_mapping_by_id(
integration_mapping_id, box_item=IntegrationMappingBoxItemSlack(id="1234567")
)
.NET Gen
await userClient.IntegrationMappings.UpdateSlackIntegrationMappingByIdAsync(integrationMappingId: integrationMappingId, requestBody: new UpdateSlackIntegrationMappingByIdRequestBody() { BoxItem = new IntegrationMappingBoxItemSlack(id: "1234567") });
Swift Gen (Beta)
try await userClient.integrationMappings.updateSlackIntegrationMappingById(integrationMappingId: integrationMappingId, requestBody: UpdateSlackIntegrationMappingByIdRequestBody(boxItem: IntegrationMappingBoxItemSlack(id: "1234567")))
Java Gen (Beta)
userClient.getIntegrationMappings().updateSlackIntegrationMappingById(integrationMappingId, new UpdateSlackIntegrationMappingByIdRequestBody.UpdateSlackIntegrationMappingByIdRequestBodyBuilder().boxItem(new IntegrationMappingBoxItemSlack("1234567")).build())
Node
const mapping = await client.integrationMappings.updateSlackIntegrationMapping({
box_item: {
id: '12345',
type: 'folder'
},
options: {
is_access_management_disabled: true
}
}, {
integration_mapping_id: integrationMappingId
});
console.log(
`Slack integration mapping with id ${mapping.id} was updated`
);