api/v1/Repositories

OData 2.0 service that returns Repositories type metadata.

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.

For more information on the OData service, see Reference for OData 2.0 URI conventionsInformation published on non-SAP site.

GET /v1/Repositories

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

URL Parameters

  • HTTP Headers:

    • (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: Include the number of entities returned.

  • (Optional) select=<Resource_ID>: Get the specified resource.

  • (Optional) count: Return the total results count across all pages.

  • (Optional) filter=<Filter>: Adds the specified filter to the request. Supported operators: And, Or, Not, Eq, Ne, Co, Sw, Ew.

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

For more information on OData parameters, see OData Request System Query Options.

Successful Response

HTTP Status Code

Returns

200

Successful operation

A list of stories and folders 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. Check that the request syntax is 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.