latestOpenAPI 3.1.02026-08-211286041.7 MB
b0c8a1820333
Environment
Import Environment Configuration
Import 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.
post/api/v1/environment/import
Headers
idempotency-keystring
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",
"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