Skip to content

Instantly share code, notes, and snippets.

@kamsz
Last active August 29, 2015 14:01
Show Gist options
  • Save kamsz/cdf046482aab12849e9e to your computer and use it in GitHub Desktop.
Save kamsz/cdf046482aab12849e9e to your computer and use it in GitHub Desktop.
Request body:
{"parameters":[{"name":"text","type":"secure-string","scope":"local","value":{"secure-string":{"value":"test"}}}]}
Response:
HTTP/1.1 400 1 error(s) found: [ { text - Error getting attribute value : SecureString too short or bad encoding ! } ]
@burkeazbill
Copy link

I did several tests before posting this as a tweet reply (accidentally using @vcoteam acct instead of my own)... Not sure why the inner value is "string" instead of also being "SecureString" but both datatypes are compatible and this seems to work:

{"parameters":[{"name":"text","type":"SecureString","scope":"local","value":{"string":{"value":"test"}}}]}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment