Context Sources

Update a Context Source

Update a Context Source by its ID.

put/v1/context-sources/{sourceId}

Request body

OR

Example request

{
  "name": "my-api-resource",
  "labels": {
    "env": "test"
  },
  "source": {
    "type": "api_catalog",
    "config": {
      "api_id": "158a0fc7-479a-4928-8a64-7656c1824f7f",
      "api_version_id": "bc0b9df1-67ba-475f-9670-37de3cc2e4f6"
    }
  }
}

Response

A response to updating a Context Source.

OR

Example response

{
  "labels": {
    "env": "test"
  },
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z",
  "source": {
    "type": "api_catalog",
    "config": {
      "api_id": "158a0fc7-479a-4928-8a64-7656c1824f7f",
      "api_version_id": "bc0b9df1-67ba-475f-9670-37de3cc2e4f6",
      "base_url": null,
      "headers": {}
    }
  }
}

Changes

Changed in 1 of the 83 revisions of this API.1