Accept
POST
/public/quotes/{token}/accept
const url = 'https://example.com/public/quotes/example/accept';const options = { method: 'POST', headers: {'Idempotency-Key': '2489E9AD-2EE2-8E00-8EC9-32D5F69181C0'}};
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://example.com/public/quotes/example/accept \ --header 'Idempotency-Key: 2489E9AD-2EE2-8E00-8EC9-32D5F69181C0'Who can call it: Anyone, without signing in.
curl -X POST "https://spine.example.com/api/public/quotes/<token>/accept" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" -d '{ … }'
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”token
required
string
Header Parameters
Section titled “Header Parameters”Idempotency-Key
required
string format: uuid
A fresh UUID per action. A retry with the same key gets the first answer instead of doing it twice.
Responses
Section titled “Responses”Validation failed or a business rule was broken; message says what to change.
The caller’s role, Team rights or ownership don’t allow it, the module is switched off, or their access was removed.
No such record in this business.
The same Idempotency-Key is still being handled, or the record conflicts with one that exists.
Too many requests: wait a minute.
Something went wrong on the server; the response carries the request id to report.