# Put a member on a team

Put one member on one team, answering the team as it now stands. The address names the pair, so adding somebody who is already on it is not an error. Admin only.

Access class: `workspace:admin`.

## Endpoint

`PUT /v1/workspace/teams/{teamId}/members/{accountId}`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| teamId | path | string | Yes |
| accountId | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "body": {},
  "params": {
    ":accountId": "",
    ":teamId": ""
  },
  "query": {}
}
```

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "createdAt": "string",
    "id": "",
    "leadAccountId": "",
    "memberIds": [
      "string"
    ],
    "name": "string",
    "parentTeamId": ""
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
