{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Updates the metadata of a resource in a specific Copilot Space owned by a user.\nThe authenticated user must have write permissions on the space.\n\nOAuth app tokens and personal access tokens (classic) need the `write: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."},"space_resource_id":{"type":"integer","description":"The unique identifier of the resource."}},"required":["username","space_number","space_resource_id"],"additionalProperties":false},"body":{"type":"object","properties":{"metadata":{"type":"object","description":"Updated resource-specific metadata.","additionalProperties":true}},"examples":[{"metadata":{"name":"updated-notes.txt","text":"Updated content"}}]}},"required":["path","body"],"additionalProperties":false},"name":"Set a resource for a Copilot Space for a user","id":"github.copilot-spaces.update-resource-for-user","example":{"path":{"username":"example","space_number":1,"space_resource_id":1},"body":{"metadata":{"name":"updated-notes.txt","text":"Updated content"}}},"maxRequests":1,"summary":false}}