A beta version of the new Box developer documentation site is launching soon! Updated Developer Guides, modern API Reference, and AI-powered search are on the way to help you build with Box faster. Stay tuned for more updates.
Updates the shield information barrier segment based on provided ID..
3423The ID of the shield information barrier segment.
"'Corporate division that engages in advisory_based
financial transactions on behalf of individuals,
corporations, and governments.'"The updated description for the shield information barrier segment.
\S+"Investment Banking"The updated name for the shield information barrier segment.
Returns the updated shield information barrier segment object.
Returns a not_found error if the shield information
Barrier Segment was not found.
Returns an error if there exists a shield information Barrier Segment with the same name.
An unexpected client error.
await client.shieldInformationBarrierSegments.updateShieldInformationBarrierSegmentById(
segmentId,
{
requestBody: {
description: updatedSegmentDescription,
} satisfies UpdateShieldInformationBarrierSegmentByIdRequestBody,
} satisfies UpdateShieldInformationBarrierSegmentByIdOptionalsInput,
);client.shield_information_barrier_segments.update_shield_information_barrier_segment_by_id(
segment_id, description=updated_segment_description
)await client.ShieldInformationBarrierSegments.UpdateShieldInformationBarrierSegmentByIdAsync(shieldInformationBarrierSegmentId: segmentId, requestBody: new UpdateShieldInformationBarrierSegmentByIdRequestBody() { Description = updatedSegmentDescription });try await client.shieldInformationBarrierSegments.updateShieldInformationBarrierSegmentById(shieldInformationBarrierSegmentId: segmentId, requestBody: UpdateShieldInformationBarrierSegmentByIdRequestBody(description: updatedSegmentDescription))client.getShieldInformationBarrierSegments().updateShieldInformationBarrierSegmentById(segmentId, new UpdateShieldInformationBarrierSegmentByIdRequestBody.Builder().description(updatedSegmentDescription).build())const barrierSegment = await client.shieldInformationBarrierSegments.update({
name: 'updated name',
description: 'updated description',
}, {
shield_information_barrier_segment_id: '12345'
});
console.log(`Shield information barrier segment id ${barrierSegment.id} updated`);{
"id": "11446498",
"type": "shield_information_barrier_segment",
"created_at": "2020-06-26T18:44:45.869Z",
"created_by": {
"id": "11446498",
"type": "user"
},
"description": "'Corporate division that engages in advisory_based financial\n transactions on behalf of individuals, corporations, and governments.'",
"name": "Investment Banking",
"shield_information_barrier": {
"id": "11446498",
"type": "shield_information_barrier"
},
"updated_at": "2020-07-26T18:44:45.869Z",
"updated_by": {
"id": "11446498",
"type": "user"
}
}