{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Updates an issue field for an organization.\n\nYou can find out more about issue fields in [Managing issue fields in an organization](https://docs.github.com/issues/tracking-your-work-with-issues/using-issues/managing-issue-fields-in-an-organization).\n\nTo use this endpoint, the authenticated user must be an administrator for the organization. OAuth app tokens and\npersonal access tokens (classic) need the `admin:org` scope to use this endpoint.","properties":{"path":{"type":"object","properties":{"org":{"type":"string","description":"The organization name. The name is not case sensitive."},"issue_field_id":{"type":"integer","description":"The unique identifier of the issue field."}},"required":["org","issue_field_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/organization-update-issue-field","examples":[{"name":"Priority","description":"Level of importance for the issue"}]}},"required":["path","body"],"additionalProperties":false,"definitions":{"organization-update-issue-field":{"type":"object","properties":{"name":{"description":"Name of the issue field.","type":"string"},"description":{"description":"Description of the issue field.","type":["string","null"]},"visibility":{"description":"The visibility of the issue field. Can be `organization_members_only` (visible only within the organization) or `all` (visible to all users who can see issues). Only used when the visibility settings feature is enabled.","type":"string","enum":["organization_members_only","all"]},"options":{"description":"Options for select fields. Only applicable when updating single_select or multi_select fields. When provided, this array **replaces** the entire existing set of options rather than adding to or updating individual options. To retain or update an existing option, include it in the array with its `id`. Options sent without an `id` are treated as new options and may cause existing options to be deleted and recreated.","type":"array","items":{"type":"object","properties":{"id":{"description":"The id of an existing option to retain or update. Omit this when creating a new option.","type":"integer"},"name":{"description":"Name of the option.","type":"string"},"description":{"description":"Description of the option.","type":["string","null"]},"color":{"description":"Color for the option.","type":"string","enum":["gray","blue","green","yellow","orange","red","pink","purple"]},"priority":{"description":"Priority of the option for ordering.","type":"integer"}},"required":["name","color","priority"]}}}}}},"name":"Update issue field for an organization","id":"github.orgs.update-issue-field","example":{"path":{"org":"example","issue_field_id":1},"body":{}},"maxRequests":1,"summary":false}}