사용자 수정하기
Last updated
Last updated
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": "[email protected]",
"name": "tuser",
"email": "[email protected]",
"departmentFull": "test > test1",
"isNotEmailTypeValid": "N"
}'
{
"code": 0,
"message": "success",
"body": null
}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": "[email protected]",
"isNotEmailTypeValid": "N",
"departmentFull": "test > test1"
},
{
"name": "testuser5",
"email": "[email protected]",
"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": "[email protected]",
"departmentFull": "test > test1",
"error": "Email already exists"
},
{
"name": "testuser5",
"email": "[email protected]",
"departmentFull": "test > test1",
"error": "Email already exists"
}
]
}
]
}
}