사용자 세부 정보를 업데이트합니다.
이 API를 사용하려면 오직 봇 관리자 콘솔에서 생성된 애플리케이션에서 만들어진 JWT가 필요합니다. 이 API를 사용하려면 앱에 보안 및 제어 아래의 사용자 관리의 관리자 API 범위가 필요합니다.
PUT https://{{host}}/api/public/users 참고 사항: 이 기능은 플랫폼의 v7.1에 도입되었습니다.
쿼리 매개 변수
| 매개 변수 | 설명 |
|---|---|
| host | 환경 URL(예: https://bots.kore.ai) |
본문 매개 변수
| 매개 변수 | 설명 | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| users |
업데이트해야 하는 각 사용자에 대한 세부 정보 배열
|
권한 부여
다음 구문을 포함한 헤더에 JWT를 포함한 API를 호출합니다: auth: {{JWT}}
콘텐츠 유형 응답
application/json
샘플 요청
curl -X PUT \
https://{{host}}/api/public/users \
-H 'Content-Type: application/json' \
-H 'auth: YOUR_JWT_ACCESS_TOKEN' \
-d '{
"users": [
{
"userInfo": {
"emailId": "publicuser2@gmail.com" // or "orgUserId": <orgUserId>,
"firstName": "user1",
"lastName":"user1",
"companyName":"company_name",
"dept":"dept",
"companyContactPhone":"12334444",
"worknumber":"321",
"street":"street",
"suiteNo":"suite",
"city":"city",
"zip":"123123",
"state":"state",
"country":"country"
},
"groups": {
"addTo": [
"e-f9c09c08-9310-52ff-b672-570ec7325215"
]
},
"roles": {
"addTo": [
{
"roleId": "5d9d8db3x0d54920a8df1e68b",
"botId": "st-b8525f88-6dd3-54a7-8a97-734ecb748733"
}
],
"removeFrom": [
{
"roleId": "5d9d920dabdc1e6e8ec99342",
"botId": "st-16511425-15c5-5cdf-b652-a796db7d134b"
}
]
},
"assignBotTasks": [
{
"botId": "st-xxx-xx-xxx-xxx-xxxx",
"dialogs": ["dg-xxxx-xx-xx-xx-xxxx"]
}
],
"canCreateBot": true,
"isDeveloper": true
}
]
}
'
샘플 응답
-
- 성공 사례의 경우:
{ "msg": "Users are updated Successfully" };
- 성공 사례의 경우: