Skip to main content

Views

Create a view​

POST /views

Code samples


curl -X POST https://localhost:9543/api-portal/api/v0.9/views \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d @payload.json

Creates an API Portal view for an organization and associates it with the supplied label names. If name is omitted, the service stores the view's handle as its name.

Payload

{
"id": "partner-apis",
"displayName": "Partner APIs",
"labels": [
"partner",
"public"
]
}

Authentication​

This operation requires a Bearer JWT access token in the Authorization header. Required scopes (the token must carry at least one of): `dp:view:create`, `dp:view:manage`

Parameters​

NameInTypeRequiredDescription
bodybodyViewCreateRequesttrueView creation payload with the label names that should be visible in the view.

Example responses

201 Response

{
"message": "string"
}

Bad request. Validation and other bad-request errors are returned as a standard error object (field-level details, when present, are carried in its errors array); some legacy handlers return a message-only object.

{
"status": "error",
"code": "MISSING_REQUIRED_PARAMETER",
"message": "Missing required parameter."
}
{
"message": "Missing or invalid fields in the request payload"
}

409 Response

{
"status": "error",
"code": "CONFLICT",
"message": "Conflict"
}

500 Response

{
"status": "error",
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred."
}

Responses​

StatusMeaningDescriptionSchema
201CreatedJSON message response.MessageResponse
400Bad RequestBad request. Validation and other bad-request errors are returned as a standard error object (field-level details, when present, are carried in its errors array); some legacy handlers return a message-only object.Inline
409ConflictThe request conflicts with an existing resource.ErrorResponse
500Internal Server ErrorInternal server error.ErrorResponse

Response schema​

Enumerated Values​

PropertyValue
statuserror

List views​

GET /views

Code samples


curl -X GET https://localhost:9543/api-portal/api/v0.9/views \
-H 'Authorization: Bearer {access_token}' \
-H 'Accept: application/json'

Lists all views configured for the organization. Each view includes the label names attached to it.

Authentication​

This operation requires a Bearer JWT access token in the Authorization header. Required scopes (the token must carry at least one of): `dp:view:read`, `dp:view:manage`

Parameters​

NameInTypeRequiredDescription
limitqueryintegerfalseMaximum number of records to return.
offsetqueryintegerfalseNumber of records to skip before returning results.

Example responses

200 Response

{
"list": [
{
"id": "partner-apis",
"displayName": "Partner APIs",
"labels": [
"partner",
"public"
],
"createdBy": "[email protected]",
"updatedBy": "[email protected]",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
],
"count": 1,
"pagination": {
"total": 42,
"limit": 20,
"offset": 0
}
}

404 Response

"string"

500 Response

{
"status": "error",
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred."
}

Responses​

StatusMeaningDescriptionSchema
200OKList of view DTOs.Inline
404Not FoundPlain text success response.string
500Internal Server ErrorInternal server error.ErrorResponse

Response schema​

Status Code 200

NameTypeRequiredRestrictionsDescription
» list[ViewResponse]falsenonenone
»» idstringtruenoneThe view's handle (unique per org). Not the internal database uuid.
»» displayNamestringtruenonenone
»» labels[string]truenonenone
»» createdBystringfalsenoneIdentity of the user who created this view, or deleted_user if that user's IDP reference no longer exists. Present on single-resource GET responses and list items.
»» updatedBystringfalsenoneIdentity of the user who last updated this view, or deleted_user if that user's IDP reference no longer exists. Present on single-resource GET responses only, omitted on list items.
»» createdAtstring(date-time)falsenonenone
»» updatedAtstring(date-time)falsenonenone
» countintegerfalsenoneNumber of items returned in this page.
» paginationPaginationfalsenoneStandard pagination metadata returned with collection responses.
»» totalintegertruenoneTotal number of records matching the query.
»» limitintegertruenoneMaximum number of records returned in this response.
»» offsetintegertruenoneNumber of records skipped before this page.

Update a view​

PUT /views/{viewId}

Code samples


curl -X PUT https://localhost:9543/api-portal/api/v0.9/views/{viewId} \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d @payload.json

Updates the view's display name, its label associations, or both. When labels is supplied, it fully replaces the view's label set — labels present in the list are attached and any others are detached. The service returns the accepted request payload.

Payload

{
"displayName": "Partner and Public APIs",
"labels": [
"partner",
"premium"
]
}

Authentication​

This operation requires a Bearer JWT access token in the Authorization header. Required scopes (the token must carry at least one of): `dp:view:update`, `dp:view:manage`

Parameters​

NameInTypeRequiredDescription
bodybodyViewUpdateRequesttrueView update payload. Include only the display name or label changes that should be applied.
viewIdpathstringtrueThe view's handle (unique per org). Not the internal database uuid.

Example responses

200 Response

{
"displayName": "Partner and Public APIs",
"labels": [
"partner",
"premium"
]
}

Bad request. Validation and other bad-request errors are returned as a standard error object (field-level details, when present, are carried in its errors array); some legacy handlers return a message-only object.

{
"status": "error",
"code": "MISSING_REQUIRED_PARAMETER",
"message": "Missing required parameter."
}
{
"message": "Missing or invalid fields in the request payload"
}

404 Response

{
"status": "error",
"code": "ORG_NOT_FOUND",
"message": "Organization not found."
}

409 Response

{
"status": "error",
"code": "CONFLICT",
"message": "Conflict"
}

500 Response

{
"status": "error",
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred."
}

Responses​

StatusMeaningDescriptionSchema
200OKEcho of the accepted view update payload.ViewUpdateRequest
400Bad RequestBad request. Validation and other bad-request errors are returned as a standard error object (field-level details, when present, are carried in its errors array); some legacy handlers return a message-only object.Inline
404Not FoundResource not found.ErrorResponse
409ConflictThe request conflicts with an existing resource.ErrorResponse
500Internal Server ErrorInternal server error.ErrorResponse

Response schema​

Enumerated Values​

PropertyValue
statuserror

Get a view​

GET /views/{viewId}

Code samples


curl -X GET https://localhost:9543/api-portal/api/v0.9/views/{viewId} \
-H 'Authorization: Bearer {access_token}' \
-H 'Accept: application/json'

Retrieves one view by its viewId handle, including the label names attached to that view.

Authentication​

This operation requires a Bearer JWT access token in the Authorization header. Required scopes (the token must carry at least one of): `dp:view:read`, `dp:view:manage`

Parameters​

NameInTypeRequiredDescription
viewIdpathstringtrueThe view's handle (unique per org). Not the internal database uuid.

Example responses

200 Response

{
"id": "partner-apis",
"displayName": "Partner APIs",
"labels": [
"partner",
"public"
],
"createdBy": "[email protected]",
"updatedBy": "[email protected]",
"createdAt": "2026-05-07T08:30:00Z",
"updatedAt": "2026-05-07T08:30:00Z"
}

Bad request. Validation and other bad-request errors are returned as a standard error object (field-level details, when present, are carried in its errors array); some legacy handlers return a message-only object.

{
"status": "error",
"code": "MISSING_REQUIRED_PARAMETER",
"message": "Missing required parameter."
}
{
"message": "Missing or invalid fields in the request payload"
}

404 Response

"string"

500 Response

{
"status": "error",
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred."
}

Responses​

StatusMeaningDescriptionSchema
200OKView DTO response.ViewResponse
400Bad RequestBad request. Validation and other bad-request errors are returned as a standard error object (field-level details, when present, are carried in its errors array); some legacy handlers return a message-only object.Inline
404Not FoundPlain text success response.string
500Internal Server ErrorInternal server error.ErrorResponse

Response schema​

Enumerated Values​

PropertyValue
statuserror

Delete a view​

DELETE /views/{viewId}

Code samples


curl -X DELETE https://localhost:9543/api-portal/api/v0.9/views/{viewId} \
-H 'Authorization: Bearer {access_token}' \
-H 'Accept: application/json'

Deletes a view by its viewId handle. A missing view is returned as a not-found error.

Authentication​

This operation requires a Bearer JWT access token in the Authorization header. Required scopes (the token must carry at least one of): `dp:view:delete`, `dp:view:manage`

Parameters​

NameInTypeRequiredDescription
viewIdpathstringtrueThe view's handle (unique per org). Not the internal database uuid.

Example responses

Bad request. Validation and other bad-request errors are returned as a standard error object (field-level details, when present, are carried in its errors array); some legacy handlers return a message-only object.

{
"status": "error",
"code": "MISSING_REQUIRED_PARAMETER",
"message": "Missing required parameter."
}
{
"message": "Missing or invalid fields in the request payload"
}

404 Response

{
"status": "error",
"code": "ORG_NOT_FOUND",
"message": "Organization not found."
}

500 Response

{
"status": "error",
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred."
}

Responses​

StatusMeaningDescriptionSchema
204No ContentView deleted successfully.None
400Bad RequestBad request. Validation and other bad-request errors are returned as a standard error object (field-level details, when present, are carried in its errors array); some legacy handlers return a message-only object.Inline
404Not FoundResource not found.ErrorResponse
500Internal Server ErrorInternal server error.ErrorResponse

Response schema​

Enumerated Values​

PropertyValue
statuserror

Was this page helpful?