Certain pre defined attributes are already created by the API hub. These attributes will have type as SYSTEM_DEFINED and can be listed via attributes.list method. Allowed values for the same can be updated via attributes.patch method.
HTTP request
POST https://apihub.googleapis.com/v1/{parent=projects/*/locations/*}/attributes
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-16 UTC."],[[["This page details how to create a user-defined attribute within the API hub, contrasting it with the existing `SYSTEM_DEFINED` attributes."],["Creating an attribute involves sending a POST request to the specified URL, `https://apihub.googleapis.com/v1/{parent=projects/*/locations/*}/attributes`, utilizing gRPC Transcoding syntax."],["The attribute ID can be either user-specified or system-generated, with the ID having specific character constraints if the user decides to provide it themselves."],["The request body should include an instance of the `Attribute`, and upon success, the response body returns the newly created `Attribute` instance."],["To create an attribute, you must have the necessary OAuth scope (`https://www.googleapis.com/auth/cloud-platform`) and the `apihub.attributes.create` IAM permission on the parent resource."]]],[]]