How to use github_repository_deploy_key for organization github repo?

Hi
When trying to use the bellow code, the following error produces
“Error: POST https://api.github.com/repos//MyOrgName/MyRepoName/keys: 404 Not Found

resource "github_repository_deploy_key" "gitops_repository_deploy_public_key" {
  title      = "${var.github_ssh_public_key_name}-${local.github_repository_name}"
  repository = "${var.github_org}/${var.github_repo}" 
  key        = replace(tls_private_key.gitops_repository_generate_keys.public_key_openssh, "\n", "")
  read_only  = true
}

Any idea ?

  1. Note that tried to set repository with/without ${var.github_org}
  2. The correct URL should be https://api.github.com/MyOrgName/MyRepoName/keys
    Thx - Albert