πSubmission API Documentation
Base URL
The base URL for the submission endpoints is /submission.
Routes
Create Submission
URL:
/submission/newMethod:
POSTAuthentication Required: Yes
Request Parameters
name(optional): Name of the submission.projectName(required): Name of the project.email(required): Email address associated with the submission.about(optional): Details about the submission.links(optional Stringify json data):Relevant links (e.g., social media, website).
Request Example
{
"name": "John Doe",
"projectName": "Project Alpha",
"email": "john.doe@example.com",
"about": "This is a submission about Project Alpha.",
"links": JSON.stringify({
"facebook": "https://facebook.com/johndoe",
"twitter": "https://twitter.com/johndoe",
"website": "https://johndoe.com",
"github": "https://github.com/johndoe"
})
}Example Request Using cURL
Modify Submission
URL:
/submission/saveMethod:
POSTAuthentication Required: Yes
Request Parameters
id(required): ID of the submission to modify.name(optional): Updated name.projectName(optional): Updated project name.email(optional): Updated email address.about(optional): Updated details.links(optional): Updated links.
Request Example
Example Request Using cURL
Delete Submission
URL:
/submission/deleteMethod:
POSTAuthentication Required: Yes
Request Parameters
id(required): ID of the submission to delete.
Request Example
Example Request Using cURL
Retrieve Submission
URL:
/submissionMethod:
GETAuthentication Required: No
Request Parameters
id(required): ID of the submission to retrieve.
Request Example
Example Request Using cURL
Retrieve All Submissions
URL:
/submission/allMethod:
GETAuthentication Required: No
Request Parameters
sort: Optional. Sort order of the results. Can beasc(ascending) ordesc(descending). Default isasc.num: Required. Number of submissions to retrieve. Can beallto retrieve all submissions or a specific number.
Request Example
Example Request Using cURL
Submission Search API Documentation
This document details the API endpoint for searching submission data within the PAAL AI platform.
Base URL
The base URL for the submission search endpoint is /submission/search.
Route
Search Submissions
URL:
/submission/searchMethod:
GETAuthentication Required: No
Request Parameters
sort(optional): Sort order of the results. Can beasc(ascending) ordesc(descending). Default isasc.num(optional): Number of submissions to retrieve. Can beallto retrieve all submissions or a specific number.key(required): The field to search within the submissions.value(required): The value to search for in the specified field.
Request Example
Example Request Using cURL
Response
The response will include an array of submission data objects matching the search criteria, or an empty array if no submissions match the search.
Each submission data object contains the following fields:
id: ID of the submission.projectName: Name of the project associated with the submission.name: Name of the submitter.about: Description or details about the submission.email: Email address of the submitter.links: Links provided by the submitter.date: Date of the submission.data: Additional data related to the submission.
Example Response
Error Responses
If required parameters (
keyandvalue) are missing:If no submissions match the search criteria:
Last updated