How do I call the business_units endpoints over HTTP?

Table of Contents

This file documents the business_units resource over HTTP, one section per endpoint. Every section exports its own Hurl file into projects/ores.http/scripts/library/. Running a file sends that one request, so a failure names the endpoint it came from.

1. Endpoints

1.1. GET /api/v1/reference-data/business_units

List business units. It needs a session.

It forwards to refdata.v1.business_units.list.

The request is:

GET /api/v1/reference-data/business_units
GET {{base_url}}/api/v1/reference-data/business_units
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.2. GET /api/v1/reference-data/business_units/__none__

Get one business unit. It needs a session.

It forwards to refdata.v1.business_units.get.

The request is:

GET /api/v1/reference-data/business_units/__none__
GET {{base_url}}/api/v1/reference-data/business_units/__none__
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.3. POST /api/v1/reference-data/business_units/get-many

Get many business units. It needs a session.

It forwards to refdata.v1.business_units.get_many.

The request is:

POST /api/v1/reference-data/business_units/get-many
POST {{base_url}}/api/v1/reference-data/business_units/get-many
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.4. POST /api/v1/reference-data/business_units

Create one business unit. It needs a session.

It forwards to refdata.v1.business_units.put.

The request is:

POST /api/v1/reference-data/business_units
POST {{base_url}}/api/v1/reference-data/business_units
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.5. PUT /api/v1/reference-data/business_units

Replace one business unit. It needs a session.

It forwards to refdata.v1.business_units.put.

The request is:

PUT /api/v1/reference-data/business_units
PUT {{base_url}}/api/v1/reference-data/business_units
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.6. POST /api/v1/reference-data/business_units/put-many

Write many business units. It needs a session.

It forwards to refdata.v1.business_units.put_many.

The request is:

POST /api/v1/reference-data/business_units/put-many
POST {{base_url}}/api/v1/reference-data/business_units/put-many
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.7. DELETE /api/v1/reference-data/business_units/__none__

Delete one business unit. It needs a session.

It forwards to refdata.v1.business_units.delete.

The request is:

DELETE /api/v1/reference-data/business_units/__none__
DELETE {{base_url}}/api/v1/reference-data/business_units/__none__
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.8. POST /api/v1/reference-data/business_units/delete-many

Delete many business units. It needs a session.

It forwards to refdata.v1.business_units.delete_many.

The request is:

POST /api/v1/reference-data/business_units/delete-many
POST {{base_url}}/api/v1/reference-data/business_units/delete-many
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.9. GET /api/v1/reference-data/business_units/by-party-id/__none__

List the business units that reference one party id. It needs a session.

It forwards to refdata.v1.business_units.list_by_party_id.

The request is:

GET /api/v1/reference-data/business_units/by-party-id/__none__
GET {{base_url}}/api/v1/reference-data/business_units/by-party-id/__none__
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.10. GET /api/v1/reference-data/business_units/__none__/versions

List the recorded versions of one business unit. It needs a session.

It forwards to refdata.v1.business_units_versions.list.

The request is:

GET /api/v1/reference-data/business_units/__none__/versions
GET {{base_url}}/api/v1/reference-data/business_units/__none__/versions
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.11. GET /api/v1/reference-data/business_units/__none__/versions/0

Get one recorded version of one business unit. It needs a session.

It forwards to refdata.v1.business_units_versions.get.

The request is:

GET /api/v1/reference-data/business_units/__none__/versions/0
GET {{base_url}}/api/v1/reference-data/business_units/__none__/versions/0
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

Emacs 29.3 (Org mode 9.6.15)