Box Developer Documentation
 
    Latest version

    Create shield information barrier segment restriction

    post
    https://api.box.com/2.0
    /shield_information_barrier_segment_restrictions

    This endpoint is in the version 2024.0. No changes are required to continue using it. For more details, see Box API versioning.

    Creates a shield information barrier segment restriction object.

    Request

    bearer [ACCESS_TOKEN]
    application/json

    Request Body

    stringin bodyrequired
    "shield_information_barrier_segment_restriction"

    The type of the shield barrier segment restriction for this member.

    Value is always shield_information_barrier_segment_restriction

    objectin body

    The type and id of the restricted shield information barrier segment.

    stringin bodyrequired
    "1910967"

    The ID reference of the restricted shield information barrier segment.

    stringin bodyrequired
    "shield_information_barrier_segment"

    The type of the restricted shield information barrier segment.

    Value is always shield_information_barrier_segment

    A base representation of a shield information barrier object

    The type and id of the requested shield information barrier segment.

    "1910967"

    The ID reference of the requesting shield information barrier segment.

    "shield_information_barrier_segment"

    The type of the shield barrier segment for this member.

    Value is always shield_information_barrier_segment

    Response

    Returns the newly created Shield Information Barrier Segment Restriction object.

    application/jsonClient error

    Returns a not_found error if the shield information barrier or segment was not found.

    application/jsonClient error

    An unexpected client error.

    post
    Create shield information barrier segment restriction
    You can now try out some of our APIs live, right here in the documentation.
    Log in

    Request Example

    TypeScript Gen
    await client.shieldInformationBarrierSegmentRestrictions.createShieldInformationBarrierSegmentRestriction(
      {
        restrictedSegment: {
          id: segmentToRestrictId,
          type: 'shield_information_barrier_segment' as CreateShieldInformationBarrierSegmentRestrictionRequestBodyRestrictedSegmentTypeField,
        } satisfies CreateShieldInformationBarrierSegmentRestrictionRequestBodyRestrictedSegmentField,
        shieldInformationBarrierSegment: {
          id: segmentId,
          type: 'shield_information_barrier_segment' as CreateShieldInformationBarrierSegmentRestrictionRequestBodyShieldInformationBarrierSegmentTypeField,
        } satisfies CreateShieldInformationBarrierSegmentRestrictionRequestBodyShieldInformationBarrierSegmentField,
        type: 'shield_information_barrier_segment_restriction' as CreateShieldInformationBarrierSegmentRestrictionRequestBodyTypeField,
      } satisfies CreateShieldInformationBarrierSegmentRestrictionRequestBodyInput,
    );

    Response Example

    {
      "id": "11446498",
      "type": "shield_information_barrier_segment_restriction",
      "created_at": "2020-06-26T18:44:45.869Z",
      "created_by": {
        "id": "11446498",
        "type": "user"
      },
      "restricted_segment": {
        "id": "1910967",
        "type": "shield_information_barrier_segment"
      },
      "shield_information_barrier": {
        "id": "11446498",
        "type": "shield_information_barrier"
      },
      "shield_information_barrier_segment": {
        "id": "1910967",
        "type": "shield_information_barrier_segment"
      },
      "updated_at": "2020-07-26T18:44:45.869Z",
      "updated_by": {
        "id": "11446498",
        "type": "user"
      }
    }