mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-21 13:40:31 -06:00
fix: update OpenAPI schema for action class creation endpoint (#6617)
Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com>
This commit is contained in:
committed by
GitHub
parent
785359955a
commit
74405cc05f
@@ -2340,6 +2340,50 @@
|
||||
"name": "My Action from Postman",
|
||||
"type": "code"
|
||||
},
|
||||
"properties": {
|
||||
"description": {
|
||||
"description": "Optional description of the action class",
|
||||
"type": "string"
|
||||
},
|
||||
"environmentId": {
|
||||
"description": "The environment ID where the action class will be created",
|
||||
"type": "string"
|
||||
},
|
||||
"key": {
|
||||
"description": "Required when type is 'code'. A unique identifier for the action. Not needed for 'noCode' type.",
|
||||
"minLength": 1,
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"description": "Name of the action class",
|
||||
"minLength": 1,
|
||||
"type": "string"
|
||||
},
|
||||
"noCodeConfig": {
|
||||
"description": "Configuration object required when type is 'noCode'. Defines the conditions for triggering the action. Not needed for 'code' type.",
|
||||
"example": {
|
||||
"elementSelector": {
|
||||
"cssSelector": ".button-class",
|
||||
"innerHtml": "Click me"
|
||||
},
|
||||
"type": "click",
|
||||
"urlFilters": [
|
||||
{
|
||||
"rule": "contains",
|
||||
"value": "https://www.google.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"nullable": true,
|
||||
"type": "object"
|
||||
},
|
||||
"type": {
|
||||
"description": "Type of action class",
|
||||
"enum": ["code", "noCode"],
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": ["environmentId", "name", "type"],
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
@@ -2417,8 +2461,11 @@
|
||||
"application/json": {
|
||||
"example": {
|
||||
"code": "bad_request",
|
||||
"details": {},
|
||||
"message": "Database error when creating an action for environment clurwouax000azffxt7n5unn3"
|
||||
"details": {
|
||||
"environmentId": "Required",
|
||||
"key": "Required"
|
||||
},
|
||||
"message": "Fields are missing or incorrectly formatted"
|
||||
},
|
||||
"schema": {
|
||||
"type": "object"
|
||||
|
||||
Reference in New Issue
Block a user