Create Target element (atomic)
POST/api/v1/workspace/:workspaceId/survey/:surveyCode/target
Creates a TARGET element in the specified workspace and applies the TGL expression atomically. If TGL parsing fails, the element is NOT persisted (rollback).
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 422
- 500
Target element created and TGL applied successfully.
Bad Request. The request parameters are invalid.
Unauthorized. Missing or invalid API key.
Forbidden. The API key does not grant access to workspaces.
Not Found. The requested resource was not found.
Unprocessable Entity. The TGL expression is semantically invalid.
Internal Server Error. Unexpected error occurred while processing the request.