v1

latestOpenAPI 3.0.0Apache 2.02026-07-2483101116.9 KB
defects

Update defect

This method updates a defect.

patch/defect/{code}/{id}

Path parameters

codestring required

Code of project, where to search entities.

idinteger required

Identifier.

Request body

titlestring
actual_resultstring
severityinteger
milestone_idinteger nullable
attachmentsstring[]
custom_fieldobject

Custom field values keyed by the field's project-scoped internal_id (see GET /custom_field). Values are always scalar strings; arrays, objects or non-scalars are rejected.

Field typeValue formatExample
string, textPlain string"hello"
numberNumeric string"42"
urlValid URL"https://qase.io"
datetimeAbsolute date (ISO 8601 recommended)"2026-04-29T15:00:00Z"
selectbox, radioOption id as string"1"
multiselectComma-separated option ids (no spaces)"1,2,3"
checkbox"1" to check, "" to uncheck"1"
userTeam member internal_id as string"42"

Partial update: only fields present in the payload are validated; required fields not included are not enforced. Send "" to clear a value. Unknown internal_ids are rejected; option-based values must reference an existing option.

Note: a required checkbox without a default cannot be unchecked via the API — set a default or clear required in workspace settings.

tagsstring[]

Response

A result.

statusboolean