본문으로 건너뛰기

Query - Sharepoint webUrl로 siteId 조회

Sharepoint의 webUrl을 사용하여 siteId를 조회한다. (Sharepoint 매핑 저장소를 등록할때 사용)


Schema

GraphQL Schema Documentation


Input Objects

KEYOBJECTDESC
urlStringwebUrl (필수)
nameString저장소 이름 (필수)
descriptionString저장소 설명
commonShareStorageBoolean기본 공유 저장소 여부
accessTypeString저장소 접근 방식 (CSSB: 메타정보 기반 연결 / CSSB_DIRECT: 직접 연결)
adminPageBoolean관리자 페이지 여부

Objects

OBJECTDESC
StringSharepoint siteId

Method

POST

{{url}}/graphql

Headers

KEYVALUE
AuthorizationSecurity365 JWT 토큰

Body

QUERY

query sharepointSiteIdByWebUrl($url: String!, $name: String, $description: String, $commonShareStorage: > Boolean!, $accessType: String, $adminPage: Boolean) {
sharepointSiteIdByWebUrl(url: $url, name: $name, description: $description, commonShareStorage: $commonShareStorage, accessType: $accessType, adminPage: $adminPage)
}

Sample

VARIABLES

{
"url": "https://softcamp.sharepoint.com/sites/SECaaS/Shared%20Documents/Forms/AllItems.aspx",
"name": "test",
"description": "test",
"commonShareStorage": false,
"accessType": "CSSB",
"adminPage": true
}

RESPONSE

{
"data": {
"sharepointSiteIdByWebUrl": "softcamp.sharepoint.com,d5057f13-4143-40b9-b0db-0909887307bb,aea3f7d7-2555-44e5-bbac-2a9fa8a68155"
}
}