Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

How to get "Description" and "Last Updated By" value via API?

New post

Comments

2 comments

  • Peter Christensen

    Hi Hideki

    You should be able to retrieve the email from the 'uploader_display_name' field and description from the 'description' field
    https://api.box.com/2.0/files/123?fields=modified_by,created_by,uploader_display_name,description

    Gives 

    {
    "type": "file",
    "id": "123",
    "etag": "1",
    "modified_by": {
    "type": "user",
    "id": "2",
    "name": "Anonymous User",
    "login": ""
    },
    "created_by": {
    "type": "user",
    "id": "2",
    "name": "Anonymous User",
    "login": ""
    },
    "uploader_display_name": "peter@peter.com",
    "description": "213"
    }

    If you don't require the upload to enter an email address the 'uploader_display_name' will be 'File Request' as below

    "uploader_display_name": "File Request"

     

    Best Regards, Peter Christensen, Platform Solutions Engineer, Box

    0
    Comment actions Permalink
  • Hideki Yamane

    Hello Peter,

    Thanks, that's what I wanted! :-)

     

    0
    Comment actions Permalink

Please sign in to leave a comment.