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

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.