{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/resources.json","auth":"required","examples":{"codes":[{"language":"javascript","code":"var data = { \"hourRate\": 50.00, \"name\": \"api res\" }\n\n$.ajax({\n  type: \"POST\",\n  url: \"https://secure.projectmanager.com/api/v1/resources.json\",\n  contentType: 'application/json',\n  dataType: \"json\",\n  success: function(resp) { callBack(resp); },\n  data: JSON.stringify(data),\n  headers: { apiKey: apiKey }\n});","name":""}]},"method":"post","params":[{"name":"name","type":"string","default":"","desc":"The name of your resource","required":true,"in":"body","ref":"","_id":"5565190e65a1130d00400c28"},{"name":"shortName","type":"string","default":"First 7 chars of the name attribute if not provided","desc":"The shortname of your resource, max 7 characters","required":false,"in":"body","ref":"","_id":"5565190e65a1130d00400c27"},{"name":"countryId","type":"string","default":"Business default country id","desc":"Integer, your resource country id","required":false,"in":"body","ref":"","_id":"5565190e65a1130d00400c26"},{"name":"hourRate","type":"string","default":"0","desc":"Decimal, resource default rate per hour","required":false,"in":"body","ref":"","_id":"5565190e65a1130d00400c25"}],"results":{"codes":[]},"settings":""},"next":{"description":"","pages":[]},"title":"Create a Resource","type":"endpoint","slug":"add-a-resource","excerpt":"A Resource instance represents a resource created for a particular business account. This may be a resource associated with a particular user, or an inanimate resource like a meeting room.\n\nUse this API to create a Resource that can be assigned to Tasks.","body":"Use this API to create a Resource that can be assigned to Tasks.","updates":[],"order":2,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5565190e65a1130d00400c24","editedParams2":true,"project":"5548466bd2c8410d006c2143","__v":1,"parentDoc":null,"category":{"sync":{"isSync":false,"url":""},"pages":["55651711b893840d00444723","556517a965a1130d00400c22","55651800b893840d00444728","5565190e65a1130d00400c24","5565194db893840d0044472c","55651a00b893840d00444732"],"title":"Resources","slug":"resources","order":3,"from_sync":false,"reference":false,"_id":"5565162e03b6710d00916942","__v":6,"project":"5548466bd2c8410d006c2143","version":"5548466bd2c8410d006c2146","createdAt":"2015-05-27T00:56:14.105Z"},"user":"555a5da8bcb32e19006f816f","version":{"version":"1","version_clean":"1.0.0","codename":"Classic","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"},"editedParams":true,"githubsync":"","createdAt":"2015-05-27T01:08:30.622Z"}

postCreate a Resource

A Resource instance represents a resource created for a particular business account. This may be a resource associated with a particular user, or an inanimate resource like a meeting room. Use this API to create a Resource that can be assigned to Tasks.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

name:
required
string
The name of your resource
shortName:
stringFirst 7 chars of the name attribute if not provided
The shortname of your resource, max 7 characters
countryId:
stringBusiness default country id
Integer, your resource country id
hourRate:
string0
Decimal, resource default rate per hour

Examples


Documentation

Use this API to create a Resource that can be assigned to Tasks.