Portfolio Saved Views
5 Endpunkte. Basis-URL: https://xapi.ambertech.cloud/api/v1
List current user’s saved Gantt views for a portfolio#
GET
/portfolio-saved-viewsTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
portfolio_idPflicht | Query | string | – |
Antworten
- 200User saved-view list.
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/portfolio-saved-views" \
-H "Authorization: Bearer $XISUITE_TOKEN"Create a saved Gantt view#
POST
/portfolio-saved-viewsTokenRequest-Body
| Name | Typ | Beschreibung |
|---|---|---|
portfolio_idPflicht | string | – |
namePflicht | string | – |
view_statePflicht | object | Opaque view-state blob (column visibility, filters, sort, etc.). Stored as JSONB. |
is_default | boolean | Mark this view as the default for this user + portfolio. |
Antworten
- 201Saved view created.
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/portfolio-saved-views" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"portfolio_id":"…","name":"…","view_state":{}}'Update a saved Gantt view (owner only)#
PATCH
/portfolio-saved-views/{id}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
name | string | – |
view_state | object | Replace the view-state blob. |
is_default | boolean | – |
Antworten
- 200Saved view updated.
- 404Saved view not found.
Beispiel (cURL)
curl -X PATCH "https://xapi.ambertech.cloud/api/v1/portfolio-saved-views/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"…","view_state":{},"is_default":true}'Delete a saved Gantt view (owner only)#
DELETE
/portfolio-saved-views/{id}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | – |
Antworten
- 200Saved view deleted.
- 404Saved view not found.
Beispiel (cURL)
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/portfolio-saved-views/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN"Mark this saved view as the default for the current user + portfolio#
POST
/portfolio-saved-views/{id}/set-defaultTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | – |
Antworten
- 200Default updated.
- 404Saved view not found.
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/portfolio-saved-views/{id}/set-default" \
-H "Authorization: Bearer $XISUITE_TOKEN"