{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Issue owners and users with push access or Triage role can edit an issue.\n\nThis endpoint supports the following custom media types. For more information, see \"[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types).\"\n\n- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.\n- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.\n- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.\n- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.","properties":{"path":{"type":"object","properties":{"owner":{"type":"string","description":"The account owner of the repository. The name is not case sensitive."},"repo":{"type":"string","description":"The name of the repository without the `.git` extension. The name is not case sensitive."},"issue_number":{"type":"integer","description":"The number that identifies the issue."}},"required":["owner","repo","issue_number"],"additionalProperties":false},"body":{"type":"object","properties":{"title":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"The title of the issue."},"body":{"type":["string","null"],"description":"The contents of the issue."},"assignee":{"type":["string","null"],"description":"Username to assign to this issue. **This field is closing down.**"},"state":{"type":"string","description":"The open or closed state of the issue.","enum":["open","closed"]},"state_reason":{"type":["string","null"],"enum":["completed","not_planned","duplicate","reopened"],"description":"The reason for the state change. Ignored unless `state` is changed.","examples":["not_planned"]},"duplicate_issue_id":{"type":"integer","description":"The ID of the issue that this issue duplicates, used when marking this issue as a duplicate with `status: Duplicate` or `state_reason: duplicate`. The issue must exist and be accessible to the authenticated user."},"milestone":{"oneOf":[{"type":"string"},{"type":"integer","description":"The `number` of the milestone to associate this issue with or use `null` to remove the current milestone. Only users with push access can set the milestone for issues. Without push access to the repository, milestone changes are silently dropped."}]},"labels":{"type":"array","description":"Labels to associate with this issue. Pass one or more labels to _replace_ the set of labels on this issue. Send an empty array (`[]`) to clear all labels from the issue. Only users with push access can set labels for issues. Without push access to the repository, label changes are silently dropped.","items":{"oneOf":[{"type":"string"},{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":["string","null"]},"color":{"type":["string","null"]},"rationale":{"type":"string","description":"Optional reasoning for selecting this label."},"suggest":{"type":"boolean","description":"If `true`, the change is stored as a pending suggestion for human review rather than applied directly."},"confidence":{"type":"string","description":"The confidence level for this label choice.","enum":["low","medium","high"]}}}]}},"assignees":{"type":"array","description":"Usernames to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this issue. Send an empty array (`[]`) to clear all assignees from the issue. Only users with push access can set assignees for new issues. Without push access to the repository, assignee changes are silently dropped.","items":{"oneOf":[{"type":"string"},{"type":"object","properties":{"login":{"type":"string"},"rationale":{"type":"string","description":"Optional reasoning for selecting this assignee."},"suggest":{"type":"boolean","description":"If `true`, the change is stored as a pending suggestion for human review rather than applied directly."},"confidence":{"type":"string","description":"The confidence level for this assignee choice.","enum":["low","medium","high"]}}}]}},"issue_field_values":{"type":"array","description":"An array of issue field values to set on this issue. Each field value must include the field ID and the value to set. Only users with push access can set field values for issues","items":{"type":"object","properties":{"field_id":{"type":"integer","description":"The ID of the issue field to set"},"value":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"array","items":{"type":"string"}}],"description":"The value to set for the field. For multi-select fields, provide an array of option names."},"rationale":{"type":"string","description":"Optional reasoning for setting this field value."},"suggest":{"type":"boolean","description":"If `true`, the change is stored as a pending suggestion for human review rather than applied directly."},"confidence":{"type":"string","description":"The confidence level for this field value choice.","enum":["low","medium","high"]}},"required":["field_id","value"],"additionalProperties":false}},"type":{"description":"The issue type to associate with this issue. Only users with push access can set the type for issues. Without push access to the repository, type changes are silently dropped.","oneOf":[{"type":"string","description":"The name of the issue type.","examples":["Epic"]},{"type":"object","description":"The issue type with optional metadata.","properties":{"value":{"type":["string","null"],"description":"The name of the issue type to associate with this issue, or `null` to remove the current issue type.","examples":["Epic"]},"rationale":{"type":"string","description":"Optional reasoning for selecting this type."},"suggest":{"type":"boolean","description":"If `true`, the change is stored as a pending suggestion for human review rather than applied directly."},"confidence":{"type":"string","description":"The confidence level for this type choice.","enum":["low","medium","high"]}}}]}},"examples":[{"title":"Found a bug","body":"I'm having a problem with this.","assignees":["octocat"],"milestone":1,"state":"open","labels":["bug"]}]}},"required":["path"],"additionalProperties":false},"name":"Update an issue","id":"github.issues.update","example":{"path":{"owner":"octocat","repo":"hello-world","issue_number":1}},"maxRequests":1,"summary":false}}