v1
latestOpenAPI 3.0.12026-07-24110189356.6 KBsubscription
Creates a subscription
Creates a subscription between the source catalog/layer and target catalog/layer.
post/subscriptions
Headers
x-idempotency-keystring required
x-idempotency-key is the unique value generated by the client to create a subscription request. Any additional retry requests must have the same x-idempotency-key header value and the same body content as the first subscription request. If the retry request body content is different, then the server will return a 409 status code. It is recommended to use UUID v4 for x-idempotency-key value. Minimum length: 10, maximum length: 255.
Request body
Example request
{
"subscriptionName": "my-subscription",
"subscriptionHrn": "hrn:here:data-subscription::olp-here:my-subscription-7d93563980d94f1b",
"description": "Subscription to a layer",
"sourceCatalog": "hrn:here:data::olp-here:my-source-catalog",
"sourceLayer": "source-layer",
"destinationCatalog": "hrn:here:data::olp-here:my-destination-catalog",
"destinationLayer": "destination-layer",
"owner": {
"creator": {
"id": "Mejk6DMxAq7kKI5lt2T2"
},
"organisation": {
"id": "HERE"
}
},
"created": "2017-08-04T17:19:03.853Z",
"updated": "2017-08-04T17:19:03.853Z",
"status": {
"message": "Some error message"
}
}Response
Accepted - your request was received and is being processed.
Example response
{
"statusToken": "de1e3c8d-17ac-42b9-8f5d-7bbeba664fe6"
}