{"_id":"55651800b893840d00444728","project":"5548466bd2c8410d006c2143","user":"555a5da8bcb32e19006f816f","__v":9,"category":{"_id":"554a69ba0b54d30d007fe128","project":"5548466bd2c8410d006c2143","pages":["554a69ca156a480d00e2924a","554a69d40b54d30d007fe129","554a6c8258f5650d00ae440d","554a6c8f58f5650d00ae4410","554a6c990b54d30d007fe131","554a7c0e38e3620d00821920","554a7e9d6b448d0d00646b92","554a7ea838e3620d00821929","554a7f016b448d0d00646b94","5575c1dbacd0472d000ac9ba"],"version":"5548466bd2c8410d006c2146","__v":10,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-05-06T19:21:30.961Z","from_sync":false,"order":1,"slug":"projects","title":"Projects"},"parentDoc":null,"editedParams":true,"editedParams2":true,"version":{"_id":"5548466bd2c8410d006c2146","project":"5548466bd2c8410d006c2143","__v":8,"createdAt":"2015-05-05T04:26:19.796Z","releaseDate":"2015-05-05T04:26:19.796Z","categories":["5548466cd2c8410d006c2147","554a69ba0b54d30d007fe128","554a7f3338e3620d0082192e","5565162e03b6710d00916942","55651a0c65a1130d00400c2b","55651d4565a1130d00400c2f","55651e0165a1130d00400c32","5565217903b6710d0091695f"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-05-27T01:04:00.711Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"language":"javascript","code":"$.ajax({\n      type: 'GET',\n      url: 'https://api.projectmanager.com/api/v1/resources/1234/assignedProjects.json',\n      headers: {'apiKey': '[yourApiKey]'}\n})\n.done(function(data) {\n  \t\tlog(data);\n});"},{"code":"<?\n$context = stream_context_create(array(\n  'http'=>array(\n    'method'=>\"GET\",\n    'header'=>\"apiKey: [yourApiKey]\")\n));\n$data = file_get_contents('https://api.projectmanager.com/api/v1/resources/1234/assignedProjects.json', false, $context);\nprint_r(json_decode($data));\n?>","language":"php"}]},"method":"get","results":{"codes":[{"code":"{\n    \"status\": \"Okay\",\n    \"projects\": [\n        {\n            \"status\": \"Open\",\n            \"authorised\": true,\n            \"due\": \"2015-05-27T12:00:00\",\n            \"id\": 555069,\n            \"name\": \"Sample Project\"\n        }\n    ]\n}","language":"json","status":200,"name":""}]},"settings":"","auth":"required","params":[{"_id":"5575c7beacd0472d000ac9cc","ref":"","in":"path","required":true,"desc":"The Id of the resource you wish to query assigned projects for.","default":"","type":"int","name":"resourceId"}],"url":"/resources/{resourceId}/assignedProjects.json"},"isReference":false,"order":1,"body":"A Project is represented by the following properties:\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Property\",\n    \"h-1\": \"Description\",\n    \"0-0\": \"Id\",\n    \"0-1\": \"The Id that uniquely identifies this project.\",\n    \"1-0\": \"Name\",\n    \"1-1\": \"The name of the project.\",\n    \"2-0\": \"Budget\",\n    \"2-1\": \"The budget of the project, in the applicable currency of your business.\",\n    \"3-0\": \"ChargeCode\",\n    \"3-1\": \"The charge code for the project. Both the name and id of the charge code is encapsulated within this property.\",\n    \"4-0\": \"Customer\",\n    \"4-1\": \"The customer of the project. Both the name and the id of the customer of the project will be included in this property.\",\n    \"5-0\": \"Description\",\n    \"5-1\": \"The description of the project.\",\n    \"6-0\": \"Manager\",\n    \"6-1\": \"The manager of the project. Both the name and the unique identifier of the manager will be included in this property.\",\n    \"7-0\": \"Priority\",\n    \"7-1\": \"The priority of the project.\",\n    \"8-0\": \"Rate\",\n    \"8-1\": \"The standard hourly rate for this project.\",\n    \"9-0\": \"Short Name\",\n    \"9-1\": \"The short name of the project.\"\n  },\n  \"cols\": 2,\n  \"rows\": 10\n}\n[/block]","excerpt":"A Project represents a planned and trackable Project within ProjectManager.com.\n\nUse this API to fetch a full list of projects assigned to a particular resource. You can retrieve a list of valid `resourceId` values by calling [https://api.projectmanager.com/api/v1/resources.json](/v1.0/docs/retrieve-resources).\n\nNOTE: The API instructions use the term \"Resource\" in both the Code and in these Developer instructions to reference Resourceid. However, in the live Product, the term \"Resource\" has been globally changed to \"People\" or \"Person\" to indicate a resource.","slug":"projects-by-resource","type":"endpoint","title":"Get Projects by Resource"}

getGet Projects by Resource

A Project represents a planned and trackable Project within ProjectManager.com. Use this API to fetch a full list of projects assigned to a particular resource. You can retrieve a list of valid `resourceId` values by calling [https://api.projectmanager.com/api/v1/resources.json](/v1.0/docs/retrieve-resources). NOTE: The API instructions use the term "Resource" in both the Code and in these Developer instructions to reference Resourceid. However, in the live Product, the term "Resource" has been globally changed to "People" or "Person" to indicate a resource.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

resourceId:
required
integer
The Id of the resource you wish to query assigned projects for.

Examples


Result Format


Documentation

A Project is represented by the following properties: [block:parameters] { "data": { "h-0": "Property", "h-1": "Description", "0-0": "Id", "0-1": "The Id that uniquely identifies this project.", "1-0": "Name", "1-1": "The name of the project.", "2-0": "Budget", "2-1": "The budget of the project, in the applicable currency of your business.", "3-0": "ChargeCode", "3-1": "The charge code for the project. Both the name and id of the charge code is encapsulated within this property.", "4-0": "Customer", "4-1": "The customer of the project. Both the name and the id of the customer of the project will be included in this property.", "5-0": "Description", "5-1": "The description of the project.", "6-0": "Manager", "6-1": "The manager of the project. Both the name and the unique identifier of the manager will be included in this property.", "7-0": "Priority", "7-1": "The priority of the project.", "8-0": "Rate", "8-1": "The standard hourly rate for this project.", "9-0": "Short Name", "9-1": "The short name of the project." }, "cols": 2, "rows": 10 } [/block]