Create Sources

Create up to 100 sources.

Securityoidc-token or oauth2-client-credentials or oauth2-open-industrial-data or oauth2-auth-code
Request
Request Body schema: application/json
required

Sources to create.

required
Array of any (Items) [ 1 .. 10 ] items
Responses
200

List of created sources.

400

The response for a bad request.

422

Validation Error

post/hostedextractors/sources
Request samples
from cognite.client.data_classes.hosted_extractors import EventHubSourceWrite
source = EventHubSourceWrite('my_event_hub', 'http://myeventhub.com', "My EventHub", 'my_key', 'my_value')
res = client.hosted_extractors.sources.create(source)
Response samples
application/json
{
  • "items": [
    • {
      }
    ]
}