Adding Data

Add Data to a Bloc

Adds a new record to a Blocworx bloc.

POST https://example.mydomain.com/api/add-data


Request Body

Name
Type
Description

scanStationID*

string

The bloc ID to add data to. This may be a UUID depending on your instance.

jobID

string

The module ID associated with the bloc. This may be required depending on your instance or workflow.

dataToAdd*

string

A JSON-encoded string containing the field slugs and values to add. Example: "{\"field_1\":\"Test\",\"field_2\":\"123\"}"


Request Notes

  • dataToAdd should be sent as a JSON string

  • This endpoint supports file-related workflows, so some clients may also use multipart/form-data

  • For text-only submissions, raw JSON requests are supported


200 Success Response

{
  "returnedStationID": 123456,
  "autogenerateReplacements": []
}

Response Notes

  • returnedStationID is the created data entry ID

  • autogenerateReplacements contains any auto-generated replacement values produced by the submission flow


Error Responses

403 Forbidden

400 Bad Request

In the current implementation, some 400 responses may also include debug fields such as line, file, and trace.


Example Requests

JSON Request

JavaScript

Python

Last updated