{"_id":"55fa4bfeaba81f0d00a115e7","editedParams2":true,"user":"54e4044e8ef7552300409dcb","version":{"_id":"55fa37c88065a10d004e5bb6","project":"54e405191e51932d006abc39","__v":11,"createdAt":"2015-09-17T03:47:20.956Z","releaseDate":"2015-09-17T03:47:20.956Z","categories":["55fa37ca8065a10d004e5bb7","55fa37ca8065a10d004e5bb8","55fa37ca8065a10d004e5bb9","55fa37ca8065a10d004e5bba","55fca6bf34ae7c0d00ab8ea0","55ff80fd9e7ccf0d000a1d93","560220af7435de0d00fabd0d","56107f21bb9d920d00303e70","563e184077681a0d00d96a02","56fafc6596ec7e0e002ac85f","5915e54f7c2c552d008b8549","59499fcd64b5f5002690bbc1","59c451b7772699001c0f1df1","59c9b42dec84880010c1f348"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"REST V3","version_clean":"3.1.0","version":"3.1"},"__v":1,"category":{"_id":"55fa37ca8065a10d004e5bb8","pages":["55fa37cb8065a10d004e5bc5","55fa37cb8065a10d004e5bc6","55fa37cb8065a10d004e5bc7","55fa37cb8065a10d004e5bc8","55fa37cb8065a10d004e5bc9","55fa37cb8065a10d004e5bca","55fa37cb8065a10d004e5bcb","55fa37cb8065a10d004e5bcc","55fa37cb8065a10d004e5bcd","55fa3dd4a663c00d00773dd1","55fa409d8065a10d004e5bda","55fa463317b9d00d00969ead","55fa4822764f5021009506c0","55fa4bfeaba81f0d00a115e7","55fa4dcd17b9d00d00969eb7","55fca6ccf95c5b0d0068fdfa","55fe6735748eb30d008a1e61","55ff4d91cc468e0d008dce5f","55ff558a9e7ccf0d000a1d49","55ff5695cc468e0d008dce67","55ff6e986932a00d00ba7a37","55ff702f9e7ccf0d000a1d83","560221271ba3720d00a6b99d","560221418a6c97170066cf48","563e18aad6db8d17008389ac"],"version":"55fa37c88065a10d004e5bb6","project":"54e405191e51932d006abc39","__v":17,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-06-06T05:42:37.534Z","from_sync":false,"order":3,"slug":"users","title":"Users"},"editedParams":true,"parentDoc":null,"project":"54e405191e51932d006abc39","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-09-17T05:13:34.545Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":true,"api":{"examples":{"codes":[{"language":"curl","code":"curl -X PATCH -H \"Content-Type: application/json\" -H \"X-SP-GATEWAY: e3f19e4bd4022c86e7f2|11c94ba6bad74d24a0158bc707f0fc19a86dc08f\" -H \"X-SP-USER: iuda3QJXoILdGQKaAcfi67EkGjMgQKOkEnl6irWC|suasusau21324redakufejfjsf\" -H \"X-SP-USER-IP: 24.130.174.164\" -H \"X-SP-PROD: NO\" -H \"X-SP-LANG: EN\" -d '{\n    \"doc\":{\n      \"question_set_id\":\"557520ad343463000300005a\",\n      \"answers\":[\n        { \"question_id\": 1, \"answer_id\": 1 },\n        { \"question_id\": 2, \"answer_id\": 1 },\n        { \"question_id\": 3, \"answer_id\": 1 },\n        { \"question_id\": 4, \"answer_id\": 1 },\n        { \"question_id\": 5, \"answer_id\": 1 }\n      ]\n    }\n}' 'https://sandbox.synapsepay.com/api/3/users/557387ed86c27318532fc09a'","name":""},{"code":"#ToDo","language":"python"},{"code":"//ToDo","language":"javascript","name":"Node.js"},{"code":"kba_payload = {\n    \"doc\" => {\n        \"question_set_id\" => \"557520ad343463000300005a\",\n        \"answers\" => [\n            { \"question_id\" =>  1, \"answer_id\" =>  1 },\n            { \"question_id\" =>  2, \"answer_id\" =>  1 },\n            { \"question_id\" =>  3, \"answer_id\" =>  1 },\n            { \"question_id\" =>  4, \"answer_id\" =>  1 },\n            { \"question_id\" =>  5, \"answer_id\" =>  1 }\n        ]\n    }\n}\n\nkba_response = client.users.answer_kba(payload: kba_payload)","language":"ruby"}]},"method":"patch","results":{"codes":[{"language":"json","code":"{\n  \"_id\": \"557387ed86c27318532fc09a\",\n  \"_links\": {\n    \"self\": {\n      \"href\": \"https://sandbox.synapsepay.com/api/3/users/557387ed86c27318532fc09a\"\n    }\n  },\n  \"client\": {\n    \"id\": 844,\n    \"name\": \"SynapsePay*Sandbox\"\n  },\n  \"extra\": {\n    \"date_joined\": 1436739787426,\n    \"is_business\": false,\n    \"supp_id\": \"122eddfgbeafrfvbbb\"\n  },\n  \"is_hidden\": false,\n  \"legal_names\": [\n    \"Test User\",\n    \"Some new name\"\n  ],\n  \"logins\": [\n    {\n      \"email\": \"test1:::at:::synapsepay.com\",\n      \"read_only\": false\n    }\n  ],\n  \"permission\": \"SEND-AND-RECEIVE\",\n  \"phone_numbers\": [\n    \"901.942.8167\"\n  ],\n  \"photos\": [\n    \"https://synapse_django.s3.amazonaws.com/sandbox_attachments/2015/09/02/fcf495a0-3ba1-4947-bdcf-b1df9830d9da.png\"\n  ],\n  \"refresh_token\": \"YGpR6tQmkPfkHJeLu8ixKtktDMqS96xs7A2qcuRi\"\n}","name":"","status":200}]},"settings":"","auth":"required","params":[{"_id":"5573b11e91ce6e190023b76a","ref":"","in":"body","required":true,"desc":"The ID of the question object.","default":"","type":"string","name":"doc.question_set_id"},{"_id":"55fa463317b9d00d00969eb1","ref":"","in":"body","required":true,"desc":"The ID of the question to which the user is responding.","default":"","type":"int","name":"doc.answers[question_id]"},{"_id":"55728c20e42c040d00d68a9f","ref":"","in":"body","required":true,"desc":"The ID of the answer that the user picks while answering questions.","default":"","type":"int","name":"doc.answers[answer_id]"}],"url":"/api/3/users/:user_id"},"isReference":true,"order":13,"body":"[block:callout]\n{\n  \"type\": \"danger\",\n  \"title\": \"Deprecated\",\n  \"body\": \"This API call is being deprecated for a more awesome [API call](doc:adding-documents).\"\n}\n[/block]","excerpt":"This API call lets you answer KBA questions","slug":"answer-kba","type":"endpoint","title":"[Deprecated] Answer KBA"}

patch[Deprecated] Answer KBA

This API call lets you answer KBA questions

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

doc.question_set_id:
required
string
The ID of the question object.
doc.answers[question_id]:
required
integer
The ID of the question to which the user is responding.
doc.answers[answer_id]:
required
integer
The ID of the answer that the user picks while answering questions.

Examples


Result Format


Documentation

[block:callout] { "type": "danger", "title": "Deprecated", "body": "This API call is being deprecated for a more awesome [API call](doc:adding-documents)." } [/block]