full_api.json 101 KB
Newer Older
canterafonsj's avatar
canterafonsj committed
                            "type": "object",
                            "required": [
                              "uri"
                            ],
                            "properties": {
                              "uri": {
                                "type": "string",
                                "format": "uri"
                              },
                              "accept": {
                                "type": "string",
                                "enum": [
                                  "application/json",
                                  "application/ld+json"
                                ]
                              }
                            }
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ok",
                              "failed"
                            ]
                          },
                          "timesSent": {
                            "type": "number",
                            "minimum": 1
                          },
                          "lastNotification": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "lastFailure": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "lastSuccess": {
                            "type": "string",
                            "format": "date-time"
                          }
                        },
                        "required": [
                          "endpoint"
                        ]
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "active",
                          "paused",
                          "expired"
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/paths/~1entities~1/post/requestBody/content/application~1json%3Bapplication~1ld%2Bjson/schema/allOf/0/properties/createdAt"
                      },
                      "modifiedAt": {
                        "$ref": "#/paths/~1entities~1/post/requestBody/content/application~1json%3Bapplication~1ld%2Bjson/schema/allOf/0/properties/modifiedAt"
                      }
                    },
                    "allOf": [
                      {
                        "required": [
                          "id",
                          "type"
                        ]
                      },
                      {
                        "anyOf": [
                          {
                            "required": [
                              "entities"
                            ]
                          },
                          {
                            "required": [
                              "watchedAttributes"
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created. Contains the resource URI of the created Subscription"
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json;application/ld+json": {
                "schema": {
                  "$ref": "#/paths/~1entities~1/get/responses/400/content/application~1json%3Bapplication~1ld%2Bjson/schema"
                }
              }
            }
          },
          "409": {
            "description": "Already exists",
            "content": {
              "application/json;application/ld+json": {
                "schema": {
                  "$ref": "#/paths/~1entities~1/get/responses/400/content/application~1json%3Bapplication~1ld%2Bjson/schema"
                }
              }
            }
          }
        }
      }
    },
    "/subscriptions/{subscriptionId}": {
      "get": {
        "description": "Retrieves a specific Subscription from an NGSI-LD system",
        "operationId": "retrieveSubscription",
        "tags": [
canterafonsj's avatar
canterafonsj committed
          "Context Subscription"
canterafonsj's avatar
canterafonsj committed
        ],
        "parameters": [
          {
            "name": "subscriptionId",
            "description": "Subscription Id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uri"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json;application/ld+json": {
                "schema": {
                  "$ref": "#/paths/~1subscriptions~1/post/requestBody/content/application~1json%3Bapplication~1ld%2Bjson/schema"
                },
                "examples": {
                  "simple": {
                    "externalValue": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/examples/Subscription-example_C.4.json"
canterafonsj's avatar
canterafonsj committed
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json;application/ld+json": {
                "schema": {
                  "$ref": "#/paths/~1entities~1/get/responses/400/content/application~1json%3Bapplication~1ld%2Bjson/schema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json;application/ld+json": {
                "schema": {
                  "$ref": "#/paths/~1entities~1/get/responses/400/content/application~1json%3Bapplication~1ld%2Bjson/schema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "description": "Updates a specific Subscription within an NGSI-LD system",
        "operationId": "updateSubscription",
        "tags": [
canterafonsj's avatar
canterafonsj committed
          "Context Subscription"
canterafonsj's avatar
canterafonsj committed
        ],
        "parameters": [
          {
            "$ref": "#/paths/~1subscriptions~1%7BsubscriptionId%7D/get/parameters/0"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json;application/ld+json": {
              "schema": {
                "type": "object",
                "properties": {
                  "@context": {
                    "$ref": "#/paths/~1entities~1%7BentityId%7D~1attrs~1/post/requestBody/content/application~1json%3Bapplication~1ld%2Bjson/schema/properties/%40context"
                  },
                  "entities": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uri"
                        },
                        "type": {
                          "$ref": "#/paths/~1temporal~1entities~1/get/parameters/10/schema"
                        },
                        "idPattern": {
                          "type": "string",
                          "format": "regex"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "minItems": 1
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "description": {
                    "type": "string",
                    "minLength": 1
                  },
                  "watchedAttributes": {
                    "type": "array",
                    "minItems": 1,
                    "items": {
                      "$ref": "#/paths/~1temporal~1entities~1/get/parameters/10/schema"
                    },
                    "uniqueItems": true
                  },
                  "timeInterval": {
                    "type": "number",
                    "minimum": 0
                  },
                  "expires": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "isActive": {
                    "type": "boolean"
                  },
                  "throttling": {
                    "type": "number",
                    "minimum": 1
                  },
                  "q": {
                    "type": "string"
                  },
                  "geoQ": {
                    "type": "object",
                    "required": [
                      "geometry",
                      "coordinates",
                      "georel"
                    ],
                    "properties": {
                      "georel": {
                        "$ref": "#/paths/~1entities~1/get/parameters/5/schema"
                      },
                      "coordinates": {
                        "$ref": "#/paths/~1entities~1/get/parameters/7/schema"
                      },
                      "geometry": {
                        "$ref": "#/paths/~1entities~1/get/parameters/6/schema"
                      }
                    }
                  },
                  "csf": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content. The Subscription was updated successfully"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json;application/ld+json": {
                "schema": {
                  "$ref": "#/paths/~1entities~1/get/responses/400/content/application~1json%3Bapplication~1ld%2Bjson/schema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json;application/ld+json": {
                "schema": {
                  "$ref": "#/paths/~1entities~1/get/responses/400/content/application~1json%3Bapplication~1ld%2Bjson/schema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "description": "Removes a specific Subscription from an NGSI-LD system",
        "operationId": "removeSubscription",
        "tags": [
canterafonsj's avatar
canterafonsj committed
          "Context Subscription"
canterafonsj's avatar
canterafonsj committed
        ],
        "parameters": [
          {
            "$ref": "#/paths/~1subscriptions~1%7BsubscriptionId%7D/get/parameters/0"
          }
        ],
        "responses": {
          "204": {
            "description": "No Content. The Subscription was removed successfully"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json;application/ld+json": {
                "schema": {
                  "$ref": "#/paths/~1entities~1/get/responses/400/content/application~1json%3Bapplication~1ld%2Bjson/schema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json;application/ld+json": {
                "schema": {
                  "$ref": "#/paths/~1entities~1/get/responses/400/content/application~1json%3Bapplication~1ld%2Bjson/schema"
                }
              }
            }
          }
        }
      }
    },
    "/csourceRegistrations/": {
      "get": {
        "description": "Retrieve a set of context sources which matches a specific query from an NGSI-LD system",
        "operationId": "queryCsources",
        "tags": [
          "Context Sources"
        ],
        "parameters": [
          {
            "$ref": "#/paths/~1entities~1/get/parameters/0"
          },
          {
            "$ref": "#/paths/~1entities~1/get/parameters/1"
          },
          {
            "$ref": "#/paths/~1entities~1/get/parameters/2"
          },
          {
            "$ref": "#/paths/~1entities~1/get/parameters/3"
          },
          {
            "$ref": "#/paths/~1entities~1/get/parameters/4"
          },
          {
            "$ref": "#/paths/~1entities~1/get/parameters/5"
          },
          {
            "$ref": "#/paths/~1entities~1/get/parameters/6"
          },
          {
            "$ref": "#/paths/~1entities~1/get/parameters/7"
          },
          {
            "$ref": "#/paths/~1entities~1/get/parameters/8"
          },
          {
            "$ref": "#/paths/~1entities~1/get/parameters/10"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json;application/ld+json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/paths/~1csourceRegistrations~1/post/requestBody/content/application~1json%3Bapplication~1ld%2Bjson/schema"
                  }
                },
                "examples": {
                  "simple": {
                    "externalValue": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/examples/ContextSourceRegistrationList-example.json"
canterafonsj's avatar
canterafonsj committed
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json;application/ld+json": {
                "schema": {
                  "$ref": "#/paths/~1entities~1/get/responses/400/content/application~1json%3Bapplication~1ld%2Bjson/schema"
                }
              }
            }
          }
        }
      },
      "post": {
        "description": "Registers a new context source within an NGSI-LD system",
        "operationId": "registerCsource",
        "tags": [
          "Context Sources"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json;application/ld+json": {
              "schema": {
                "allOf": [
                  {
                    "type": "object",
                    "properties": {
                      "@context": {
                        "$ref": "#/paths/~1entities~1%7BentityId%7D~1attrs~1/post/requestBody/content/application~1json%3Bapplication~1ld%2Bjson/schema/properties/%40context"
                      },
                      "information": {
                        "type": "array",
                        "minItems": 1,
                        "items": {
                          "type": "object",
                          "required": [
                            "entities"
                          ],
                          "properties": {
                            "entities": {
                              "type": "array",
                              "minItems": 1,
                              "items": {
                                "$ref": "#/paths/~1subscriptions~1%7BsubscriptionId%7D/patch/requestBody/content/application~1json%3Bapplication~1ld%2Bjson/schema/properties/entities/items"
                              }
                            },
                            "properties": {
                              "type": "array",
                              "minItems": 1,
                              "items": {
                                "$ref": "#/paths/~1temporal~1entities~1/get/parameters/10/schema"
                              },
                              "uniqueItems": true
                            },
                            "relationships": {
                              "type": "array",
                              "minItems": 1,
                              "items": {
                                "$ref": "#/paths/~1temporal~1entities~1/get/parameters/10/schema"
                              },
                              "uniqueItems": true
                            }
                          }
                        }
                      },
                      "timestamp": {
                        "type": "array",
                        "minItems": 1,
                        "items": {
                          "type": "object",
                          "required": [
                            "start"
                          ],
                          "properties": {
                            "start": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "end": {
                              "type": "string",
                              "format": "date-time"
                            }
                          }
                        }
                      },
                      "location": {
                        "$schema": "http://json-schema.org/draft-04/schema#",
                        "id": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json",
canterafonsj's avatar
canterafonsj committed
                        "title": "geometry",
                        "description": "One geometry as defined by GeoJSON. Licensed as per original source is https://github.com/fge/sample-json-schemas/blob/master/geojson/geometry.json",
                        "type": "object",
                        "required": [
                          "type",
                          "coordinates"
                        ],
                        "oneOf": [
                          {
                            "title": "Point",
                            "properties": {
                              "type": {
                                "enum": [
                                  "Point"
                                ]
                              },
                              "coordinates": {
                                "$ref": "#/paths/~1csourceRegistrations~1/post/requestBody/content/application~1json%3Bapplication~1ld%2Bjson/schema/allOf/0/properties/location/definitions/position"
                              }
                            }
                          },
                          {
                            "title": "MultiPoint",
                            "properties": {
                              "type": {
                                "enum": [
                                  "MultiPoint"
                                ]
                              },
                              "coordinates": {
                                "$ref": "#/paths/~1csourceRegistrations~1/post/requestBody/content/application~1json%3Bapplication~1ld%2Bjson/schema/allOf/0/properties/location/definitions/positionArray"
                              }
                            }
                          },
                          {
                            "title": "LineString",
                            "properties": {
                              "type": {
                                "enum": [
                                  "LineString"
                                ]
                              },
                              "coordinates": {
                                "$ref": "#/paths/~1csourceRegistrations~1/post/requestBody/content/application~1json%3Bapplication~1ld%2Bjson/schema/allOf/0/properties/location/definitions/lineString"
                              }
                            }
                          },
                          {
                            "title": "MultiLineString",
                            "properties": {
                              "type": {
                                "enum": [
                                  "MultiLineString"
                                ]
                              },
                              "coordinates": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/paths/~1csourceRegistrations~1/post/requestBody/content/application~1json%3Bapplication~1ld%2Bjson/schema/allOf/0/properties/location/definitions/lineString"
                                }
                              }
                            }
                          },
                          {
                            "title": "Polygon",
                            "properties": {
                              "type": {
                                "enum": [
                                  "Polygon"
                                ]
                              },
                              "coordinates": {
                                "$ref": "#/paths/~1csourceRegistrations~1/post/requestBody/content/application~1json%3Bapplication~1ld%2Bjson/schema/allOf/0/properties/location/definitions/polygon"
                              }
                            }
                          },
                          {
                            "title": "MultiPolygon",
                            "properties": {
                              "type": {
                                "enum": [
                                  "MultiPolygon"
                                ]
                              },
                              "coordinates": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/paths/~1csourceRegistrations~1/post/requestBody/content/application~1json%3Bapplication~1ld%2Bjson/schema/allOf/0/properties/location/definitions/polygon"
                                }
                              }
                            }
                          }
                        ],
                        "definitions": {
                          "position": {
                            "description": "A single position",
                            "type": "array",
                            "minItems": 2,
                            "items": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "number"
                              }
                            ],
                            "additionalItems": false
                          },
                          "positionArray": {
                            "description": "An array of positions",
                            "type": "array",
                            "items": {
                              "$ref": "#/paths/~1csourceRegistrations~1/post/requestBody/content/application~1json%3Bapplication~1ld%2Bjson/schema/allOf/0/properties/location/definitions/position"
                            }
                          },
                          "lineString": {
                            "description": "An array of two or more positions",
                            "allOf": [
                              {
                                "$ref": "#/paths/~1csourceRegistrations~1/post/requestBody/content/application~1json%3Bapplication~1ld%2Bjson/schema/allOf/0/properties/location/definitions/positionArray"
                              },
                              {
                                "minItems": 2
                              }
                            ]
                          },
                          "linearRing": {
                            "description": "An array of four positions where the first equals the last",
                            "allOf": [
                              {
                                "$ref": "#/paths/~1csourceRegistrations~1/post/requestBody/content/application~1json%3Bapplication~1ld%2Bjson/schema/allOf/0/properties/location/definitions/positionArray"
                              },
                              {
                                "minItems": 4
                              }
                            ]
                          },
                          "polygon": {
                            "description": "An array of linear rings",
                            "type": "array",
                            "items": {
                              "$ref": "#/paths/~1csourceRegistrations~1/post/requestBody/content/application~1json%3Bapplication~1ld%2Bjson/schema/allOf/0/properties/location/definitions/linearRing"
                            }
                          }
                        }
                      },
                      "expires": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "description": {
                        "type": "string",
                        "minLength": 1
                      },
                      "endpoint": {
                        "type": "string",
                        "format": "uri"
                      }
                    },
                    "additionalProperties": {
                      "type": [
                        "string",
                        "number",
                        "boolean",
                        "array",
                        "object"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uri"
                      },
                      "type": {
                        "type": "string",
                        "const": "ContextSourceRegistration"
                      },
                      "createdAt": {
                        "$ref": "#/paths/~1entities~1/post/requestBody/content/application~1json%3Bapplication~1ld%2Bjson/schema/allOf/0/properties/createdAt"
                      },
                      "modifiedAt": {
                        "$ref": "#/paths/~1entities~1/post/requestBody/content/application~1json%3Bapplication~1ld%2Bjson/schema/allOf/0/properties/modifiedAt"
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "endpoint",
                      "information"
                    ]
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created. Contains the resource URI of the created Registration"
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json;application/ld+json": {
                "schema": {
                  "$ref": "#/paths/~1entities~1/get/responses/400/content/application~1json%3Bapplication~1ld%2Bjson/schema"
                }
              }
            }
          },
          "409": {
            "description": "Already exists",
            "content": {
              "application/json;application/ld+json": {
                "schema": {
                  "$ref": "#/paths/~1entities~1/get/responses/400/content/application~1json%3Bapplication~1ld%2Bjson/schema"
                }
              }
            }
          }
        }
      }
    },
    "/csourceRegistrations/{registrationId}": {
      "get": {
        "description": "Retrieves a specific context source registration from an NGSI-LD system",
        "operationId": "retrieveCsource",
        "tags": [
          "Context Sources"
        ],
        "parameters": [
          {
            "name": "registrationId",
            "description": "Registration Id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uri"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json;application/ld+json": {
                "schema": {
                  "$ref": "#/paths/~1csourceRegistrations~1/post/requestBody/content/application~1json%3Bapplication~1ld%2Bjson/schema"
                },
                "examples": {
                  "simple": {
                    "externalValue": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/examples/"
canterafonsj's avatar
canterafonsj committed
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json;application/ld+json": {
                "schema": {
                  "$ref": "#/paths/~1entities~1/get/responses/400/content/application~1json%3Bapplication~1ld%2Bjson/schema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json;application/ld+json": {
                "schema": {
                  "$ref": "#/paths/~1entities~1/get/responses/400/content/application~1json%3Bapplication~1ld%2Bjson/schema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "description": "Removes an specific context source registration within an NGSI-LD system",
        "operationId": "removeCsource",
        "tags": [
          "Context Sources"
        ],
        "parameters": [
          {
            "$ref": "#/paths/~1csourceRegistrations~1%7BregistrationId%7D/get/parameters/0"
          }
        ],
        "responses": {
          "204": {
            "description": "No Content. The Registration was removed successfully"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json;application/ld+json": {
                "schema": {
                  "$ref": "#/paths/~1entities~1/get/responses/400/content/application~1json%3Bapplication~1ld%2Bjson/schema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json;application/ld+json": {
                "schema": {
                  "$ref": "#/paths/~1entities~1/get/responses/400/content/application~1json%3Bapplication~1ld%2Bjson/schema"
                }
              }
            }
          }
        }
      }
    },
    "/csourceSubscriptions/": {
      "get": {
        "description": "Retrieves the context source discovery subscriptions available in an NGSI-LD system",
        "operationId": "retrieveCSourceSubscriptions",
        "tags": [
          "Context Sources"
        ],
        "parameters": [
          {
            "name": "limit",
            "description": "Pagination limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json;application/ld+json": {
                "schema": {
                  "$ref": "#/paths/~1subscriptions~1/get/responses/200/content/application~1json%3Bapplication~1ld%2Bjson/schema"
                },
                "examples": {
                  "simple": {
                    "externalValue": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/examples/SubscriptionList-example.json"
canterafonsj's avatar
canterafonsj committed
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json;application/ld+json": {
                "schema": {
                  "$ref": "#/paths/~1entities~1/get/responses/400/content/application~1json%3Bapplication~1ld%2Bjson/schema"
                }
              }
            }
          }
        }
      },
      "post": {
        "description": "Creates a context source discovery Subscription within an NGSI-LD system",
        "operationId": "createCSourceSubscription",
        "tags": [
          "Context Sources"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json;application/ld+json": {
              "schema": {
                "$ref": "#/paths/~1subscriptions~1/post/requestBody/content/application~1json%3Bapplication~1ld%2Bjson/schema"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created. Contains the resource URI of the created Subscription"
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json;application/ld+json": {
                "schema": {
                  "$ref": "#/paths/~1entities~1/get/responses/400/content/application~1json%3Bapplication~1ld%2Bjson/schema"
                }
              }
            }
          },
          "409": {
            "description": "Already exists",
            "content": {
              "application/json;application/ld+json": {
                "schema": {
                  "$ref": "#/paths/~1entities~1/get/responses/400/content/application~1json%3Bapplication~1ld%2Bjson/schema"
                }
              }
            }
          }
        }
      }
    },
    "/csourceSubscriptions/{subscriptionId}": {
      "get": {
        "description": "Retrieves a specific Subscription from an NGSI-LD system",
        "operationId": "retrieveSubscription",
        "tags": [
          "Context Sources"
        ],
        "parameters": [
          {
            "name": "subscriptionId",
            "description": "Subscription Id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uri"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json;application/ld+json": {
                "schema": {
                  "$ref": "#/paths/~1subscriptions~1/post/requestBody/content/application~1json%3Bapplication~1ld%2Bjson/schema"
                },
                "examples": {
                  "simple": {
                    "externalValue": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/examples/Subscription-example_C.4.json"
canterafonsj's avatar
canterafonsj committed
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json;application/ld+json": {
                "schema": {
                  "$ref": "#/paths/~1entities~1/get/responses/400/content/application~1json%3Bapplication~1ld%2Bjson/schema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json;application/ld+json": {
                "schema": {
                  "$ref": "#/paths/~1entities~1/get/responses/400/content/application~1json%3Bapplication~1ld%2Bjson/schema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "description": "Updates a specific context source discovery Subscription within an NGSI-LD system",
        "operationId": "updateCSourceSubscription",
        "tags": [
          "Context Sources"
        ],
        "parameters": [
          {
            "$ref": "#/paths/~1csourceSubscriptions~1%7BsubscriptionId%7D/get/parameters/0"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json;application/ld+json": {
              "schema": {
                "$ref": "#/paths/~1subscriptions~1%7BsubscriptionId%7D/patch/requestBody/content/application~1json%3Bapplication~1ld%2Bjson/schema"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content. The Subscription was updated successfully"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json;application/ld+json": {
                "schema": {
                  "$ref": "#/paths/~1entities~1/get/responses/400/content/application~1json%3Bapplication~1ld%2Bjson/schema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json;application/ld+json": {
                "schema": {