Creates a new PySpark agent that can be used to execute ETL jobs.
An agent contains the PySpark code that is executed when a job is started. The agent must be associated with a category.
API for managing projects, jobs, datasets, and ETL pipelines on WebRobot.
The API uses API Keys for authentication. Include the X-API-Key header in all requests.
Agent data to create
Type
curl -i -X POST \
http://docs.webrobot.eu/_mock/openapi/webrobot/api/agents \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{
"id": "string",
"name": "string",
"description": "string",
"enabled": true,
"apiEndpoint": "string",
"executionMode": "MANUAL",
"categoryId": "string",
"type": "SCRAPING_AGENT",
"role": "string",
"backstory": "string",
"defaultPrompt": "string",
"prompts": "string",
"config": "string",
"code": "string",
"codeTypeId": "string",
"pysparkCode": "string",
"pythonExtensions": "string",
"generatedAt": "2019-08-24T14:15:22Z",
"toolIds": [
"string"
],
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}'{ "id": "string", "name": "string", "description": "string", "enabled": true, "apiEndpoint": "string", "executionMode": "MANUAL", "categoryId": "string", "type": "SCRAPING_AGENT", "role": "string", "backstory": "string", "defaultPrompt": "string", "prompts": "string", "config": "string", "code": "string", "codeTypeId": "string", "pysparkCode": "string", "pythonExtensions": "string", "generatedAt": "2019-08-24T14:15:22Z", "toolIds": [ "string" ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }
curl -i -X DELETE \
http://docs.webrobot.eu/_mock/openapi/webrobot/api/agents/123 \
-H 'X-API-Key: YOUR_API_KEY_HERE'curl -i -X GET \
http://docs.webrobot.eu/_mock/openapi/webrobot/api/agents/1/123 \
-H 'X-API-Key: YOUR_API_KEY_HERE'{ "id": "string", "name": "string", "description": "string", "enabled": true, "apiEndpoint": "string", "executionMode": "MANUAL", "categoryId": "string", "type": "SCRAPING_AGENT", "role": "string", "backstory": "string", "defaultPrompt": "string", "prompts": "string", "config": "string", "code": "string", "codeTypeId": "string", "pysparkCode": "string", "pythonExtensions": "string", "generatedAt": "2019-08-24T14:15:22Z", "toolIds": [ "string" ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }
Updated agent data
Type
curl -i -X PUT \
http://docs.webrobot.eu/_mock/openapi/webrobot/api/agents/1/123 \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{
"id": "string",
"name": "string",
"description": "string",
"enabled": true,
"apiEndpoint": "string",
"executionMode": "MANUAL",
"categoryId": "string",
"type": "SCRAPING_AGENT",
"role": "string",
"backstory": "string",
"defaultPrompt": "string",
"prompts": "string",
"config": "string",
"code": "string",
"codeTypeId": "string",
"pysparkCode": "string",
"pythonExtensions": "string",
"generatedAt": "2019-08-24T14:15:22Z",
"toolIds": [
"string"
],
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}'{ "id": "string", "name": "string", "description": "string", "enabled": true, "apiEndpoint": "string", "executionMode": "MANUAL", "categoryId": "string", "type": "SCRAPING_AGENT", "role": "string", "backstory": "string", "defaultPrompt": "string", "prompts": "string", "config": "string", "code": "string", "codeTypeId": "string", "pysparkCode": "string", "pythonExtensions": "string", "generatedAt": "2019-08-24T14:15:22Z", "toolIds": [ "string" ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }
curl -i -X GET \
http://docs.webrobot.eu/_mock/openapi/webrobot/api/agents/1/name/my-agent \
-H 'X-API-Key: YOUR_API_KEY_HERE'{ "id": "string", "name": "string", "description": "string", "enabled": true, "apiEndpoint": "string", "executionMode": "MANUAL", "categoryId": "string", "type": "SCRAPING_AGENT", "role": "string", "backstory": "string", "defaultPrompt": "string", "prompts": "string", "config": "string", "code": "string", "codeTypeId": "string", "pysparkCode": "string", "pythonExtensions": "string", "generatedAt": "2019-08-24T14:15:22Z", "toolIds": [ "string" ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }
curl -i -X GET \
http://docs.webrobot.eu/_mock/openapi/webrobot/api/agents/1 \
-H 'X-API-Key: YOUR_API_KEY_HERE'[ { "id": "string", "name": "string", "description": "string", "enabled": true, "apiEndpoint": "string", "executionMode": "MANUAL", "categoryId": "string", "type": "SCRAPING_AGENT", "role": "string", "backstory": "string", "defaultPrompt": "string", "prompts": "string", "config": "string", "code": "string", "codeTypeId": "string", "pysparkCode": "string", "pythonExtensions": "string", "generatedAt": "2019-08-24T14:15:22Z", "toolIds": [ … ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ]
curl -i -X GET \
http://docs.webrobot.eu/_mock/openapi/webrobot/api/python-extensions/agents/123/extensions \
-H 'X-API-Key: YOUR_API_KEY_HERE'[ {} ]
curl -i -X GET \
http://docs.webrobot.eu/_mock/openapi/webrobot/api/python-extensions/agents/123/python-extensions \
-H 'X-API-Key: YOUR_API_KEY_HERE'[ {} ]
curl -i -X POST \
http://docs.webrobot.eu/_mock/openapi/webrobot/api/python-extensions/agents/123/python-extensions \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{
"property1": {},
"property2": {}
}'curl -i -X GET \
'http://docs.webrobot.eu/_mock/openapi/webrobot/api/html/{url}/{protocol}' \
-H 'X-API-Key: YOUR_API_KEY_HERE'curl -i -X GET \
'http://docs.webrobot.eu/_mock/openapi/api/strapi-tables/{table}/{id}' \
-H 'X-API-Key: YOUR_API_KEY_HERE'curl -i -X PUT \
'http://docs.webrobot.eu/_mock/openapi/api/strapi-tables/{table}/{id}' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{
"property1": {},
"property2": {}
}'curl -i -X DELETE \
'http://docs.webrobot.eu/_mock/openapi/api/strapi-tables/{table}/{id}' \
-H 'X-API-Key: YOUR_API_KEY_HERE'curl -i -X GET \
'http://docs.webrobot.eu/_mock/openapi/api/strapi-tables/{table}?page=0&pageSize=50' \
-H 'X-API-Key: YOUR_API_KEY_HERE'curl -i -X POST \
'http://docs.webrobot.eu/_mock/openapi/api/strapi-tables/{table}' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{
"property1": {},
"property2": {}
}'curl -i -X GET \
http://docs.webrobot.eu/_mock/openapi/health \
-H 'X-API-Key: YOUR_API_KEY_HERE'