{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Creates a new 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."}},"required":["org"],"additionalProperties":false},"body":{"$ref":"#/definitions/organization-create-issue-field","examples":[{"name":"Priority","description":"Level of importance for the issue","data_type":"single_select","options":[{"name":"High","description":"High priority","color":"red"},{"name":"Medium","description":"Medium priority","color":"yellow"},{"name":"Low","description":"Low priority","color":"green"}]}]}},"required":["path","body"],"additionalProperties":false,"definitions":{"organization-create-issue-field":{"type":"object","properties":{"name":{"description":"Name of the issue field.","type":"string"},"description":{"description":"Description of the issue field.","type":["string","null"]},"data_type":{"description":"The data type of the issue field.","type":"string","enum":["text","date","single_select","multi_select","number"]},"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. Defaults to `organization_members_only`.","type":"string","enum":["organization_members_only","all"]},"options":{"description":"Options for select fields. Required when data_type is 'single_select' or 'multi_select'.","type":["array","null"],"items":{"type":"object","properties":{"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"]}}},"required":["name","data_type"]}}},"name":"Create issue field for an organization","id":"github.orgs.create-issue-field","example":{"path":{"org":"example"},"body":{"name":"example","data_type":"text"}},"maxRequests":1,"summary":false}}