SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Create a Repository Using the Onboarding API for Google Drive

Create your repository to Document Management Service, Integration Option as it's required for establishing a connection with Google Drive.

Overview

You will learn

  • How to onboard a repository using API. [ACCORDION-BEGIN [Step 1: ](Get URL from the service key)] Copy the url: parameter from the generated service key. !
    Copy_URL
    Copy_URL
    [DONE] [ACCORDION-END] [ACCORDION-BEGIN [Step 2: ](Get started with onboarding repository)] 1. Open the Postman. Click on New and then select HTTP Request to open a new tab on Postman to work on. !
    Postman
    Postman
    2. Select the POST method and enter the request URL as like this: "url">/rest/v2/repositories. > Example: You must ensure that you are adding the parameter /rest/v2/repositories as suffix to the request URL. So that the final sample request URL looks like this: https://api-abc-de.cfapps.sap.hana.ondemand.com/rest/v2/repositories !
    req
    req
    3. Navigate to Authorization tab and select the type Bearer Token. Enter the JSON web token that you generate in this tutorial Generating the JSON Web Token (JWT). !![AuthorizationDetails](https://raw.githubusercontent.com/sap-tutorials/btp-adai/main/tutorials/btp-sdm-gwi-onboarding-repo/Onboard Repo Authorization.png) 4. Navigate to the Body tab and copy paste the following code snippet. JSON { "repository": { "displayName": "MytestReposiory", "description": "Onboarding as part of the tutorial", "repositoryType": "external", "externalId": "MyTutONBRepo", "repositoryCategory": "GoogleWorkspace", "repositoryId": "GoogleConnectorEntry" }, "connection": { "destinationName": "MyTest" } } >Note Please modify the details according to your needs. It is not necessary to follow the same code snippet. A few details, such as display name, and destination names, may change. It is important that you read the Prerequisites again. !![EnterCodeSnippet](https://raw.githubusercontent.com/sap-tutorials/btp-adai/main/tutorials/btp-sdm-gwi-onboarding-repo/EnterCodeSnippet in the Body.png) Click Send. 5. When a successful response is received, the status is 200 OK. Results !![Results](https://raw.githubusercontent.com/sap-tutorials/btp-adai/main/tutorials/btp-sdm-gwi-onboarding-repo/Onboarded repos.png) [DONE] [ACCORDION-END] [ACCORDION-BEGIN [Step 3: ](Test yourself)] [VALIDATE_5] [DONE] [ACCORDION-END]
Vikram Kulkarni V Vikram Kulkarni August 21, 2026
Created on December 10, 2024
Contributors

More from Vikram Kulkarni

See all 14 tutorials by Vikram Kulkarni →

Prerequisites

Prerequisites

Steps

You will learn

  • How to onboard a repository using API.

Step 1 Get URL from the service key

Copy the url: parameter from the generated service key.

!

Copy_URL
Copy_URL

Step 2 Get started with onboarding repository
+
Step 3 Test yourself
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 3
1. Get URL from the service key 2. Get started with onboarding repository 3. Test yourself
Next