Box Developer Documentation
 
    Latest version

    Get storage policy assignment

    get
    https://api.box.com/2.0
    /storage_policy_assignments/:storage_policy_assignment_id

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

    Fetches a specific storage policy assignment.

    Request

    bearer [ACCESS_TOKEN]
    application/json

    Path Parameters

    stringin pathrequired
    932483

    The ID of the storage policy assignment.

    Response

    Returns a storage policy assignment object.

    application/jsonClient error

    An unexpected client error.

    get
    Get storage policy assignment
    You can now try out some of our APIs live, right here in the documentation.
    Log in

    Request Example

    cURL
    curl -i -X GET "https://api.box.com/2.0/storage_policy_assignments/932483" \
         -H "authorization: Bearer <ACCESS_TOKEN>"

    Response Example

    {
      "id": "ZW50ZXJwcmlzZV8xMjM0NTY3ODkw",
      "type": "storage_policy_assignment",
      "assigned_to": {
        "id": "11446498",
        "type": "file"
      },
      "storage_policy": {
        "id": "11446498",
        "type": "storage_policy"
      }
    }