{"_id":"59de6011debd1200240f690c","user":"547504ed59fade080004cb8b","version":{"_id":"59de6011debd1200240f68ee","__v":3,"project":"59de6011debd1200240f68ec","createdAt":"2016-06-20T18:15:42.514Z","releaseDate":"2016-06-20T18:15:42.514Z","categories":["59de6011debd1200240f68fb","59de6011debd1200240f68fa","59de6011debd1200240f68fc","59de6011debd1200240f68f8","59de6011debd1200240f68f7","59de6011debd1200240f68f9","59de6011debd1200240f68fd","59de6011debd1200240f68fe","59de6011debd1200240f68ff","5a8bfb99f4146e00449cec47","5a8bfcf2e86f530012159bb2","5cd4c29c6ea1040056ec0f55"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2.0"},"__v":3,"category":{"_id":"59de6011debd1200240f68ff","project":"59de6011debd1200240f68ec","version":"59de6011debd1200240f68ee","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2017-05-11T17:07:37.435Z","from_sync":false,"order":10,"slug":"option-bank","title":"Option Bank"},"project":"59de6011debd1200240f68ec","parentDoc":null,"githubsync":"","metadata":{"title":"","description":"","image":[]},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-05-11T17:42:07.470Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"language":"curl","code":"curl -X POST -H 'Content-Type: application/json' -d '{\"name\":\"Awesome bank\",\"options\": [{\"label\":\"San Francisco\",\"value\":\"SF\"}, {\"label\":\"New York\",\"value\":\"NY\"}], \"api_token\":\"secret-api-token\"}' 'https://api.fountain.com/v2/option_banks'"}]},"method":"post","results":{"codes":[{"name":"","code":"{\n  \"id\": \"e8e4edc5-096c-47ea-b682-f77c6c4462dd\",\n  \"name\": \"Awesome bank\",\n  \"options\": [\n    {\"label\":\"San Francisco\",\"value\":\"SF\"}, \n    {\"label\":\"New York\",\"value\":\"NY\"}\n  ]\n}","language":"json","status":200},{"language":"json","status":401,"name":"","code":"{\n  \"message\": \"Authentication is required\"\n}"}]},"settings":"","auth":"required","params":[{"_id":"56cb70126b06f11d0040f0c3","ref":"","in":"query","required":false,"desc":"required if api-token not passed in through header","default":"secret-api-token","type":"string","name":"api_token"},{"_id":"5c928cd19f1367002e9b3e26","ref":"","in":"body","required":true,"desc":"Option bank name","default":"","type":"string","name":"name"},{"_id":"5c928d2d96e4a5001379d26e","ref":"","in":"body","required":true,"desc":"List of options","default":"","type":"array_object","name":"options"}],"url":"/option_banks"},"isReference":false,"order":1,"body":"","excerpt":"","slug":"create-option-bank","type":"endpoint","title":"Create Option Bank"}

postCreate Option Bank


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Query Params

api_token:
stringsecret-api-token
required if api-token not passed in through header

Body Params

name:
required
string
Option bank name
options:
required
array of objects
List of options

Examples


Result Format


User Information

Try It Out

post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}