microappchild

description

The MicroAppChild API provides endpoints for managing child items (such as files and images) that are associated with MicroApp data entries (see microappdata). These endpoints are used to handle file attachments, images, and other child resources that belong to a parent MicroApp data entry.

Child items are always associated with a specific field (identified by fieldID) in a parent MicroApp row (identified by appID). The parent row must be created first using the MicroApp data endpoints before child items can be attached to it.

parameters

The X-Auth-Token and X-User-Id are derived from the values authToken and userId returned from the login endpoint and are used in the HTTP header.

List Child Items

Endpoint

POST /api/microappchild/list

Headers

  • x-user-id: User ID for authentication

  • x-auth-token: Authentication token

  • Content-Type: application/json

Query Parameters

  • appID (required): Parent app item ID

  • fieldID (required): Parent field ID

  • optUserToken (optional): User authentication token

Response

Returns an array of child items matching the query parameters.

Example Request

Create Child Item

Endpoint

Headers

  • x-user-id: User ID for authentication

  • x-auth-token: Authentication token

  • Content-Type: application/json

Request Body

Response

Returns the ID of the newly created child item.

Update Child Item

Endpoint

Headers

  • x-user-id: User ID for authentication

  • x-auth-token: Authentication token

  • Content-Type: application/json

Request Body

Response

Returns success status of the update operation.

Delete Child Item

Endpoint

Headers

  • x-user-id: User ID for authentication

  • x-auth-token: Authentication token

  • Content-Type: application/json

Request Body

Response

Returns success status of the deletion operation.

Last updated