{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/files/{fileId}.json","auth":"required","results":{"codes":[{"status":200,"language":"json","code":"{\n    \"status\": \"Okay\",\n    \"file\": {\n        \"url\": \"https://secure.projectmanager.com/Share/Public/UserFile.aspx?hid=60F80&bid=c75bd554-5263-4de7-9905-656bacb24f88\",\n        \"id\": 397184,\n        \"name\": \"12%20-%201.jpg\"\n    }\n}","name":""}]},"settings":"","examples":{"codes":[{"code":"   $.ajax({ type: \"GET\", url: \"/api/v1/files/\" + fileId + \".json\", contentType: 'application/json', \t\t\t\tdataType: \"json\", success: worked  , headers: { apiKey: apiKey }\n    });","language":"javascript"}]},"method":"get","params":[{"name":"fileId","type":"int","default":"","desc":"The Id of the file you would like to retrieve.","required":true,"in":"path","ref":"","_id":"55721ab81cd8283500a8b5e6"}]},"next":{"description":"","pages":[]},"title":"Get a File","type":"endpoint","slug":"retrieve-a-file","excerpt":"A File instance represents a file added or attached in ProjectManager.com. This may be a file attached to a Project or shared documents etc.\n\nUse this API to fetch a single file by its unique identifier.","body":"Use this API to fetch a single file by its unique identifier.","updates":[],"order":4,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"55651e6103b6710d00916957","editedParams":true,"githubsync":"","version":{"version":"1.0","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["5548466cd2c8410d006c2147","554a69ba0b54d30d007fe128","554a7f3338e3620d0082192e","5565162e03b6710d00916942","55651a0c65a1130d00400c2b","55651d4565a1130d00400c2f","55651e0165a1130d00400c32","5565217903b6710d0091695f"],"_id":"5548466bd2c8410d006c2146","createdAt":"2015-05-05T04:26:19.796Z","project":"5548466bd2c8410d006c2143","__v":8,"releaseDate":"2015-05-05T04:26:19.796Z"},"__v":5,"category":{"sync":{"isSync":false,"url":""},"pages":["55651e6103b6710d00916957","55651ead65a1130d00400c33","55651fb6b893840d00444746","556523f5b60f251900703442","556524f3eb1615230053fd4d","55652555eb1615230053fd4f"],"title":"Files","slug":"files","order":5,"from_sync":false,"reference":false,"_id":"55651e0165a1130d00400c32","createdAt":"2015-05-27T01:29:37.594Z","project":"5548466bd2c8410d006c2143","__v":6,"version":"5548466bd2c8410d006c2146"},"editedParams2":true,"parentDoc":null,"user":"555a5da8bcb32e19006f816f","createdAt":"2015-05-27T01:31:13.169Z","project":"5548466bd2c8410d006c2143"}

getGet a File

A File instance represents a file added or attached in ProjectManager.com. This may be a file attached to a Project or shared documents etc. Use this API to fetch a single file by its unique identifier.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

fileId:
required
integer
The Id of the file you would like to retrieve.

Examples


Result Format


Documentation

Use this API to fetch a single file by its unique identifier.