Skip to content

Commit 9526433

Browse files
Platform/include file in create submission prompt (#4)
* Update submission_client.py documentation to clarify data structure for submissions and email parameter format Signed-off-by: Rishabh Verma <rishabh.v@clappia.com> * Update version to 0.1.5 in pyproject.toml and __init__.py Signed-off-by: Rishabh Verma <rishabh.v@clappia.com> --------- Signed-off-by: Rishabh Verma <rishabh.v@clappia.com>
1 parent 293ad98 commit 9526433

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

clappia_tools/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from .client.app_management_client import AppManagementClient
1010
from .client.submission_client import SubmissionClient
1111

12-
__version__ = "0.1.4"
12+
__version__ = "0.1.5"
1313
__all__ = ["ClappiaClient", "AppDefinitionClient", "AppManagementClient", "SubmissionClient"]
1414

1515

clappia_tools/client/submission_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ def create_submission(self, app_id: str, data: Dict[str, Any], requesting_user_e
2222
2323
Args:
2424
app_id: Application ID in uppercase letters and numbers format (e.g., MFX093412). Use this to specify which Clappia app to create the submission in.
25-
data: Dictionary of field data to submit. Keys should match field names from the app definition, values should match expected field types. Example: {"employee_name": "John Doe", "department": "Engineering", "salary": 75000, "start_date": "20-02-2025"}.
26-
requesting_user_email_address: Email address of the user creating the submission. This user becomes the submission owner and must have access to the specified app. Must be a valid email format.
25+
data: Dictionary of field data to submit. Keys should match field names from the app definition, values should match expected field types. Example: {"employee_name": "John Doe", "department": "Engineering", "salary": 75000, "start_date": "2024-01-15"}. For file fields, use format: {"image_field_name": [{"s3Path": {"bucket": "my-files-bucket", "key": "images/photo.jpg", "makePublic": false}}]}.
26+
requesting_user_email_address (or email): Email address of the user creating the submission. This user becomes the submission owner and must have access to the specified app. Must be a valid email format.
2727
2828
Returns:
2929
str: Formatted response with submission details and status

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "clappia-tools"
7-
version = "0.1.4"
7+
version = "0.1.5"
88
description = "Python client for Clappia API integration"
99
readme = "README.md"
1010
requires-python = ">=3.10"

0 commit comments

Comments
 (0)