Define a tenant-scoped participant trait
const url = 'https://quikstik-core.fly.dev/participant-trait-definitions';const options = { method: 'POST', headers: { 'x-tenant-id': '2489E9AD-2EE2-8E00-8EC9-32D5F69181C0', 'Idempotency-Key': 'example', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"name":"example","value_type":"text","sensitivity":"standard","requirement_class":"required_at_checkout","integer_min":1,"integer_max":1,"policy_version":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://quikstik-core.fly.dev/participant-trait-definitions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: example' \ --header 'x-tenant-id: 2489E9AD-2EE2-8E00-8EC9-32D5F69181C0' \ --data '{ "name": "example", "value_type": "text", "sensitivity": "standard", "requirement_class": "required_at_checkout", "integer_min": 1, "integer_max": 1, "policy_version": 1 }'Configuration, never a free-form field (arch-030 §2.5): name, value type, integer bounds
where applicable, sensitivity tier, and operational requirement class. Core
ships zero built-in trait names — height_cm, grade_level, and belay_certified_gym are
all tenant vocabulary on the same machinery.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Tenant identifier (UUID).
Authn/authz semantics are intentionally TBD for this contract slice; this header exists to keep the contract explicitly multi-tenant from day 0.
Idempotency key for the command envelope. A retry with the same key is a no-op.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Tenant vocabulary (height_cm, grade_level) — core ships no built-in names.
Sensitive covers health/biometrics-adjacent, legal, or regulated facts (arch-030 §2.6).
Only valid when value_type is integer.
Only valid when value_type is integer.
Responses
Section titled “Responses”Command accepted; the definition identifier is assigned server-side
object
Example generated
{ "definition_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Malformed body
object
Example generated
{ "reason": "example"}Missing or invalid session bearer token
object
Stable, machine-readable reason code (e.g. “sold_out”, “processor_not_configured”, “rail_refused”).
Example
{ "reason": "sold_out"}The session’s effect authority does not cover this operation
object
Stable, machine-readable reason code (e.g. “sold_out”, “processor_not_configured”, “rail_refused”).
Example
{ "reason": "sold_out"}No durable backend is wired for this operation (fail-closed)
object
Stable, machine-readable reason code (e.g. “sold_out”, “processor_not_configured”, “rail_refused”).
Example
{ "reason": "sold_out"}