Skip to content

[Custom Mapping Rules] Modify a Mapping Configuration



POST /api/v1/login_mapping/field/{lgmp_uuid}/modify

Overview

Route Parameters

Parameter Name Type Required Description
lgmp_uuid string Y Mapping configuration ID

Body Request Parameters

Parameter Name Type Required Description
sourceField string Y Source field
Example: sourceField
Allow empty: False
Maximum length: 256
sourceValue string Y Source field value
Example:
Allow empty: False
Maximum length: 256
targetValues array Y Target field values (currently defaults to a list of role UUIDs)
Example: ['readOnly']

Additional Parameter Notes

Request Example

curl 'https://openapi.guance.com/api/v1/login_mapping/field/lgmp_xxxx32/modify' \
  -H 'Content-Type: application/json;charset=UTF-8' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  --data-raw '{"sourceField":"name","sourceValue":"lisa-new","targetValues":["wsAdmin"]}' \
  --compressed

Response

{
    "code": 200,
    "content": true,
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "16410390460963313112"
} 

Feedback

Is this page helpful? ×