Import Environment Configuration
Changed onImport a configuration into the active organization.
It doesn't delete anything, only adds / updates what was passed to it.
Note that the schema for [EnvironmentIn] is subject to change. The fields herein are provided for convenience but should be treated as JSON blobs.
Request
- Base URLhttps://api.eu.svix.com
- URLhttps://api.eu.svix.com/api/v1/environment/import
- AuthHTTP bearer
Headers
The request's idempotency key
Request body
Example request
{
"connectors": [
{
"allowedEventTypes": [
"user.signup",
"user.deleted"
],
"description": "Example connector description",
"instructions": "Markdown-formatted instructions",
"logo": "https://example.com/logo.png",
"name": "My first connector",
"transformation": "function handler(webhook) { /* ... */ }",
"uid": "unique-identifier"
}
],
"eventTypes": [
{
"description": "A user has signed up",
"descriptionTranslations": {
"en": "A user has signed up",
"es": "Un usuario se ha registrado",
"pt-BR": "Um usuário se cadastrou"
},
"featureFlags": [
"cool-new-feature"
],
"groupName": "user",
"name": "user.signup",
"schemas": {
"1": {
"title": "Invoice Paid Event",
"description": "An invoice was paid by a user",
"type": "object",
"properties": {
"invoiceId": {
"description": "The invoice id",
"type": "string"
},
"userId": {
"description": "The user id",
"type": "string"
}
},
"required": [
"invoiceId",
"userId"
]
}
}
}
]
}Response
no content
Changes
- warning
the
//request property's maxLength was set to4096 - warning
the
//request property's maxLength was set to4096 - warning
the
//request property's maxLength was set to512 - warning
the
//request property's maxLength was set to4096 - info
added the new optional request property
// - info
added the required property
to the response with the status
- warning
- info
added the new
GrafanaCloudTracingenum value to the request property// - info
added the new
NewRelicTracingenum value to the request property//
- info