콘텐츠로 이동

매핑 구성 추가



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"
} 

문서 평가

이 페이지가 도움이 되었나요?