{"openapi":"3.0.4","info":{"title":"Create a new sequence","description":"Create a new sequence","version":"0.0.1"},"servers":[{"url":"https://fbn-prd.lusid.com/api"}],"paths":{"/api/sequences/{scope}":{"post":{"tags":["Sequences"],"summary":"Create a new sequence","description":"Create a new sequence","operationId":"CreateSequence","parameters":[{"name":"scope","in":"path","description":"Scope of the sequence.","required":true,"schema":{"maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9\\-_]+$","type":"string"}}],"requestBody":{"description":"Request to create sequence","content":{"application/json-patch+json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/CreateSequenceRequest"},"example":{"code":"TestCode","increment":1,"minValue":0,"maxValue":10,"start":0,"cycle":false,"pattern":"TXN-{{seqValue}}"}},"application/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/CreateSequenceRequest"},"example":{"code":"TestCode","increment":1,"minValue":0,"maxValue":10,"start":0,"cycle":false,"pattern":"TXN-{{seqValue}}"}},"text/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/CreateSequenceRequest"},"example":{"code":"TestCode","increment":1,"minValue":0,"maxValue":10,"start":0,"cycle":false,"pattern":"TXN-{{seqValue}}"}},"application/*+json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/CreateSequenceRequest"},"example":{"code":"TestCode","increment":1,"minValue":0,"maxValue":10,"start":0,"cycle":false,"pattern":"TXN-{{seqValue}}"}}},"required":true},"responses":{"201":{"description":"The newly created Sequence","content":{"application/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/SequenceDefinition"},"example":{"id":{"scope":"TestScope","code":"TestCode"},"increment":1,"minValue":0,"maxValue":10,"start":1,"value":3,"cycle":false,"pattern":"TXN-{{seqValue}}"}},"text/plain":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/SequenceDefinition"},"example":{"id":{"scope":"TestScope","code":"TestCode"},"increment":1,"minValue":0,"maxValue":10,"start":1,"value":3,"cycle":false,"pattern":"TXN-{{seqValue}}"}},"text/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/SequenceDefinition"},"example":{"id":{"scope":"TestScope","code":"TestCode"},"increment":1,"minValue":0,"maxValue":10,"start":1,"value":3,"cycle":false,"pattern":"TXN-{{seqValue}}"}}}},"400":{"description":"The details of the input related failure","content":{"application/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/LusidValidationProblemDetails"}},"text/plain":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/LusidValidationProblemDetails"}},"text/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/LusidValidationProblemDetails"}}}},"default":{"description":"Error response","content":{"application/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/LusidProblemDetails"}}}}},"security":[{"BearerAuth":[]}],"x-fbn-apistatus":"EarlyAccess"}}},"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer"}}}}