dependencies

Say one proposition rests on another — proposed until a person decides

post/workspaces/{id}/questions/{questionId}/dependencies

Request

  • Base URL: https://api.swingfactor.ai/v1
  • URL: https://api.swingfactor.ai/v1/workspaces/{id}/questions/{questionId}/dependencies
  • Auth: HTTP bearer

Path parameters

idstring uuid required

The workspace's id (a UUID).

questionIdstring uuid required

The question's id (a UUID).

Headers

Idempotency-Keystring

Any unique string. The same key, method, path and body within 24 hours answers with the first response instead of creating again; the same key on a different request is 409 idempotency_key_reused.

Request body

propositionIdstring uuid required
dependsOnIdstring uuid required
mechanismstring

Response

The dependency, proposed.

idstring uuid required
workspaceIdstring uuid required
questionIdstring uuid required
propositionIdstring uuid required

The proposition that rests on the other.

dependsOnIdstring uuid required

What it rests on.

mechanismstring
status'proposed' | 'accepted' | 'rejected' required

Changes only by a person’s decision.

decidedBystring uuid
decidedByNamestring
decidedAtstring
createdBystring uuid
createdAtstring required
draftIdstring uuid

Set where SwingFactor drafted it.

updatedAtstring required

Changes

No recorded changes to this operation across all 1 revision of this API.