Body Required
-
Name of the plugin
-
status string
Values are
draft
,unpublished
, orpublished
. Default value isdraft
. -
Language of your plugin default will be typescript
Values are
typescript
,python
,java
,php
,go
, orrust
. Default value istypescript
. -
comments string
Additional comments regarding your plugin
-
description string
Description for the plugin
-
should_test boolean
Flag for the testing the plugin
Default value is
false
. -
allowed_hostnames array[string]
Hostnames for plugin
-
file string(binary)
-
test_data string(binary)
-
Test url for plugin
-
with_js boolean
Indicates whether to with JS in the plugin
Default value is
true
.
POST
/api/v1/plugins
curl \
-X POST https://api.crawlora.com/api/v1/plugins \
-H "x-api-key: $API_KEY" \
-H "Content-Type: multipart/form-data" \
-F "name=string" \
-F "status=draft" \
-F "language=typescript" \
-F "comments=string" \
-F "description=string" \
-F "should_test=false" \
-F "allowed_hostnames[]=string" \
-F "file=@file" \
-F "test_data=@file" \
-F "test_url=string" \
-F "with_js=true"
Response examples (201)
{
"is_error": true,
"message": "string",
"correlator_id": "string",
"data": {
"id": "string",
"name": "string",
"status": "string",
"code_path": "string",
"language": "string",
"comments": "string",
"description": "string",
"allowed_hostnames": [
"string"
],
"test_data": "string",
"test_status": "string",
"test_error": "string",
"test_response": "string",
"created_at": "string",
"updated_at": "string"
}
}
Response examples (401)
{
"is_error": true,
"message": "string",
"correlator_id": "string",
"data": {}
}
Response examples (422)
{
"is_error": true,
"message": "string",
"correlator_id": "string",
"data": {}
}