curl --request PUT \
--url https://api.botpress.cloud/v1/admin/integrations/{id}/validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-workspace-id: <x-workspace-id>' \
--data '
{
"configuration": {
"title": "<string>",
"description": "<string>",
"schema": {},
"identifier": {
"linkTemplateScript": "<string>",
"required": true
}
},
"configurations": {},
"extraOperations": {},
"channels": {},
"maxExecutionTime": 123,
"identifier": {
"extractScript": "<string>",
"fallbackHandlerScript": "<string>"
},
"actions": {},
"events": {},
"states": {},
"user": {
"creation": {
"enabled": true,
"requiredTags": [
"<string>"
]
},
"tags": {}
},
"entities": {},
"interfaces": {},
"attributes": {},
"secrets": {},
"code": "<string>",
"icon": "<string>",
"readme": "<string>",
"title": "<string>",
"description": "<string>",
"url": "<string>",
"public": true,
"visibility": "public",
"layers": [
"<string>"
]
}
'{}Perform a validation of an integration update request
curl --request PUT \
--url https://api.botpress.cloud/v1/admin/integrations/{id}/validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-workspace-id: <x-workspace-id>' \
--data '
{
"configuration": {
"title": "<string>",
"description": "<string>",
"schema": {},
"identifier": {
"linkTemplateScript": "<string>",
"required": true
}
},
"configurations": {},
"extraOperations": {},
"channels": {},
"maxExecutionTime": 123,
"identifier": {
"extractScript": "<string>",
"fallbackHandlerScript": "<string>"
},
"actions": {},
"events": {},
"states": {},
"user": {
"creation": {
"enabled": true,
"requiredTags": [
"<string>"
]
},
"tags": {}
},
"entities": {},
"interfaces": {},
"attributes": {},
"secrets": {},
"code": "<string>",
"icon": "<string>",
"readme": "<string>",
"title": "<string>",
"description": "<string>",
"url": "<string>",
"public": true,
"visibility": "public",
"layers": [
"<string>"
]
}
'{}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Workspace ID
Whether the client supports bots with multiple instances of the same integration. Set to "true" to receive integration instances keyed by their alias instead of their id. This header will be removed in the future, and the API will always return multiple instances keyed by alias.
Integration Version ID
Integration
Default configuration definition of the integration
Show child attributes
Title of the configuration
64Description of the configuration
256Schema of the configuration in the JSON schema format. The configuration data is validated against this JSON schema.
Additional configuration definitions of the integration
Show child attributes
Show child attributes
Title of the configuration
64Description of the configuration
256Schema of the configuration in the JSON schema format. The configuration data is validated against this JSON schema.
Show child attributes
Show child attributes
Title of the channel
64Description of the channel
256Show child attributes
The conversation creation setting determines how to create a conversation through the API directly. The integration will have to implement the createConversation functionality to support this setting.
Show child attributes
Show child attributes
Show child attributes
Maximum execution time of the integration (in seconds).
Show child attributes
Show child attributes
Title of the action
64Description of the action
256Show child attributes
Show child attributes
Title of the event
64Description of the event
256Show child attributes
State definition
Show child attributes
Show child attributes
The user creation setting determines how to create a user through the API directly. The integration will have to implement the createUser functionality to support this setting.
Show child attributes
Show child attributes
ID of the interface
28 - 36JavaScript code of the integration
Base64 encoded svg of the integration icon. This icon is global to the integration each versions will be updated when this changes.
Base64 encoded markdown of the integration readme. The readme is specific to each integration versions.
Title of the integration. This is the name that will be displayed in the UI
1 - 64Description of the integration. This is the description that will be displayed in the UI
256URL of the integration
[DEPRECATED] Indicates whether the integration is public. Please use the "visibility" parameter instead.
The integration's visibility. Public integrations are available to all and cannot be updated without creating a new version. Unlisted integrations behave identically to public integrations, but they are not listed in the integration hub. By default, integrations are private and only accessible to the workspace that created them.
public, private, unlisted Validation succeeded: the integration can be updated using the same parameters
The response is of type validateIntegrationUpdateResponse · object.
Was this page helpful?