Bugzilla:BzAPI:Objects: Difference between revisions

no edit summary
No edit summary
Line 6: Line 6:
* Fields marked No Mod can be set when the object is created, but are Read Only thereafter.
* Fields marked No Mod can be set when the object is created, but are Read Only thereafter.
* Fields marked Optional may be missing entirely. Other fields are guaranteed to be present but may be blank. XXX_make_it_so.
* Fields marked Optional may be missing entirely. Other fields are guaranteed to be present but may be blank. XXX_make_it_so.
* For fields of type Boolean, on submit, "0", 0 and "" are false; everything else is true. XXX_test_this
* For fields of type Boolean, on submit, "0" and 0 are false; everything else is true. This may get relaxed later.
* Fields of type Timestamp are in an ISO 8601 format - either YYYY-MM-DD HH:MM:SS or YYYYMMDDTHH:MM:SS (T being a literal "T"). Eventually, all will also have a +DDDD timezone marker, but currently most don't.
* Fields of type Timestamp are in an ISO 8601 format - either YYYY-MM-DD HH:MM:SS or YYYYMMDDTHH:MM:SS (T being a literal "T"). Eventually, all will also have a +DDDD timezone marker, but currently most don't.


Line 97: Line 97:
|}
|}


XXX_TODO_TOTEST groups


====Notes====
====Notes====
Line 135: Line 134:
|status||String||Flag value||
|status||String||Flag value||
|-
|-
|requestee||String, Optional XXX_promote||User action is requested from, if flag is requestable||
|requestee||String, Optional||User action is requested from, if flag is requestable||
|}
|}


Line 155: Line 154:
!Name!!Type!!Description!!Other Names
!Name!!Type!!Description!!Other Names
|-
|-
|added||String or Array XXX_promote?||Values added, if any||
|added||String||Values added, if any||
|-
|-
|field_name||String||Field changed||
|field_name||String||Field changed||
|-
|-
|removed||String or Array XXX_promote?||Values removed, if any||
|removed||String||Values removed, if any||
|}
|}


Line 169: Line 168:
|attacher||User, Read Only||User who created attachment||
|attacher||User, Read Only||User who created attachment||
|-
|-
|bug_id||Integer, Read Only||ID if bug to which this is an attachment XXX_unimplemented||
|bug_id||Integer, Read Only||ID if bug to which this is an attachment||
|-
|-
|bug_ref||String, Read Only||URL of associated bug in API XXX_unimplemented||
|bug_ref||String, Read Only||URL of associated bug in API||
|-
|-
|creation_time||Timestamp String, Read Only||When attachment was submitted||
|creation_time||Timestamp String, Read Only||When attachment was submitted||
Line 181: Line 180:
|encoding||String, No Mod||Encoding of 'content'; 'base64' is only supported value; provided only with data field||
|encoding||String, No Mod||Encoding of 'content'; 'base64' is only supported value; provided only with data field||
|-
|-
|filename XXXfile_name||String||Path-less filename of attachment||
|file_name||String||Path-less filename of attachment||
|-
|-
|flag||Array of Flag||Flags set on this attachment (XXXnote: not all possible flags)||
|flag||Array of Flag||Flags set on this attachment (XXXnote: not all possible flags)||
Line 199: Line 198:
|token||String||Token to submit to change attachment metadata||
|token||String||Token to submit to change attachment metadata||
|-
|-
|type XXXcontent_type||String||MIME type of attachment||
|content_type||String||MIME type of attachment||
|}
|}


Account confirmers, Anti-spam team, Confirmed users, Bureaucrats and Sysops emeriti
4,925

edits