Upload contract template

POST {{baseUrl}}/tokenization/templates

Upload a new contract template. This contract template will be available for the workspace

Request Body

{"name"=>"<string>", "description"=>"<string>", "bytecode"=>"<string>", "abi"=>[[{"type"=>"fallback", "inputs"=>[{"name"=>"<string>", "type"=>"<string>", "description"=>"<string>", "internalType"=>"<string>", "components"=>[{"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}, {"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}]}, {"name"=>"<string>", "type"=>"<string>", "description"=>"<string>", "internalType"=>"<string>", "components"=>[{"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}, {"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}]}], "name"=>"<string>", "stateMutability"=>"nonpayable", "outputs"=>[{"name"=>"<string>", "type"=>"<string>", "description"=>"<string>", "internalType"=>"<string>", "components"=>[{"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}, {"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}]}, {"name"=>"<string>", "type"=>"<string>", "description"=>"<string>", "internalType"=>"<string>", "components"=>[{"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}, {"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}]}], "description"=>"<string>"}, {"type"=>"receive", "inputs"=>[{"name"=>"<string>", "type"=>"<string>", "description"=>"<string>", "internalType"=>"<string>", "components"=>[{"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}, {"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}]}, {"name"=>"<string>", "type"=>"<string>", "description"=>"<string>", "internalType"=>"<string>", "components"=>[{"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}, {"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}]}], "name"=>"<string>", "stateMutability"=>"payable", "outputs"=>[{"name"=>"<string>", "type"=>"<string>", "description"=>"<string>", "internalType"=>"<string>", "components"=>[{"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}, {"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}]}, {"name"=>"<string>", "type"=>"<string>", "description"=>"<string>", "internalType"=>"<string>", "components"=>[{"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}, {"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}]}], "description"=>"<string>"}], [{"type"=>"event", "inputs"=>[{"name"=>"<string>", "type"=>"<string>", "description"=>"<string>", "internalType"=>"<string>", "components"=>[{"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}, {"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}]}, {"name"=>"<string>", "type"=>"<string>", "description"=>"<string>", "internalType"=>"<string>", "components"=>[{"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}, {"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}]}], "name"=>"<string>", "stateMutability"=>"nonpayable", "outputs"=>[{"name"=>"<string>", "type"=>"<string>", "description"=>"<string>", "internalType"=>"<string>", "components"=>[{"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}, {"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}]}, {"name"=>"<string>", "type"=>"<string>", "description"=>"<string>", "internalType"=>"<string>", "components"=>[{"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}, {"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}]}], "description"=>"<string>"}, {"type"=>"constructor", "inputs"=>[{"name"=>"<string>", "type"=>"<string>", "description"=>"<string>", "internalType"=>"<string>", "components"=>[{"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}, {"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}]}, {"name"=>"<string>", "type"=>"<string>", "description"=>"<string>", "internalType"=>"<string>", "components"=>[{"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}, {"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}]}], "name"=>"<string>", "stateMutability"=>"payable", "outputs"=>[{"name"=>"<string>", "type"=>"<string>", "description"=>"<string>", "internalType"=>"<string>", "components"=>[{"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}, {"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}]}, {"name"=>"<string>", "type"=>"<string>", "description"=>"<string>", "internalType"=>"<string>", "components"=>[{"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}, {"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}]}], "description"=>"<string>"}]], "longDescription"=>"<string>", "sourcecode"=>"<string>", "type"=>"TOKEN_UTILITY", "docs"=>{"kind"=>"<string>", "methods"=>{"Ut_f17"=>{"details"=>"<string>", "params"=>{"elit82"=>"<string>"}, "returns"=>{"sed0f"=>"<string>"}}, "aliquip_b91"=>{"details"=>"<string>", "params"=>{"irureca"=>"<string>"}, "returns"=>{"utfa"=>"<string>"}}, "eiusmoda78"=>{"details"=>"<string>", "params"=>{"enimd9d"=>"<string>", "consecteturd"=>"<string>"}, "returns"=>{"sint_4"=>"<string>"}}}, "version"=>"<string>", "details"=>"<string>", "events"=>"<string>"}, "attributes"=>{"useCases"=>["<string>", "<string>"], "standards"=>["<string>", "<string>"], "auditor"=>{"name"=>"<string>", "imageURL"=>"<string>", "link"=>"<string>"}}}

HEADERS

KeyDatatypeRequiredDescription
Idempotency-KeystringA unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;abi&quot;:[[{&quot;type&quot;:&quot;error&quot;,&quot;inputs&quot;:[{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;internalType&quot;:&quot;\u003cstring\u003e&quot;,&quot;components&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;}]},{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;internalType&quot;:&quot;\u003cstring\u003e&quot;,&quot;components&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;}]}],&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;stateMutability&quot;:&quot;nonpayable&quot;,&quot;outputs&quot;:[{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;internalType&quot;:&quot;\u003cstring\u003e&quot;,&quot;components&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;}]},{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;internalType&quot;:&quot;\u003cstring\u003e&quot;,&quot;components&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;}]}],&quot;description&quot;:&quot;\u003cstring\u003e&quot;},{&quot;type&quot;:&quot;error&quot;,&quot;inputs&quot;:[{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;internalType&quot;:&quot;\u003cstring\u003e&quot;,&quot;components&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;}]},{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;internalType&quot;:&quot;\u003cstring\u003e&quot;,&quot;components&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;}]}],&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;stateMutability&quot;:&quot;nonpayable&quot;,&quot;outputs&quot;:[{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;internalType&quot;:&quot;\u003cstring\u003e&quot;,&quot;components&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;}]},{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;internalType&quot;:&quot;\u003cstring\u003e&quot;,&quot;components&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;}]}],&quot;description&quot;:&quot;\u003cstring\u003e&quot;}],[{&quot;type&quot;:&quot;receive&quot;,&quot;inputs&quot;:[{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;internalType&quot;:&quot;\u003cstring\u003e&quot;,&quot;components&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;}]},{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;internalType&quot;:&quot;\u003cstring\u003e&quot;,&quot;components&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;}]}],&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;stateMutability&quot;:&quot;nonpayable&quot;,&quot;outputs&quot;:[{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;internalType&quot;:&quot;\u003cstring\u003e&quot;,&quot;components&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;}]},{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;internalType&quot;:&quot;\u003cstring\u003e&quot;,&quot;components&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;}]}],&quot;description&quot;:&quot;\u003cstring\u003e&quot;},{&quot;type&quot;:&quot;fallback&quot;,&quot;inputs&quot;:[{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;internalType&quot;:&quot;\u003cstring\u003e&quot;,&quot;components&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;}]},{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;internalType&quot;:&quot;\u003cstring\u003e&quot;,&quot;components&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;}]}],&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;stateMutability&quot;:&quot;nonpayable&quot;,&quot;outputs&quot;:[{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;internalType&quot;:&quot;\u003cstring\u003e&quot;,&quot;components&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;}]},{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;internalType&quot;:&quot;\u003cstring\u003e&quot;,&quot;components&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;}]}],&quot;description&quot;:&quot;\u003cstring\u003e&quot;}]],&quot;isPublic&quot;:&quot;\u003cboolean\u003e&quot;,&quot;initializationPhase&quot;:&quot;ON_DEPLOYMENT&quot;,&quot;longDescription&quot;:&quot;\u003cstring\u003e&quot;,&quot;attributes&quot;:{&quot;useCases&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;standards&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;auditor&quot;:{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;imageURL&quot;:&quot;\u003cstring\u003e&quot;,&quot;link&quot;:&quot;\u003cstring\u003e&quot;}},&quot;docs&quot;:{&quot;kind&quot;:&quot;\u003cstring\u003e&quot;,&quot;methods&quot;:{&quot;Lorem_0f&quot;:{&quot;details&quot;:&quot;\u003cstring\u003e&quot;,&quot;params&quot;:{&quot;eiusmod_ab2&quot;:&quot;\u003cstring\u003e&quot;},&quot;returns&quot;:{&quot;qui_9b&quot;:&quot;\u003cstring\u003e&quot;}}},&quot;version&quot;:&quot;\u003cstring\u003e&quot;,&quot;details&quot;:&quot;\u003cstring\u003e&quot;,&quot;events&quot;:&quot;\u003cstring\u003e&quot;},&quot;owner&quot;:&quot;\u003cstring\u003e&quot;,&quot;vendor&quot;:{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;},&quot;canDeploy&quot;:&quot;\u003cboolean\u003e&quot;,&quot;type&quot;:&quot;TOKEN_EXTENSION&quot;,&quot;implementationContractId&quot;:&quot;\u003cstring\u003e&quot;}