{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/option_banks","auth":"required","examples":{"codes":[{"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'","language":"curl"}]},"method":"post","results":{"codes":[{"status":200,"language":"json","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}","name":""},{"code":"{\n  \"message\": \"Authentication is required\"\n}","name":"","status":401,"language":"json"}]},"settings":"","params":[{"name":"api_token","type":"string","default":"secret-api-token","desc":"required if api-token not passed in through header","required":false,"in":"query","ref":"","_id":"56cb70126b06f11d0040f0c3"},{"name":"name","type":"string","default":"","desc":"Option bank name","required":true,"in":"query","ref":"","_id":"5ea1e52e44b5aa00252c2021"},{"name":"options","type":"array_object","default":"","desc":"List of options","required":false,"in":"query","ref":"","_id":"5ea1e52e44b5aa00252c2020"}]},"next":{"description":"","pages":[]},"title":"Create Option Bank","type":"endpoint","slug":"create-option-bank","excerpt":"","body":"","updates":[],"order":1,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"59de6011debd1200240f690c","user":"547504ed59fade080004cb8b","version":{"version":"2.0","version_clean":"2.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["59de6011debd1200240f68fb","59de6011debd1200240f68fa","59de6011debd1200240f68fc","59de6011debd1200240f68f8","59de6011debd1200240f68f7","59de6011debd1200240f68f9","59de6011debd1200240f68fd","59de6011debd1200240f68fe","59de6011debd1200240f68ff","5a8bfb99f4146e00449cec47","5a8bfcf2e86f530012159bb2","5cd4c29c6ea1040056ec0f55"],"_id":"59de6011debd1200240f68ee","__v":3,"project":"59de6011debd1200240f68ec","createdAt":"2016-06-20T18:15:42.514Z","releaseDate":"2016-06-20T18:15:42.514Z"},"__v":4,"category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Option Bank","slug":"option-bank","order":10,"from_sync":false,"reference":false,"_id":"59de6011debd1200240f68ff","project":"59de6011debd1200240f68ec","version":"59de6011debd1200240f68ee","__v":0,"createdAt":"2017-05-11T17:07:37.435Z"},"project":"59de6011debd1200240f68ec","parentDoc":null,"createdAt":"2017-05-11T17:42:07.470Z","githubsync":""}

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
name:
required
string
Option bank name
options:
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 }}