{"_id":"55651a00b893840d00444732","editedParams":true,"editedParams2":true,"project":"5548466bd2c8410d006c2143","parentDoc":null,"user":"555a5da8bcb32e19006f816f","__v":0,"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"},"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:12:32.612Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"language":"javascript","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 });","name":""}]},"method":"put","results":{"codes":[{"name":"","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}","language":"json","status":200}]},"settings":"","auth":"required","params":[{"_id":"55651a00b893840d00444735","ref":"","in":"body","required":false,"desc":"The name of your resource.","default":"","type":"string","name":"name"},{"_id":"55651a00b893840d00444734","ref":"","in":"body","required":false,"desc":"Decimal. Hourly rate for resource. The hourly rate will not updated if null is passed in to this parameter.","default":"null","type":"double","name":"hourRate"},{"_id":"55651a00b893840d00444733","ref":"","in":"body","required":false,"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","default":"null","type":"string","name":"shortName"}],"url":"/resources/{resourceId}.json"},"isReference":false,"order":4,"body":"Use this API to update an existing 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.","slug":"edit-a-resource","type":"endpoint","title":"Update a Resource"}

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.