Request
Add parameter in header Api-Key
Example:Api-Key: ********************
Body Params application/json
{
"text": "test text %var%, %var2%",
"description": "test desc",
"share": 1,
"website": "example.com",
"vars": [
{
"var": "var",
"length": 12,
"type": "int"
},
{
"var": "var2",
"length": 12,
"type": "int"
}
]
}
Request Code Samples
curl --location --request PUT '/ws/v1/patterns' \
--header 'Accept: application/json' \
--header 'Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"text": "test text %var%, %var2%",
"description": "test desc", // nullable
"share": 1, // boolean
"website": "example.com",
"vars": [
{
"var": "var",
"length": 12,
"type": "int" // int, str, date
},
{
"var": "var2",
"length": 12,
"type": "int" // int, str, date
}
]
}'
Responses
application/json {
"status": "success",
"data": "string",
"messages": "string"
}
Modified at 2025-09-21 18:53:17