Uploaded document conversion status

New post

Comments

1 comment

  • Murtza

     If you call the Representations endpoint with the `X-Rep-Hints: [pdf]` header, it will return the document's conversion status in the state property for the file. It will also return a URL in the info.url property, which you can poll to get the document's conversion status.

      

    {
        "type": "file",
        "id": "123456",
        "etag": "5",
        "representations": {
            "entries": [
                {
                    "representation": "pdf",
                    "properties": {},
                    "info": {
                        "url": "https:\/\/api.box.com\/2.0\/internal_files\/123456\/versions\/789\/representations\/pdf"
                    },
                    "status": {
                        "state": "pending"
                    },
                    "content": {
                        "url_template": "https:\/\/dl3.boxcloud.com\/api\/2.0\/internal_files\/123456\/versions\/789\/representations\/pdf\/content\/{+asset_path}"
                    }
                }
            ]
        }
    }

     

    0
    Comment actions Permalink

Please sign in to leave a comment.