SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Test SAP Business Accelerator Hub APIs with curl

Make calls to SAP Business Accelerator HUB APIs from the command line.

Overview

🎓 beginner 20 min. SAP Business Technology PlatformBeginnerSAP API Business Hub

You will learn

  • โœ”How to use command line tools like curl and jq with REST / OData APIs.
DJ Adams D DJ Adams April 20, 2026
Created by November 26, 2018
Contributors

Prerequisites

Prerequisites

  • A trial account on the SAP Business Technology Platform
  • A subscription to the SAP Business Application Studio

See Create a Dev Space for Business Applications.

Steps

Intro

You have already discovered the SAP Business Accelerator Hub and accomplished testing an API on the website. In this tutorial, you will learn how to use command line tools such as curl and jq to make requests to REST and OData APIs. Doing this will give you a better feel for the APIs, how they’re constructed and how they can be used.

Using a dev space in SAP Business Application Studio means:

  • you don’t need to worry about different shell environments
  • you don’t need to install and maintain command line tools locally on your machine
  • you will get a better feel for how arguably the most common OS-level environment in the cloud works
  • you can run through this tutorial repeatedly on any machine

Step 1 Navigate to an API on the SAP Business Accelerator Hub
โ€”

Go to https://api.sap.com and navigate to the Campaign API. The choice of this specific API is fairly arbitrary; there are lots of APIs from which to choose, but for the sake of choosing something, let’s use this one which is an OData V2 API within the SAP Cloud for Customer API package.

Campaign API overview
Campaign API overview

Step 2 Examine one of the API endpoints
+
Step 3 Select a code snippet for making a request
+
Step 4 Get ready to run the code snippet
+
Step 5 Modify your request
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 5
1. Navigate to an API on the SAP Business Accelerator Hub 2. Examine one of the API endpoints 3. Select a code snippet for making a request 4. Get ready to run the code snippet 5. Modify your request

Learn more →