Edit Assignment Values
Edit Assignment Values
Submit or update KPI values for a campaign-assignment
PATCH
Edit Assignment Values
Edit Assignment Values
Submit or update KPI values for a specific campaign-assignment. The current user must either be the data owner or hold thecustom_kpi::manage_config permission.
Request
Headers
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faPath Parameters
UUID of the parent dataset
UUID of the campaign
UUID of the campaign-assignment
Body Parameters
KPI values to submit (max 100, no duplicate
Only send the value field matching the KPI’s
kpi_id). Each entry:| Field | Type | Description |
|---|---|---|
kpi_id | string | UUID of the KPI definition |
value_numeric | number | For number/percentage types (nullable) |
value_text | string | For text type (nullable) |
value_date | string | For date type, ISO date (nullable) |
option_id | string | For select type — UUID of the chosen option (nullable) |
value_type.UUIDs of evidence files to attach. Replaces the current attachment pool — omit to leave attachments unchanged, send
[] to clear them.Response
Returns an array of saved KPI value objects (HTTP 200).Value UUID.
Assignment UUID this value belongs to.
Response set UUID (for public form submissions).
null for admin edits.KPI UUID this value answers.
Numeric value (for
number/percentage KPIs).Text value (for
text KPIs).Date value (for
date KPIs, ISO 8601 date).Selected option UUID (for
select KPIs).When this value was submitted (ISO 8601).
Email of the user who submitted the value.
Example
Successful Response
Common Errors
401 Unauthorized
Cause: Missing or invalid API key403 Forbidden
Cause: The authenticated user is not a member of the organization422 Validation Error
Cause: Duplicatekpi_id entries
Related Endpoints
Get Values
View submission history
Campaign Values
View all values across recipients

