Section
Section Service
REST endpoints for interacting with Sections and Section Entries. Sections are used to partition a Support Center page (or other solution page) into regions.
Refer to Sections for examples and additional information.
Since: 3.12
Create Section
POST /sections
Create a new section owned by the caller, based on the information in the specified Section. Then, return a 201 with a Section reflecting the new section configuration.
The following fields are processed from the incoming section entity:
- name - the name of the new section (must be unique per user)
- solutionKey - the name of the solution with which this section should be associated; specify "supportcenter" for the Support Center
- displayOrder - the ordinal to display this section within it's solution key group
- sectionType - the type of the section, one of "header", "block", or "footer"; These types can be used to change the display of the section for a UI
- sectionEntries - the list of section entries to include in this section
Query Parameters:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | Fields to be returned on the newly created entity (defaults to @all) |
Takes:
Retrieves:
Return Status:
HTTP Status Code | Description |
---|---|
201 (Created) | Request was successful |
400 (Bad Request) | One or more input values is malformed |
409 (Conflict) | Requesting to create a section with a name that already exists |
403 (Forbidden) | Requester is not allowed to manage sections |
Destroy Section
DELETE /sections/{sectionID}
Delete an existing section.
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
sectionID | String | true | ID of the section to be deleted |
Return Status:
HTTP Status Code | Description |
---|---|
204 (No Content) | Request was successful |
403 (Forbidden) | The requester is not allowed to manage section |
404 (Not Found) | The specified section cannot be found |
400 (Bad Request) | BadRequestException |
Get Avatar
GET /sections/{sectionEntryID}/avatar
Return the binary content of the avatar image for the specified section entry.
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
sectionEntryID | String | true | ID of the section entry for which to retrieve the avatar image |
Query Parameters:
Name | Type | Required | Description |
---|---|---|---|
size | String | false | Requested size ("small", "medium", "large"), default is "large" |
Retrieves:
Return Status:
HTTP Status Code | Description |
---|---|
200 (OK) | Request was successful |
400 (Bad Request) | An input field is malformed |
403 (Forbidden) | You are not allowed to retrieve this image |
404 (Not Found) | The specified section entry or image does not exist |
Get Section
GET /sections/{sectionID}
Return a Section representation of the specified section.
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
sectionID | String | true | ID of the section to be returned |
Query Parameters:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | Fields to be returned (default is "@all") |
Retrieves:
Return Status:
HTTP Status Code | Description |
---|---|
200 (OK) | Request was successful |
400 (Bad Request) | One or more input values is malformed |
403 (Forbidden) | The requester is not allowed to view sections for the owning user |
404 (Not Found) | The specified section cannot be found |
Get Sections
GET /sections
Query Parameters:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | Fields to be returned for each section(default value is @summary ) |
Retrieves:
Return Status:
HTTP Status Code | Description |
---|---|
200 (OK) | Request was successful |
400 (Bad Request) | Any of the input fields are malformed |
403 (Forbidden) | The requesting user is not authorized to retrieve sections |
Update Section
PUT /sections/{sectionID}
Update an existing section, based on the information in the specified Section. Then, return a Section reflecting the updated section configuration.
The following fields are processed from the incoming Section:
- name - the name of the new section (must be unique per user)
- displayOrder - the ordinal to display this section within it's solution key group
- sectionEntries - the list of section entries to include in this section
solutionKey and sectionType cannot be modified
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
sectionID | String | true | ID of the section to be updated |
Query Parameters:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | Fields to be included in the response (default is @all) |
Takes:
Retrieves:
Return Status:
HTTP Status Code | Description |
---|---|
200 (OK) | Request was successful |
400 (Bad Request) | An input value is missing or malformed |
409 (Conflict) | Requesting to create a section with a name that already exists |
403 (Forbidden) | The requester is not allowed to manage sections |
404 (Not Found) | The specified user cannot be found |