Web Methods Topic API

The Topic API from Web Methods — 15 operation(s) for topic.

GitHub OpenAPI

Operations 17

POST /apis/{id}/topics Create a topic in the given API #
POST /packages/{id}/topics Create a topic in the given Package #
POST /types/{type}/instances/{id}/topics Create a topic in the given custom asset #
GET /topics/{id} Get a topic by id #
PUT /topics/{id} Update an existing topic by its Id #
DELETE /topics/{id} Delete a topic by Id #
PUT /topics/{id}/upvote Upvote/Undo-Upvote a topic by its dd #
PUT /topics/{id}/downvote Downvote/Undo-Downvote a topic by its Id #
PUT /topics/{id}/flag Flag/Un-flag a topic by its Id #
PUT /topics/{id}/pin Pin/Un-pin a topic by its Id #
PUT /topics/{id}/bookmarks Bookmark/Undo Bookmark the topic #
GET /topics/{id}/upvote/_count Upvote count of a given topic #
GET /topics/{id}/downvote/_count Downvote count of a given topic #
GET /topics/{id}/flag/_count Flag count of a given topic #
GET /topics/{id}/_count Upvote, downvote and flag count of a given topic #
PUT /topics/{id}/flagged Flag Topic in APIPortal by its Id #
GET /topics/link/preview Get preview of given url #

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/web-methods:web-methods-topic-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

web-methods-topic-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Web Methods Topic API
  version: '10.11'
  description: 'Operations tagged Topic across 2 of this provider''s published API definitions: devportal-topic.yaml, web-methods-developer-portal-topic-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: http://localhost:18101/portal/rest/v1
  description: Development server
tags:
- name: Topic
paths:
  /apis/{id}/topics:
    parameters:
    - name: id
      in: path
      description: Unique identification for API. Refers to the GUID for the API. For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      required: true
      allowEmptyValue: false
      schema:
        type: string
        format: uuid
    post:
      tags:
      - Topic
      summary: Create a topic in the given API
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Topic'
            examples:
              TopicPayload:
                $ref: '#/components/examples/APITopicCreation'
      responses:
        '201':
          $ref: '#/components/responses/CreationResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/API_NotFound'
      operationId: postApisByIdTopics
      x-operation-id-source: derived
    servers:
    - url: http://localhost:18101/portal/rest/v1
      description: Development server
  /packages/{id}/topics:
    parameters:
    - name: id
      in: path
      description: Unique identification for package. Refers to the GUID for the package. For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      required: true
      allowEmptyValue: false
      schema:
        type: string
        format: uuid
    post:
      tags:
      - Topic
      summary: Create a topic in the given Package
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Topic'
            examples:
              TopicPayload:
                $ref: '#/components/examples/PackageTopicCreation'
      responses:
        '201':
          $ref: '#/components/responses/CreationResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/Package_NotFound'
      operationId: postPackagesByIdTopics
      x-operation-id-source: derived
    servers:
    - url: http://localhost:18101/portal/rest/v1
      description: Development server
  /types/{type}/instances/{id}/topics:
    parameters:
    - name: type
      in: path
      schema:
        type: string
      required: true
      description: Unique type id of the custom asset
      example: ticket
    - name: id
      in: path
      description: Unique identification for package. Refers to the GUID for the package. For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      required: true
      allowEmptyValue: false
      schema:
        type: string
        format: uuid
    post:
      tags:
      - Topic
      summary: Create a topic in the given custom asset
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Topic'
            examples:
              TopicPayload:
                $ref: '#/components/examples/CustomAssetTopicCreation'
      responses:
        '201':
          $ref: '#/components/responses/CreationResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/CustomAsset_NotFound'
      operationId: postTypesByTypeInstancesByIdTopics
      x-operation-id-source: derived
    servers:
    - url: http://localhost:18101/portal/rest/v1
      description: Development server
  /topics/{id}:
    parameters:
    - name: id
      in: path
      description: Unique identification for topic. Refers to the GUID for the topic. For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      required: true
      allowEmptyValue: false
      schema:
        type: string
        format: uuid
    get:
      tags:
      - Topic
      summary: Get a topic by id
      responses:
        '200':
          $ref: '#/components/responses/TopicResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: getTopicsById
      x-operation-id-source: derived
    put:
      tags:
      - Topic
      summary: Update an existing topic by its Id
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Topic'
            examples:
              Topic:
                $ref: '#/components/examples/APITopicCreation'
      responses:
        '200':
          $ref: '#/components/responses/UpdatedResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: putTopicsById
      x-operation-id-source: derived
    delete:
      tags:
      - Topic
      summary: Delete a topic by Id
      responses:
        '204':
          description: The response when topic is successfully deleted
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: deleteTopicsById
      x-operation-id-source: derived
    servers:
    - url: http://localhost:18101/portal/rest/v1
      description: Development server
  /topics/{id}/upvote:
    parameters:
    - name: id
      in: path
      description: Unique identification for topic. Refers to the GUID for the topic. For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      required: true
      allowEmptyValue: false
      schema:
        type: string
        format: uuid
    put:
      tags:
      - Topic
      summary: Upvote/Undo-Upvote a topic by its dd
      description: Upvote/Undo-Upvote a topic by its id. Calling this endpoint again will undo upvote.
      responses:
        '200':
          $ref: '#/components/responses/UpvoteResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: putTopicsByIdUpvote
      x-operation-id-source: derived
    servers:
    - url: http://localhost:18101/portal/rest/v1
      description: Development server
  /topics/{id}/downvote:
    parameters:
    - name: id
      in: path
      description: Unique identification for topic. Refers to the GUID for the topic. For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      required: true
      allowEmptyValue: false
      schema:
        type: string
        format: uuid
    put:
      tags:
      - Topic
      summary: Downvote/Undo-Downvote a topic by its Id
      description: Downvote/Undo-Downvote a topic by its Id. Calling this endpoint again will undo downvote.
      responses:
        '200':
          $ref: '#/components/responses/DownVoteResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: putTopicsByIdDownvote
      x-operation-id-source: derived
    servers:
    - url: http://localhost:18101/portal/rest/v1
      description: Development server
  /topics/{id}/flag:
    parameters:
    - name: id
      in: path
      description: Unique identification for topic. Refers to the GUID for the topic. For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      required: true
      allowEmptyValue: false
      schema:
        type: string
        format: uuid
    put:
      tags:
      - Topic
      summary: Flag/Un-flag a topic by its Id
      description: Flag/Un-flag a topic by its Id. Calling this endpoint again will undo flag.
      responses:
        '200':
          $ref: '#/components/responses/FlagResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: putTopicsByIdFlag
      x-operation-id-source: derived
    servers:
    - url: http://localhost:18101/portal/rest/v1
      description: Development server
  /topics/{id}/pin:
    parameters:
    - name: id
      in: path
      description: Unique identification for topic. Refers to the GUID for the topic. For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      required: true
      allowEmptyValue: false
      schema:
        type: string
        format: uuid
    put:
      tags:
      - Topic
      summary: Pin/Un-pin a topic by its Id
      description: Pin/Un-pin a topic by its Id. Calling this endpoint again will undo pin.
      responses:
        '200':
          $ref: '#/components/responses/PinnedResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: putTopicsByIdPin
      x-operation-id-source: derived
    servers:
    - url: http://localhost:18101/portal/rest/v1
      description: Development server
  /topics/{id}/bookmarks:
    parameters:
    - name: id
      in: path
      description: Unique identification for topic. Refers to the GUID for the topic. For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      required: true
      allowEmptyValue: false
      schema:
        type: string
        format: uuid
    put:
      tags:
      - Topic
      summary: Bookmark/Undo Bookmark the topic
      description: Bookmark/Undo Bookmark the topic with the given id.
      responses:
        '200':
          $ref: '#/components/responses/BookmarkResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: putTopicsByIdBookmarks
      x-operation-id-source: derived
    servers:
    - url: http://localhost:18101/portal/rest/v1
      description: Development server
  /topics/{id}/upvote/_count:
    parameters:
    - name: id
      in: path
      description: Unique identification for topic. Refers to the GUID for the topic. For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      required: true
      allowEmptyValue: false
      schema:
        type: string
        format: uuid
    get:
      tags:
      - Topic
      summary: Upvote count of a given topic
      responses:
        '200':
          description: The response when the upvote count is retrieved successfully
          $ref: '#/components/responses/Count'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: getTopicsByIdUpvoteCount
      x-operation-id-source: derived
    servers:
    - url: http://localhost:18101/portal/rest/v1
      description: Development server
  /topics/{id}/downvote/_count:
    parameters:
    - name: id
      in: path
      description: Unique identification for topic. Refers to the GUID for the topic. For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      required: true
      allowEmptyValue: false
      schema:
        type: string
        format: uuid
    get:
      tags:
      - Topic
      summary: Downvote count of a given topic
      responses:
        '200':
          description: The response when the downvote count is retrieved successfully
          $ref: '#/components/responses/Count'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: getTopicsByIdDownvoteCount
      x-operation-id-source: derived
    servers:
    - url: http://localhost:18101/portal/rest/v1
      description: Development server
  /topics/{id}/flag/_count:
    parameters:
    - name: id
      in: path
      description: Unique identification for topic. Refers to the GUID for the topic. For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      required: true
      allowEmptyValue: false
      schema:
        type: string
        format: uuid
    get:
      tags:
      - Topic
      summary: Flag count of a given topic
      responses:
        '200':
          description: The response when the flag count is retrieved successfully
          $ref: '#/components/responses/Count'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: getTopicsByIdFlagCount
      x-operation-id-source: derived
    servers:
    - url: http://localhost:18101/portal/rest/v1
      description: Development server
  /topics/{id}/_count:
    parameters:
    - name: id
      in: path
      description: Unique identification for topic. Refers to the GUID for the topic. For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      required: true
      allowEmptyValue: false
      schema:
        type: string
        format: uuid
    get:
      tags:
      - Topic
      summary: Upvote, downvote and flag count of a given topic
      responses:
        '200':
          $ref: '#/components/responses/CountResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: getTopicsByIdCount
      x-operation-id-source: derived
    servers:
    - url: http://localhost:18101/portal/rest/v1
      description: Development server
  /topics/{id}/flagged:
    parameters:
    - name: id
      in: path
      description: Unique identification for topic. Refers to the GUID for the topic. For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      required: true
      allowEmptyValue: false
      schema:
        type: string
        format: uuid
    put:
      tags:
      - Topic
      summary: Flag Topic in APIPortal by its Id
      description: Flag Topic in APIPortal by its Id. This operation can be perfomed only by admin
      responses:
        '200':
          $ref: '#/components/responses/FlaggedResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: putTopicsByIdFlagged
      x-operation-id-source: derived
    servers:
    - url: http://localhost:18101/portal/rest/v1
      description: Development server
  /topics/link/preview:
    get:
      tags:
      - Topic
      summary: Get preview of given url
      parameters:
      - in: query
        required: true
        name: url
        schema:
          type: string
      responses:
        '200':
          $ref: '#/components/responses/LinkResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
      operationId: getTopicsLinkPreview
      x-operation-id-source: derived
    servers:
    - url: http://localhost:18101/portal/rest/v1
      description: Development server
components:
  responses:
    NotFound:
      description: The specified resource was not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            404:
              $ref: '#/components/examples/404'
    UpdatedResponse:
      description: The response when the topic is successfully updated
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/UpdatedResponse'
          examples:
            UpdationResponse:
              $ref: '#/components/examples/UpdatedResponse'
    UpvoteResponse:
      description: The response when the topic is successfully upvoted
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/UpdatedResponse'
          examples:
            UpvoteExample:
              $ref: '#/components/examples/UpvoteExample'
            UndoUpvoteExample:
              $ref: '#/components/examples/UndoUpvoteExample'
    TopicResponse:
      description: Topic Response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Topic'
          examples:
            TopicExample:
              $ref: '#/components/examples/Topic'
    CustomAsset_NotFound:
      description: The specified resource was not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            CustomAsset_404:
              $ref: '#/components/examples/CustomAsset_404'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            401:
              $ref: '#/components/examples/401'
    Count:
      description: Count
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Count'
          examples:
            CountExample:
              $ref: '#/components/examples/CountExample'
    FlagResponse:
      description: The response when the topic is flagged/un-flagged successfully
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/UpdatedResponse'
          examples:
            FlaggedResponse:
              $ref: '#/components/examples/FlagResponse'
            UnflaggedResponse:
              $ref: '#/components/examples/UnFlagResponse'
    BookmarkResponse:
      description: The response when the topic is bookmarked/un-bookmarked successfully
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/UpdatedResponse'
          examples:
            BookmarkResponse:
              $ref: '#/components/examples/BookmarkResponse'
            UnBookmarkResponse:
              $ref: '#/components/examples/UnBookmarkResponse'
    LinkResponse:
      description: The response of Link preview
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LinkMetadata'
          examples:
            LinkMetadata:
              $ref: '#/components/examples/LinkMetadata'
    API_NotFound:
      description: The specified resource was not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            API_404:
              $ref: '#/components/examples/API_404'
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            403:
              $ref: '#/components/examples/403'
    CreationResponse:
      description: The response when topic is created successfully
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/CreatedResponse'
          examples:
            CreationResponse:
              $ref: '#/components/examples/CreatedResponse'
    CountResponse:
      description: The response of operation count of a given topic
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/CountResponse'
          examples:
            CountResponse:
              $ref: '#/components/examples/CountResponse'
    PinnedResponse:
      description: The response when the topic is pinned/un-pinned successfully
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/UpdatedResponse'
          examples:
            PinnedResponse:
              $ref: '#/components/examples/PinnedResponse'
            UnPinnedResponse:
              $ref: '#/components/examples/UnPinnedResponse'
    FlaggedResponse:
      description: The response when the topic is flagged by Administrator
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/UpdatedResponse'
          examples:
            FlaggedResponse:
              $ref: '#/components/examples/FlagAcceptedResponse'
            AlreadyFlaggedResponse:
              $ref: '#/components/examples/AlreadyFlaggedResponse'
    DownVoteResponse:
      description: The response when the topic is successfully downvoted
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/UpdatedResponse'
          examples:
            DownVoteExample:
              $ref: '#/components/examples/DownVoteExample'
            UndoDownvoteExample:
              $ref: '#/components/examples/UndoDownVoteExample'
    Package_NotFound:
      description: The specified resource was not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            Package_404:
              $ref: '#/components/examples/Package_404'
  examples:
    UndoDownVoteExample:
      value:
        code: 200
        message: Undo downvote successful
    PinnedResponse:
      value:
        code: 200
        message: Pinned successfully
    APITopicCreation:
      value:
        tags:
        - tag1
        - tag2
        stream:
          type: API
          id: 74733475-a879-4693-b94f-22c9c946d433
        content:
          value: sample topic
          type: rich
    BookmarkResponse:
      value:
        code: 200
        message: Topic is bookmarked successfully
    LinkMetadata:
      value:
        title: Platform for Enterprise Integration & IoT | Software AG
        description: Software AG is a leader in platform integration and IoT for enterprises. Our platform helps you unleash your vision in our smarter, connected world.
        image: https://www.softwareag.com/en_corporate.thumb.800.480.png?ck=1591295547
    CountResponse:
      value:
        upvote: 1
        downvote: 1
        flag: 0
    UnPinnedResponse:
      value:
        code: 200
        message: Unpin successful
    UnBookmarkResponse:
      value:
        code: 200
        message: Undo bookmarking the topic is successful
    PackageTopicCreation:
      value:
        tags:
        - tag1
        - tag2
        stream:
          type: PACKAGE
          id: 74733475-a879-4693-b94f-22c9c946d433
        content:
          value: sample topic
          type: rich
    CountExample:
      value: 3
    UndoUpvoteExample:
      value:
        code: 200
        message: Undo Upvote successful
    Package_404:
      value:
        code: 404
        message: Unable to find the Package with id [74733475-a879-4693-b94f-22c9c946d433]
    FlagResponse:
      value:
        code: 200
        message: Raised flag successfully
    CreatedResponse:
      value:
        id: 4ba06f7c-f4dd-4868-9d97-27134e102d00
        _self: /rest/v1/topics/4ba06f7c-f4dd-4868-9d97-27134e102d00
    API_404:
      value:
        code: 404
        message: Unable to find the API with id [74733475-a879-4693-b94f-22c9c946d433]
    UpvoteExample:
      value:
        code: 200
        message: Upvoted successfully
    AlreadyFlaggedResponse:
      value:
        code: 400
        message: Given entity is already flagged
    Topic:
      value:
        owner: 200ceb26-807d-3bf9-9fd6-f4f0d1ca54d4
        id: 5efd843c-4ce5-493a-9749-c4cce0931888
        flagged: false
        modified: 1616649645858
        created: 1616649645858
        stream:
          type: API
          id: 74733475-a879-4693-b94f-22c9c946d433
        upvotes:
        - 1d4a465a-3b9a-3b0e-b14d-ae3d08c3b1d9
        content:
          value: sample topic
          type: rich
        pinned: false
        tags:
        - tag1
        - tag2
    UpdatedResponse:
      value:
        code: 200
        message: Topic is updated successfully
    UnFlagResponse:
      value:
        code: 200
        message: Unflag successful
    DownVoteExample:
      value:
        code: 200
        message: Downvoted successfully
    CustomAsset_404:
      value:
        code: 404
        message: Unable to find the Custom Asset with id [74733475-a879-4693-b94f-22c9c946d433]
    FlagAcceptedResponse:
      value:
        code: 200
        message: Flagged successfully
    CustomAssetTopicCreation:
      value:
        tags:
        - tag1
        - tag2
        stream:
          type: CUSTOM_ASSET
          id: 74733475-a879-4693-b94f-22c9c946d433
        content:
          value: sample topic
          type: rich
    '401':
      value:
        code: 401
        message: Invalid credentials
    '403':
      value:
        code: 403
        message: Insufficient privileges
    '404':
      value:
        code: 404
        message: Unable to find the Application
  schemas:
    Topic:
      allOf:
      - $ref: '#/components/schemas/CollabObject'
      - type: object
        properties:
          pinned:
            description: Indicates whether the given topic is pinned
            type: boolean
          stream:
            type: object
            description: Indicates the Stream details(API/Package) for which the topic is created
            properties:
              type:
                description: Indicates the stream type(API/Package)
                type: string
              id:
                description: Unique identification for stream(API/Package).For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
                type: string
          tags:
            type: array
            description: Tags for the given topic
            items:
              type: string
    CreatedResponse:
      type: object
      properties:
        id:
          description: Unique identification for topic.For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
          type: string
        _self:
          description: Self reference of the newly created topic
          type: string
    CountResponse:
      type: object
      properties:
        upvote:
          description: Number of upvotes for the given topic
          type: integer
        downvote:
          description: Number of downvotes for the given topic
          type: integer
        flag:
          description: Number of flags for the given topic
          type: integer
    CollabObject:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of a collaboration object
        content:
          description: Content of the topic
          type: object
          properties:
            type:
              description: Type of content
              type: string
              enum:
              - link
              - simple
              - rich
            value:
              description: Content text
              type: string
        upvotes:
          description: List of users who upvoted the entity
          type: array
          items:
            type: string
        downvotes:
          description: List of users who downvoted the entity
          type: array
          items:
            type: string
        flags:
          description: List of users who flagged the entity
          type: array
          items:
            type: string
        flagged:
          description: Indicates whether the given entity is flagged
          type: boolean
        owner:
          description: Owner id of the entity
          type: string
        created:
          type: string
          description: Entity creation time
        modified:
          type: string
          description: Entity modified time
    LinkMetadata:
      type: object
      properties:
        title:
          description: Title of the link
          type: string
        description:
          description: Description of the link
          type: string
        image:
          description: Image preview of the link
          type: string
    UpdatedResponse:
      type: object
      properties:
        code:
          description: Response code
          type: integer
        message:
          description: Response message
          type: string
    Count:
      type: integer
      format: int32
    Error:
      type: object
      properties:
        code:
          description: Response code
          type: integer
        message:
          description: Response message
          type: string
x-refined-from:
- devportal-topic.yaml
- web-methods-developer-portal-topic-openapi.yml