{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Updates a Copilot Space owned by a user. Only the authenticated user can update spaces for their own account.\n\nUsers can update their personal Copilot Spaces.\n\nOAuth app tokens and personal access tokens (classic) need the `read:user` scope to use this endpoint.","properties":{"path":{"type":"object","properties":{"username":{"type":"string","description":"The handle for the GitHub user account."},"space_number":{"type":"integer","description":"The unique identifier of the Copilot Space."}},"required":["username","space_number"],"additionalProperties":false},"body":{"type":"object","properties":{"name":{"type":"string","description":"The name of the Copilot Space.","examples":["Updated Development Space"]},"description":{"type":"string","description":"A description of the Copilot Space.","examples":["Updated personal space for development assistance"]},"general_instructions":{"type":"string","maxLength":4000,"description":"General instructions for the Copilot Space.","examples":["Updated instructions to help me with React development patterns and best practices"]},"base_role":{"type":"string","enum":["reader","no_access"],"description":"The base role that determines default permissions for the space. Changing this field requires admin permissions.\n- `no_access`: No default access (default)\n- `reader`: Makes the space publicly readable\nNote: User spaces do not support writer or admin base roles."},"resources_attributes":{"type":"array","description":"Resources to attach to the space.","items":{"type":"object","properties":{"resource_type":{"type":"string","enum":["repository","github_file","free_text","github_issue","github_pull_request","media_content","uploaded_text_file"],"description":"The type of resource."},"metadata":{"type":"object","description":"Metadata specific to the resource type.","properties":{"repository_id":{"type":"integer","description":"Repository ID for repository or file resources."},"file_path":{"type":"string","description":"File path for file resources."},"text":{"type":"string","description":"Text content for free text resources."},"name":{"type":"string","description":"Name for the resource."},"number":{"type":"integer","description":"Issue or PR number."}}}}}}},"examples":[{"name":"Updated Development Space","description":"Updated personal space for development assistance","general_instructions":"Updated instructions to help me with React development patterns and best practices","resources_attributes":[{"resource_type":"github_file","metadata":{"repository_id":789012,"file_path":"src/components/UpdatedApp.js"}},{"id":123,"_destroy":true},{"id":456,"resource_type":"free_text","metadata":{"name":"Updated Development Notes","text":"Updated focus on clean code principles and modern React patterns"}}]}]}},"required":["path","body"],"additionalProperties":false},"name":"Set a Copilot Space for a user","id":"github.copilot-spaces.update-for-user","example":{"path":{"username":"example","space_number":1},"body":{"name":"Updated Development Space","description":"Updated personal space for development assistance","general_instructions":"Updated instructions to help me with React development patterns and best practices","resources_attributes":[{"resource_type":"github_file","metadata":{"repository_id":789012,"file_path":"src/components/UpdatedApp.js"}},{"id":123,"_destroy":true},{"id":456,"resource_type":"free_text","metadata":{"name":"Updated Development Notes","text":"Updated focus on clean code principles and modern React patterns"}}]}},"maxRequests":1,"summary":false}}