api/v1/Resources

Returns a list of stories available on your SAP Analytics Cloud tenant.

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. For more information, see Setting Up Authentication.

Make sure to visit the SAP Business Accelerator Hub to access the API specification and try out the functionality.

GET /v1/Resources

Returns a list of all stories available on the tenant.

URL Parameters

  • HTTP Headers:

    • Authorization: Bearer <access_token>

    • (Optional) x-sap-sac-custom-auth: true

      Add this if you are using basic authentication against the token service. For more information, see Setting Up Authentication.

  • (Optional) format=<Response_Format>: Set the response format to json or xml.

  • (Optional) expand=<Attribute>: Expands on the specified attribute.

  • (Optional) orderby=<Attribute> <Order>: Orders the results on the attribute passed in either ascending or descending order. <Order>can be set to asc (ascending) or desc (descending). By default, ascending sort order is used.

  • (Optional) top=<Number_of_Resources>: Get only the specified number of resources.

  • (Optional) skip=<Number_of_Resources>: Skip the specified number of resources.

  • (Optional) inlinecount=<Resources>: Specifies the number of resources returned. <Resources> can be set to allpages (all pages) or none (no count is returned).

  • (Optional) select=<Field>: Get the specified field for a resource.

  • (Optional) filter=<Filter>: Adds the specified filter to the request. Supported operators: and, or, not, eq, ne, startswith, endswith, gt, ge, lt, le.

For example, https://<TENANT_URL>/api/v1/Resources?$format=json&$orderby=name desc.

Successful Response

HTTP Status Code

Returns

200

Successful operation

A list of stories will be returned.

Error Responses and Troubleshooting

HTTP Status Code

Reason

400

Bad request related to nonexistent property; please refer to documentation

There is a typo or mistake in your request. Possible errors:
  • Bad request related to $select parameter. Check that the parameter and syntax are correct.

  • Bad request related to nonexistent property. Ensure that you choose an existing property.

  • Bad request related to $expand parameter. Check that the paramter and syntax are correct.

  • Bad request related to $inlinecount parameter. Check that the parameter and syntax are correct.

403

Not authorized to access the resource

There was an authentication issue with the request. This may occur if the user is authenticated by the IdP but does not have a corresponding user in the SAP Analytics Cloud tenant.

To resolve this issue, ensure that a user exists in SAP Analytics Cloud. For more information, see Create Users.

404

Resource not found

The specified story ID could not be found. To resolve this issue, ensure the ID you are using is correct, and that the user has access rights to the specified story.

429

Too many requests, please try again later

The number of API requests have exceeded the allowed rate limit. Please retry the request after some time.

500

A server error has occurred

The response body will be a JSON object with the following properties defined: status, code, and message. The information included with status, code, and message, may help you determine the cause of the server error.