Account confirmers, Anti-spam team, Confirmed users, Bureaucrats and Sysops emeriti
4,925
edits
No edit summary |
|||
| Line 101: | Line 101: | ||
'''Notes''' | '''Notes''' | ||
* '''Updating a bug fails if you don't supply a value for 'token'.''' This is a security token used by the web interface to prevent people's browsers being exploited to make unwanted changes. To get this token, retrieve the bug data first. | |||
* If you pass a last_change_time, this call will check for editing conflicts. If you do not, it will unconditionally update the bug to the state you send. If there is a conflict, conflict resolution must be implemented by the client re-GETting the resource, resolving the conflict and re-PUTting the resolved version. | * If you pass a last_change_time, this call will check for editing conflicts. If you do not, it will unconditionally update the bug to the state you send. If there is a conflict, conflict resolution must be implemented by the client re-GETting the resource, resolving the conflict and re-PUTting the resolved version. | ||
* You can only add one comment per call. Add a [[Bugzilla:REST_API:Objects#Comment|Comment]] object without an id to the comments array. | * You can only add one comment per call. Add a [[Bugzilla:REST_API:Objects#Comment|Comment]] object without an id to the comments array. | ||
| Line 111: | Line 112: | ||
** 'component' and 'product' | ** 'component' and 'product' | ||
** 'version' and 'target_milestone' require 'product' | ** 'version' and 'target_milestone' require 'product' | ||
'''Errors''' | '''Errors''' | ||
| Line 265: | Line 265: | ||
'''Notes''' | '''Notes''' | ||
* '''Updating an attachment fails if you don't supply a value for 'token'.''' This is a security token used by the web interface to prevent people's browsers being exploited to make unwanted changes. To get this token, retrieve the attachment data first. | |||
* If you pass a last_change_time, this call will check for editing conflicts. If you do not, it will unconditionally update the bug to the state you send. If there is a conflict, conflict resolution must be implemented by the client re-GETting the resource, resolving the conflict and re-PUTting the resolved version. | * If you pass a last_change_time, this call will check for editing conflicts. If you do not, it will unconditionally update the bug to the state you send. If there is a conflict, conflict resolution must be implemented by the client re-GETting the resource, resolving the conflict and re-PUTting the resolved version. | ||
* You can't set the same (multi-settable) flag twice on a single attachment submission | * You can't set the same (multi-settable) flag twice on a single attachment submission | ||