マッピング設定の追加¶
POST /api/v1/login_mapping/field/add
概要¶
Body リクエストパラメータ¶
| パラメータ名 | タイプ | 必須 | 説明 |
|---|---|---|---|
| sourceField | string | Y | ソースフィールド 例: sourceField 空許可: False 最大長: 256 |
| sourceValue | string | Y | ソースフィールド値 例: 空許可: False 最大長: 256 |
| targetValues | array | Y | ターゲットフィールド値(現在のデフォルトはロールのUUID値リスト) 例: readOnly |
パラメータ補足説明¶
リクエスト例¶
curl 'https://openapi.guance.com/api/v1/login_mapping/field/add' \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-raw '{"sourceField":"name","sourceValue":"lisa","targetValues":["wsAdmin","role_xxxx32"]}' \
--compressed
レスポンス¶
{
"code": 200,
"content": {
"createAt": 1697427020,
"creator": "mact_xxxx22",
"deleteAt": -1,
"id": null,
"isSystem": true,
"sourceField": "name",
"sourceValue": "lisa",
"status": 0,
"targetValues": [
"wsAdmin",
"role_xxxxxxxx"
],
"updateAt": 1697427020,
"updator": "mact_xxxxxx",
"uuid": "lgmp_xxxxxxxxxxxxxx",
"workspaceUUID": "wksp_bb191037aa7exxxxxxx"
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "12119540197801491096"
}