{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/resources/{resourceId}.json","auth":"required","examples":{"codes":[{"name":"","code":"var data = {\n                id: resourceId,\n                resource: {\n                    name: \"updated api res\",\n                    hourRate: 20,\n                    shortName: \"uar\"\n                }\n            };\n$.ajax({\n    type: \"PUT\", \n    url: \"/api/v1/resources.json\", \n    contentType: 'application/json', \n    dataType: \"json\", \n    success: worked , \n    data: JSON.stringify(data),\n    headers: { apiKey: apiKey }\n });","language":"javascript"}]},"method":"put","params":[{"name":"name","type":"string","default":"","desc":"The name of your resource.","required":false,"in":"body","ref":"","_id":"55651a00b893840d00444735"},{"name":"hourRate","type":"double","default":"null","desc":"Decimal. Hourly rate for resource. The hourly rate will not updated if null is passed in to this parameter.","required":false,"in":"body","ref":"","_id":"55651a00b893840d00444734"},{"name":"shortName","type":"string","default":"null","desc":"The short name of the resource. Maximum 7 characters. If more than 7 characters is specified we will truncate the value of this field","required":false,"in":"body","ref":"","_id":"55651a00b893840d00444733"}],"results":{"codes":[{"status":200,"language":"json","code":"{ \n  status: \"Okay\",\n  resource: {\n    \t\t\t\t\t\t\t\tid: 222222\n                    name: \"updated api res\",\n                    hourRate: 20,\n                    shortName: \"uar\"\n                }\n}","name":""}]},"settings":""},"next":{"description":"","pages":[]},"title":"Update a Resource","type":"endpoint","slug":"edit-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.\n\nUse this API to update an existing Resource.","body":"Use this API to update an existing Resource.","updates":[],"order":4,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"55651a00b893840d00444732","editedParams":true,"editedParams2":true,"project":"5548466bd2c8410d006c2143","githubsync":"","parentDoc":null,"user":"555a5da8bcb32e19006f816f","__v":0,"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"},"createdAt":"2015-05-27T01:12:32.612Z","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"}}

putUpdate 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. Use this API to update an existing Resource.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

name:
string
The name of your resource.
hourRate:
doublenull
Decimal. Hourly rate for resource. The hourly rate will not updated if null is passed in to this parameter.
shortName:
stringnull
The short name of the resource. Maximum 7 characters. If more than 7 characters is specified we will truncate the value of this field

Examples


Result Format


Documentation

Use this API to update an existing Resource.