Affiliated Organizations
Operations Summary
Core CRUD
List Affiliated Organizations
Retrieve
Create
| http \
POST \
https://api.example.com/api/affiliated-organizations/ \
Authorization:"Token YOUR_API_TOKEN" \
name="my-awesome-affiliated-organization" \
code="string-value"
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 | from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.affiliated_organization_request import AffiliatedOrganizationRequest # (1)
from waldur_api_client.api.affiliated_organizations import affiliated_organizations_create # (2)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
body_data = AffiliatedOrganizationRequest(
name="my-awesome-affiliated-organization",
code="string-value"
)
response = affiliated_organizations_create.sync(
client=client,
body=body_data
)
print(response)
|
- Model Source:
AffiliatedOrganizationRequest
- API Source:
affiliated_organizations_create
1
2
3
4
5
6
7
8
9
10
11
12
13
14 | import { affiliatedOrganizationsCreate } from 'waldur-js-client';
try {
const response = await affiliatedOrganizationsCreate({
auth: "Token YOUR_API_TOKEN",
body: {
"name": "my-awesome-affiliated-organization",
"code": "string-value"
}
});
console.log('Success:', response);
} catch (error) {
console.error('Error:', error);
}
|
| Field |
Type |
Required |
Description |
name |
string |
✓ |
|
code |
string |
✓ |
Unique short identifier, e.g. CERN, EMBL. |
abbreviation |
string |
|
|
description |
string |
|
|
email |
string (email) |
|
|
homepage |
string (uri) |
|
|
country |
string |
|
|
address |
string |
|
|
201 -
| Field |
Type |
Description |
uuid |
string (uuid) |
|
url |
string (uri) |
|
name |
string |
|
code |
string |
Unique short identifier, e.g. CERN, EMBL. |
abbreviation |
string |
|
description |
string |
|
email |
string (email) |
|
homepage |
string (uri) |
|
country |
string |
|
address |
string |
|
created |
string (date-time) |
|
modified |
string (date-time) |
|
projects_count |
integer |
Number of active projects affiliated with this organization |
Update
| http \
PUT \
https://api.example.com/api/affiliated-organizations/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
Authorization:"Token YOUR_API_TOKEN" \
name="my-awesome-affiliated-organization" \
code="string-value"
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 | from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.affiliated_organization_request import AffiliatedOrganizationRequest # (1)
from waldur_api_client.api.affiliated_organizations import affiliated_organizations_update # (2)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
body_data = AffiliatedOrganizationRequest(
name="my-awesome-affiliated-organization",
code="string-value"
)
response = affiliated_organizations_update.sync(
uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
client=client,
body=body_data
)
print(response)
|
- Model Source:
AffiliatedOrganizationRequest
- API Source:
affiliated_organizations_update
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 | import { affiliatedOrganizationsUpdate } from 'waldur-js-client';
try {
const response = await affiliatedOrganizationsUpdate({
auth: "Token YOUR_API_TOKEN",
path: {
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
},
body: {
"name": "my-awesome-affiliated-organization",
"code": "string-value"
}
});
console.log('Success:', response);
} catch (error) {
console.error('Error:', error);
}
|
| Name |
Type |
Required |
uuid |
string (uuid) |
✓ |
| Field |
Type |
Required |
Description |
name |
string |
✓ |
|
code |
string |
✓ |
Unique short identifier, e.g. CERN, EMBL. |
abbreviation |
string |
|
|
description |
string |
|
|
email |
string (email) |
|
|
homepage |
string (uri) |
|
|
country |
string |
|
|
address |
string |
|
|
200 -
| Field |
Type |
Description |
uuid |
string (uuid) |
|
url |
string (uri) |
|
name |
string |
|
code |
string |
Unique short identifier, e.g. CERN, EMBL. |
abbreviation |
string |
|
description |
string |
|
email |
string (email) |
|
homepage |
string (uri) |
|
country |
string |
|
address |
string |
|
created |
string (date-time) |
|
modified |
string (date-time) |
|
projects_count |
integer |
Number of active projects affiliated with this organization |
Partial Update
| http \
PATCH \
https://api.example.com/api/affiliated-organizations/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
Authorization:"Token YOUR_API_TOKEN"
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 | from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.patched_affiliated_organization_request import PatchedAffiliatedOrganizationRequest # (1)
from waldur_api_client.api.affiliated_organizations import affiliated_organizations_partial_update # (2)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
body_data = PatchedAffiliatedOrganizationRequest()
response = affiliated_organizations_partial_update.sync(
uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
client=client,
body=body_data
)
print(response)
|
- Model Source:
PatchedAffiliatedOrganizationRequest
- API Source:
affiliated_organizations_partial_update
1
2
3
4
5
6
7
8
9
10
11
12
13 | import { affiliatedOrganizationsPartialUpdate } from 'waldur-js-client';
try {
const response = await affiliatedOrganizationsPartialUpdate({
auth: "Token YOUR_API_TOKEN",
path: {
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
});
console.log('Success:', response);
} catch (error) {
console.error('Error:', error);
}
|
| Name |
Type |
Required |
uuid |
string (uuid) |
✓ |
| Field |
Type |
Required |
Description |
name |
string |
|
|
code |
string |
|
Unique short identifier, e.g. CERN, EMBL. |
abbreviation |
string |
|
|
description |
string |
|
|
email |
string (email) |
|
|
homepage |
string (uri) |
|
|
country |
string |
|
|
address |
string |
|
|
200 -
| Field |
Type |
Description |
uuid |
string (uuid) |
|
url |
string (uri) |
|
name |
string |
|
code |
string |
Unique short identifier, e.g. CERN, EMBL. |
abbreviation |
string |
|
description |
string |
|
email |
string (email) |
|
homepage |
string (uri) |
|
country |
string |
|
address |
string |
|
created |
string (date-time) |
|
modified |
string (date-time) |
|
projects_count |
integer |
Number of active projects affiliated with this organization |
Delete
Other Actions
Get affiliated organizations report
Staff-only report showing aggregated data for all affiliated organizations plus an unaffiliated row.
Get affiliated organization statistics
Returns permission-filtered statistics for this affiliated organization.