Marketplace Sections
Operations Summary
List sections
Returns a paginated list of all sections. Sections are used to group attributes within a category.
Retrieve a section
Returns the details of a specific section, identified by its key.
Create a section
Creates a new section within a category. Requires staff permissions.
Update a section
Updates an existing section. Requires staff permissions.
| http \
PUT \
https://api.example.com/api/marketplace-sections/ssh-rsa AAAAB3NzaC1yc2EAAA.../ \
Authorization:"Token YOUR_API_TOKEN" \
key="ssh-rsa AAAAB3NzaC1yc2EAAA..." \
title="string-value" \
category="https://api.example.com/api/category/a1b2c3d4-e5f6-7890-abcd-ef1234567890/"
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 | from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.section_request import SectionRequest # (1)
from waldur_api_client.api.marketplace_sections import marketplace_sections_update # (2)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
body_data = SectionRequest(
key="ssh-rsa AAAAB3NzaC1yc2EAAA...",
title="string-value",
category="https://api.example.com/api/category/a1b2c3d4-e5f6-7890-abcd-ef1234567890/"
)
response = marketplace_sections_update.sync(
key="ssh-rsa AAAAB3NzaC1yc2EAAA...",
client=client,
body=body_data
)
print(response)
|
- Model Source:
SectionRequest
- API Source:
marketplace_sections_update
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 | import { marketplaceSectionsUpdate } from 'waldur-js-client';
try {
const response = await marketplaceSectionsUpdate({
auth: "Token YOUR_API_TOKEN",
path: {
"key": "ssh-rsa AAAAB3NzaC1yc2EAAA..."
},
body: {
"key": "ssh-rsa AAAAB3NzaC1yc2EAAA...",
"title": "string-value",
"category": "https://api.example.com/api/category/a1b2c3d4-e5f6-7890-abcd-ef1234567890/"
}
});
console.log('Success:', response);
} catch (error) {
console.error('Error:', error);
}
|
| Name |
Type |
Required |
Description |
key |
string |
✓ |
A unique value identifying this section. |
| Field |
Type |
Required |
Description |
key |
string |
✓ |
|
title |
string |
✓ |
|
category |
string (uri) |
✓ |
|
is_standalone |
boolean |
|
Whether section is rendered as a separate tab. |
200 -
| Field |
Type |
Description |
url |
string (uri) |
|
key |
string |
|
created |
string (date-time) |
|
title |
string |
|
category |
string (uri) |
|
category_title |
string |
|
is_standalone |
boolean |
Whether section is rendered as a separate tab. |
Partially update a section
Partially updates an existing section. Requires staff permissions.
Delete a section
Deletes a section. Requires staff permissions.