{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Creates a new resource in a specific Copilot Space owned by an organization.\nThe authenticated user must have write permissions on the space.\n\nThe following resource types are supported: `repository`, `github_file`, `free_text`, `github_issue`, `github_pull_request`.\nThe `uploaded_text_file` and `media_content` types are not supported via this endpoint.\n\nFor `github_file` resources, if a resource with the same repository, file path, and SHA already exists, the existing resource is returned with a `200` status.\n\nOAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.\n\nFine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space, including the resource being created.","properties":{"path":{"type":"object","properties":{"org":{"type":"string","description":"The organization name. The name is not case sensitive."},"space_number":{"type":"integer","description":"The unique identifier of the Copilot Space."}},"required":["org","space_number"],"additionalProperties":false},"body":{"type":"object","required":["resource_type","metadata"],"properties":{"resource_type":{"type":"string","enum":["repository","github_file","free_text","github_issue","github_pull_request"],"description":"The type of resource to create."},"metadata":{"type":"object","description":"Resource-specific metadata.","additionalProperties":true}},"examples":[{"resource_type":"free_text","metadata":{"name":"notes.txt","text":"Some helpful notes"}}]}},"required":["path","body"],"additionalProperties":false},"name":"Create a resource for an organization Copilot Space","id":"github.copilot-spaces.create-resource-for-org","example":{"path":{"org":"example","space_number":1},"body":{"resource_type":"free_text","metadata":{"name":"notes.txt","text":"Some helpful notes"}}},"maxRequests":1,"summary":false}}