-
Recently active
My company does not allow us to share a box folder with any other users or service account. How can I give access to box folder with service account created by my company and not by Box(automation user svc account). Basically, I don’t want to use svc user auto generated by Box upon authorisation but I want use box apis to upload the file. How can I do this? I really need answer to this as soon as possible. Thanks in advance.
Is there an easy way to get the number of pages of box file using a native Box api?
Hello, From https://developer.box.com/guides/api-calls/permissions-and-errors/rate-limits/ I can see there are monthly API max limits by customer. Where can I go to see my account’s current API usage towards this monthly cap?
Hello all, Currently, I’m trying to utilize Box to upload/download documents using Nodejs on the backend to do this. From my understanding, I would need to get an access/bearer token (from: https://api.box.com/oauth2/token) - which I’m able to do using Client ID and Client Secret, and once I have the the bearer token I can make API calls as needed. However, I’m trying to test a few of the API calls using postman and receiving an error when doing it this way. As an example, to list the current items in a folder I’m making a GET request in Postman to: https://api.box.com/2.0/folders/:folder_id/items where I’m setting :folder_id to 0. I receive this error that says: { "type": "error", "status": 404, "code": "not_found", "context_info": { "errors": [ { "reason": "invalid_parameter", "name": "folder", "message": "Invalid value 'd_215579098453'. 'folder' with value 'd_215579098453' not found" }
We started to create Python workshops around the Box Platform. The idea is to have a set of exercises any developer can do, for a hands-on exploration of the Box API. You can find these workshops here: GitHub GitHub - barduinor/box-workshop-python Contribute to barduinor/box-workshop-python development by creating an account on GitHub. In this early stage, we are looking for feedback, ideas and comments, so please drop us a line. Cheers
Hi folks, Check out the new blog article: Medium – 5 Jul 23 How to recursively upload a folder to Box using Python In this article, learn how to recursively upload files to Box using Python, while taking advantage of Box API features such as pre-flight… Reading time: 5 min read When uploading files recursively, we also need to check if the folders and files already exists, because the user may upload an entire folder a second and third time. Take a look at this example, where we use the prefilght_check to verify if the file can be accepted, and decide if we are uploading a new file or creating a new version of an existing one. Here is something to whet your appetite: def main(): """main app demo""" settings = get_settings() # check if sample folder exist and create them if not sample_folder = check_sample_folders(settings.sample_folder_base_dir) # get a client service_client = box_client_get(settin
Hi everyone, I’m new here and would appreciate your help with some questions I have about the Content Explorer. I’m trying to set it up so that the preview opens when I double-click an image in thumbnail view. Is there any way to achieve this? Currently, the preview only opens when I click on the filename or a button. I set ‘select’ for the event in addListener, but it’s triggering when I hit other buttons like the ‘share’ button. Is there a way to limit the ‘select’ event to only when a file is selected? Also, what would be the way to make the preview open again when clicking on the same file? Thanks for taking the time to read this Apologies in advance if I’ve posted this in the wrong topic, as this is my first time here.
@matt.riley Could you share thoughts and/or tips on how to automatically apply metadata to file uploads done through the “File Request” feature? The use case is wanting file request uploaders to upload specific types of documents in each separate upload field and to automatically apply a metadata label to the upload done in that field. For example, a File Request form with a Diploma field and a Resume field, upon upload / completion of the File Request those uploads would be tagged in metadata as diploma and resume, respectively. Thus later we could search by metadata for diploma and get all diploma uploads but not resumes, and vice-versa. As a side note, I find metadata in Box confusing because of the requirement to create a “template” which is unusual compared to other tools where one can just create and define metadata independently.
Does the ability to specify a template file id in a document signing request exist is the SDKs yet? If so, I’d like some documentation for the Python SDK at least. Basically the same question was asked here by another but not sufficiently answered: Box Support Box Sign API - Template ID I have just been informed that template_id is a new POST body param, and while you can use template_id and it will utilize a template in the box sign request creation, it does not seem to be popula... Edit: Just noticed this: Introducing: Template APIs for Box Sign! Box Sign I can’t wait for this to be available in the SDK’s Stay tuned! Any movement on this? Thanks.
I have created an application as the documentation says, but I always get this error. https://developer.box.com/guides/authentication/client-credentials/ This is your documentation, can you help me? This is my app client id: alhd08bt4pv1gt6n9i4ipi8andjscofb curl -i -X POST "https://api.box.com/oauth2/token" \ -H"Content-Type: application/x-www-form-urlencoded"\ -d"client_id=alhd08bt4pv1gt6n9i4ipi8andjscofb"\ -d"client_secret=*****"\ -d"grant_type=client_credentials"\ -d"box_subject_type=user"\ -d"box_subject_id=2629647****" Response { "error": "invalid_grant", "error_description": "Grant credentials are invalid" }
Following up with the Rusty Box: Creating a Rust client for a hackathon, we have released a crate with an initial implementation of the users API end points. You can find the crate here. You can follow up and participate in this open source project at this GitHub repo. If you want to try it: Create a new rust project cargo new my-box-project cd my-box-project Add rusty-box to your dependencies cargo add dotenv cargo add rusty-box Create a .dev.env file in the root of your project DEVELOPER_TOKEN=YOUR_DEVELOPER_TOKEN Open your main.rs file and add the following code use rusty_box::{ auth::{auth_developer::DeveloperToken, AuthError}, box_client::BoxClient, config::Config, rest_api::users::users_api, }; use std::env; #[tokio::main] async fn main() -> Result<(), AuthError> { dotenv::from_filename(".dev.env").ok(); let config = Config::new(); let auth = DeveloperToken::new( config, env::var("DEVELOPER_TOKEN").expect("DEVELOPER_TOKEN
Was trying to create an app user following this guide, developer.box.com App Users - Box Developer Documentation Explore the Box APIs and SDKs to use for app development, API documentation, developer support resources, and access the Box Developer Console and with the following api request: POST - https://api.box.com/2.0/users request: {“is_platform_access_only”: true , “name”:“test”} response: { “type”: “error”, “status”: 403, “code”: “access_denied_insufficient_permissions”, “help_url”: “http://developers.box.com/docs/#errors”, “message”: “Access denied - insufficient permission”, “request_id”: “avrw5xhevqe1xti8” } What is missing? Can you please assist? (I have verified I have sufficient permissions to create a user which is not an app user and it was created successfully) Thanks
Hello, I am using Box API Python SDK to list files. The metadata of files is important for my work. The files in the source folder are uploaded by myself and I am in UTC+09:00 timezone. But when I list the files using the API, all the timestamps returned by the API are in UTC-07:00. Please let me know if that is the default case? or is there anything I can do. SDK Version: 2.7.1 API: client.search.query(...) Thank you 🙂
I’m trying to build some features using the Folder Lock API: https://developer.box.com/reference/post-folder-locks/. However, when I try to do a simple curl POST command to lock a folder, I always receive a 404 “not_found” regardless of the folder I pass to it. The GET command works fine and obviously returns an empty array since I haven’t successfully locked a folder yet, but I know the endpoint and my access token works fine. Are there other exceptions to this feature that aren’t documented? I have ensured I am the sole owner of the folder (no co-owners), but it has been shared with others a Editors. For added detail, I am using the Oauth 2.0 method for access. Any help/guidance on locking folders via the API would be much appreciated!
Hello, I am having issues using the box-ui-elements React package. I have gotten the other “simpler” react components to work correctly with a developer token, but for w/e reason the ContentPreview component never renders the preview of the file. There are 0 errors in the console and if I enable the header it is able to display the file name correctly. So, the file ID is correct and the dev token is accurate since it works with other components on the same screen. Is this a known issue? It doesn’t seem like a sizing issue since it’s given plenty of space and the other components work just fine. Is there a working example repo I could run and supply my dev token & file ID to and see if it works? I ended up just using the raw JS CDN approach that some of the Docs outline to display the ContentPreview and that works just fine. So, I ended up just removing the entire box-ui-elements package since it wasn’t buying me much. I would like to actually use the package though since it is simp
Hi Rui, Thank you very much for your answer. This is exactly what I was looking for. Now I think the way to achieve my goal is to create a webhook with ‘COLLABORATION.ACCEPTED’ trigger, that way I can assign the approval task to the user. So I need the user id to assign the task. But is ‘collab.id’ the user id? The API documentation doesn’t say so but I note that you wrote ‘Collaborator:’. Cheers
While sending multipart-form data POST request to BOX from ServiceNow, I am getting this error from the Box API: {“code”:“bad_request”,“help_url”:“http://developers.box.com/docs/#errors",“status”:400,“message”:"API upload did not contain a file part”,“type”:“error”} The payload which is being sent over on this request, looks something like this: –xXxxxxxxxxxxxxxxxxXx" ,Content-Disposition:form-data; name=“attributes”,{“name”:“config.txt”,“parent”:{“id”:“0”}},–xXxxxxxxxxxxxxxxxxXx,Content-Type:text/plain,Content-Disposition:form-data; name=“file”; filename=“config.txt” ,[B@7e8de4,–xXxxxxxxxxxxxxxxxxXx– Any idea of what I am doing wrong here?
Hello, I came across an article discussing the monitoring of user activity on files and the process of extracting them using the GUI. Box Support Tracking User Activity on Files Box enables you to track user activity on virtually any file in two ways: Recent activity, via avatars that display when you preview a file Lifetime activity via Content Insights, which provide co... I’m curious to know if this functionality is currently available through an API or if there are plans to make it available in the future. Thank you!
Hi all, I have been currently tasked to automate the transfer of reports on a network drive to a shared folder on box. I was told to use box cli in conjunction with batch scripting to complete this. I have hit a roadblock in the creation of said script, and was looking for some additional perspective, as I may have missed a command or argument. Attached below is the “script” I tried to create for this project: robocopy "\\Network Folder" "\\Network Folder Archive" /MOV *.xlsx box folders:upload "\\Network Folder Archive" --parent-folder=(Shared Box Folder ID) The roadblock I have hit is in the transfer to box. Because box cli doesn’t overwrite folders, I cannot update the folder with new reports that come in. The other direction I wanted to take was to upload all of the files in the folder directly to box, but I couldn’t find a command to send all of the files to box at once. I experimented with the bulk csv commands, but because the monthly reports are going to have different file n
Hi, i’m new in programming. I’m developing a website that needs a Cloud. And our boss wants the BOX Cloud Services. I have little knowledge in API. I can’t a tutorial in youtube that specifically deals with how to integrate Box into a website, how to upload and retrieve data. Can someone please help me
Recently Box held an internal hackathon, and I participated exploring the idea of creating a Rust client for the Box API. What was I thinking? I wanted to see what it would take to build a Rust client for the Box API. Rust, my friends, is a powerful language designed for systems programming. It comes with a bunch of awesome features like memory safety, performance, concurrency, and developer productivity. So, why not harness its power? Sure, Rust may not be the easiest language to learn, but it’s like a strict teacher who won’t tolerate any errors easily. And you know what? I’ve come to appreciate its capabilities immensely. After working with Python for a while, I found myself yearning for a more disciplined approach, and Rust fit the bill perfectly. Now, you might be thinking, “But wait! Box already has SDKs for C#, Java, Python, Node, iOS, and Android. Do we really need Yet Another SDK (YASDK)?” Well, we’ve got you covered. If your favorite language isn’t on the list, you can always
I have created an app with a v2 webhook. The webhook triggers a JAVA application when it runs locally everything is good, but when the same application is being run inside a VM, the webhook is not getting triggered. Can anyone help what could be the issue or where can I see the logs to find the problem?
Have general or non-technical questions about Box Platform? Looking to answer questions like, “Can I…” or “How does…?” This is your space.
Get started with the Box Python SDK, using OAuth 2.0 in under 3 minutes I was looking for a way to get developers started using the Box platform as quickly as possible. Although Box provides many authentication methods, a recent incident with free developer accounts forced Box to limit the options for new free developer accounts. So I’ve decide to create a Python template application with built in OAuth 2.0, ready to go, allowing you to immediately start sending requests to the API. Create a free Box individual account Navigate to the personal sign up page, fill in your information, and submit. No credit card required… Box registration page for free individual accounts Complete the registration process, verifying your email. Tip: If you have a gmail.com account and don’t want to create a brand new account just for this, you can use something like your.normal.email+box@gmail.com. You can also use this to create multiple free accounts on box under the same email, and still be able to d
Question from developer: When working with BoxCLI or the Node SDK, the examples reference a file path to a .pem file. How do I create a .pem file, and have it work with the box app?
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.