> For the complete documentation index, see [llms.txt](https://openapi-docs.exosp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://openapi-docs.exosp.com/guide/organization/put-member.md).

# 사용자 수정하기

<mark style="background-color:green;">PUT</mark> `https://openapi.exosp.com/organization/v1/member`

사용자 정보를 수정하는 API 입니다.

### Request Body

<table><thead><tr><th width="249">항목</th><th>타입</th><th>설명</th></tr></thead><tbody><tr><td>beforeMemberName<mark style="color:red;">*</mark></td><td>string</td><td><strong>이전</strong> <strong>사용자 이름</strong></td></tr><tr><td>beforeMemberEmail<mark style="color:red;">*</mark></td><td>string</td><td><strong>이전 사용자 메일</strong></td></tr><tr><td>name</td><td>string</td><td><strong>사용자 이름</strong></td></tr><tr><td>email</td><td>string</td><td><strong>사용자 메일</strong></td></tr><tr><td>departmentFull</td><td>string</td><td><strong>그룹 전체 경로</strong></td></tr><tr><td>isNotEmailTypeValid</td><td>string</td><td><p><strong>아이디에 대한 이메일 형태 체크여부</strong></p><p>(Y: 유효성 체크함, N: 체크 안함)</p></td></tr></tbody></table>

### Response Schema

<table><thead><tr><th width="162">항목</th><th width="115">타입</th><th>설명</th></tr></thead><tbody><tr><td>code</td><td>int</td><td><p><strong>응답 처리 결과 코드</strong> </p><p>0 : 성공, 1 : 실패</p></td></tr><tr><td>message</td><td>string</td><td><p><strong>응답 처리 결과 메세지</strong></p><p>success : 성공, 그 외 : 실패</p></td></tr><tr><td>body</td><td>object</td><td><a data-mention href="#body">#body</a></td></tr></tbody></table>

#### **body 상세**

<table><thead><tr><th width="164">항목</th><th width="115">타입</th><th>설명</th></tr></thead><tbody><tr><td>total</td><td>int</td><td><strong>전체 레코드 수</strong></td></tr><tr><td>data</td><td>array</td><td><a data-mention href="#data">#data</a></td></tr></tbody></table>

#### data 상세

<table><thead><tr><th width="181">항목</th><th width="110">타입</th><th>설명</th></tr></thead><tbody><tr><td>inserted_members</td><td>int</td><td><strong>생성된 사용자 수</strong></td></tr><tr><td>errors</td><td>array</td><td><a data-mention href="#errors">#errors</a></td></tr></tbody></table>

#### errors 상세

<table><thead><tr><th width="181">항목</th><th width="110">타입</th><th>설명</th></tr></thead><tbody><tr><td>name</td><td>string</td><td><strong>사용자 이름</strong></td></tr><tr><td>email</td><td>string</td><td><strong>사용자 메일</strong></td></tr><tr><td>departmentFull</td><td>string</td><td><strong>그룹 전체 경로</strong></td></tr><tr><td>error</td><td>string</td><td><strong>오류 메세지</strong></td></tr></tbody></table>

### Example

{% tabs %}
{% tab title="200 Success" %}

```javascript
curl -X 'PUT' \
  'http://openapi.exosp.com/organization/v1/member' \
  -H 'accept: application/json' \
  -H 'x-exosp-access: d992206eb001e717f8a690590c430d96' \
  -H 'x-exosp-secret: iiarwgz4yCAzTdkWNotKLfRiuSKsZPov' \
  -H 'Content-Type: application/json' \
  -d '{
  "beforeMemberName": "tuser",
  "beforeMemberEmail": "tuser@exosp.com",
  "name": "tuser",
  "email": "tuser@exosp.com",
  "departmentFull": "test > test1",
  "isNotEmailTypeValid": "N"
}'
  

{
  "code": 0,
  "message": "success",
  "body": null
}
```

{% endtab %}

{% tab title="Fail" %}

```bash
curl -X 'POST' \
  'http://127.0.0.1:8000/organization/v1/member' \
  -H 'accept: application/json' \
  -H 'x-exosp-access: d992206eb001e717f8a690590c430d96' \
  -H 'x-exosp-secret: iiarwgz4yCAzTdkWNotKLfRiuSKsZPov' \
  -H 'x-app-env: dev' \
  -H 'Content-Type: application/json' \
  -d '{
  "memberList": [
    {
      "name": "testuser4",
      "email": "testuser4@exosp.com",
      "isNotEmailTypeValid": "N",
      "departmentFull": "test > test1"
    },
    {
      "name": "testuser5",
      "email": "testuser5@exosp.com",
      "isNotEmailTypeValid": "N",
      "departmentFull": "test > test1"
    }
  ]
}'

{
  "code": 1,
  "message": "transaction rolled back due to failure",
  "body": {
    "total": 2,
    "data": [
      {
        "inserted_members": 0,
        "errors": [
          {
            "name": "testuser4",
            "email": "testuser4@exosp.com",
            "departmentFull": "test > test1",
            "error": "Email already exists"
          },
          {
            "name": "testuser5",
            "email": "testuser5@exosp.com",
            "departmentFull": "test > test1",
            "error": "Email already exists"
          }
        ]
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}
