src/teams/teams.js
function(id, projectId, body) {
		return req.standardRequest(`${config.host}/teams/${id}/projects/${projectId}`, 'put', body);
	}
function(id, projectId, body) {
		return req.standardRequest(`${config.host}/teams/${id}/projects/${projectId}`, 'put', body);
	}
function ( id , projectId , body ) { return req . standardRequest ( ` ${ config . host } ${ id } ${ projectId } ` , 'put' , body ) ; }
Add or update team project

Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have admin permissions for the project. The project and team must be part of the same organization.

@see {@link https://developer.github.com/v3/teams/#add-or-update-team-project}

@param {string} id              - The team ID
@param {string} projectId       - The project ID
@param {object} body            - The request body
@param {string} body.permission - The permission to grant to the team for this project. Can be one of:
* `read` - team members can read, but not write to or administer this project.
* `write` - team members can read and write, but not administer this project.
* `admin` - team members can read, write and administer this project.

Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "HTTP verbs."

**Note**: If you pass the `hellcat-preview` media type, you can promote—but not demote—a `permission` attribute inherited from a parent team.

@return {nothing}
Add or update team project