Commute surveys

Submit or update an answer to a commuting survey (public; body at most 1 MiB)

Changed on

Upserts on the browser's clientNonce: 201 for a new response, 200 when the same browser's pending response was updated. On a person's own link the key is derived from the person on the server and the browser's clientNonce is ignored, so the same person on any device updates one response. Answers to questions the form hides are dropped. A response already accepted or rejected answers 409 ALREADY_REVIEWED; a closed survey 410 SURVEY_CLOSED; a removed person's link or an invite-only survey's shared link 410 LINK_DISABLED.

post/shared/commute-survey/responses

Request

  • Base URL: https://api.greentally.ai/v1
  • URL: https://api.greentally.ai/v1/shared/commute-survey/responses
  • Auth: none required

Headers

X-Greentally-Share-Tokenstring required

A public link's token, kept out of the URL (spec 2026-10-05). Missing, sent twice, malformed or unknown: the same 404 NOT_FOUND. Never logged, never echoed.

Request body

answersobject required
clientNoncestring required

A browser id, 16 to 64 of A-Z a-z 0-9 _ -.

Response

Shared link: the browser's pending response was updated. Personal link: always 200, first answer or update, with responseId and updated null, so the answer never says whether its person had answered.

Changes

    • ▲

      the response property / became nullable for the status

    • ▲

      the response property / became nullable for the status

    • ▲

      the response property / became nullable for the status

    • ▲

      the response property / became nullable for the status

    • ○

      endpoint added