{
  "operationId": "teams/add-or-update-project-permissions-legacy",
  "method": "PUT",
  "path": "/teams/{team_id}/projects/{project_id}",
  "summary": "APIs.io Engineering Platform Add or update team project permissions (Legacy)",
  "requestExamples": [
    {
      "contentType": "application/json",
      "name": "default",
      "example": {
        "permission": "read"
      }
    }
  ],
  "responseExamples": [
    {
      "status": "403",
      "contentType": "application/json",
      "name": "response-if-the-project-is-not-owned-by-the-organization",
      "example": {
        "message": "Must have admin rights to Repository.",
        "documentation_url": "https://docs.github.com/enterprise-server@3.9/rest/teams/teams#add-or-update-team-project-permissions"
      }
    }
  ]
}