/api/v1/ps

The Schedule Publication API allows you to create, update, and delete schedules using APIs.

Prerequisites

  • You must have a SAP Analytics Cloud tenant URL.

  • You must have a SAP Analytics Cloud user.

  • You must configure OAuth to work with your application. The Multi Action Service supports two OAuth authentication flows:
    • OAuth 2.0 Authorization Code Grant - For information, see Configuring OAuth 2.0 Authorization Code Grant Workflow in Setting Up Authentication. As multi action APIs are supposed to be conducted under business user context, set Purpose to Interactive Usage when you configure the OAuth client.

    • OAuth 2.0 SAML Bearer Assertion - You need to have a trusted identity provider added to SAP Analytics Cloud. You can use the SAML Bearer Token issued by your identity provider to fetch the access token. For more information on how to add a trusted identity provider, see Add a Trusted Identity Provider in Set Up Third-Party Access with OAuth Clients.

      The authorization code workflow generally requires the end-user to input the credentials to logon SAP Analytics Cloud explicitly to get the authorization code and continue the authentication. Since the consumption of multi action API can be embedded in a fully automated process with no user interference, the OAuth 2.0 SAML Bearer Assertion workflow could be an alternative solution.

  • You must get a valid CSRF token before making any POST request. For more information, see Get a Valid CSRF Token for the Multi Action API.

API Endpoints and Parameters

Endpoint

Description

/schedules/template (GET)

Allows you to request for a payload template prefilled with properties and values.

/schedules (POST)

Allows you to create single or recurrence schedule publication.

/schedules/{{schedule.Id}} (PATCH)

Allows you to update properties of your schedule.

/schedules/{{schedule.Id}} (DEL)

Allows you to delete a single or series of schedules.

Limitations

The following limitations apply when a schedule is published using APIs:
  • The schedule takes five additional minutes over current time if the recurrence type is 1 (a single occurence), runNow is false, and runOnceStartDate field is not there in payload.

  • Only ISO date time is supported.

  • When runNow is true and runOnce field also has valid/invalid data, runNow will be considered.

  • When the number of occurrences and end date are given, the number of occurrences will be considered.

  • When updating the recurrence, only firstrun parameter should be available.

  • Page range is not supported.

  • If the page resolution is entered wrong, schedule will be created with default resolution.