Crego APIs
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
  1. Design
  • Back to home
  • Flow
  • Design
    • Create Design
      POST
    • List Designs
      GET
    • Update Design
      PUT
    • Get Design
      GET
    • Mark as Current Design
      PUT
    • Duplicate Design
      POST
    • Get Expanded Design
      GET
    • Graph Validation
      GET
  • Runner
    • Create Runner
      POST
    • Execute Runner
      POST
    • Get Runner
      GET
    • List Runners
      GET
    • Runner Callback Handler
      POST
    • Runner activity
      GET
    • Runner Store
      GET
    • Update Runner design
      PUT
    • Update Store
      PUT
    • No Auth Runner Flow info
      GET
    • Parse Template
      POST
    • Get Current Nodes
      GET
    • Create and Execute Runner
      POST
  • Customer Auth
    • Refresh Token
      POST
    • Send OTP
      POST
    • Verify OTP
      POST
    • Auth Ping
      GET
    • Exchange Token
      POST
  • Utility
    • Get Schema
  • Warehouse
  • Store
    • Get Store
    • List Store
    • Create Store
  • Document
    • Create Document
    • Get Storage Document
    • Add files to document
    • Download files
  • CheckList
    • CheckList Template
      • Create Checklist Template
      • Get CheckList Template
      • List CheckList Template
      • Update CheckList Template
      • Delete CheckList Template
    • Workflow CheckList
      • Get checklist at runner stage
      • Update Check List Item
  • Approvals
    • Approval List
    • Pending Approval
    • Create Approvals
    • Get Approval
    • Update Approvals
    • Current user approval list
    • Get approval request by resource
    • Approve approval
    • Reject Approval
  1. Design

Mark as Current Design

Developing
preprod
https://preprod.api.crego.io
preprod
https://preprod.api.crego.io
PUT
/v1/rego/designs/{id}/current/
Last modified:2024-12-03 08:30:13

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
id
string 
required

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://preprod.api.crego.io/v1/rego/designs//current/'

Responses

🟢200OK
application/json
Body
id
string 
required
created_at
string 
required
updated_at
string 
required
created_by
string 
required
flow
string 
required
secret
string 
required
is_current
boolean 
required
graph
object 
required
nodes
array [object {3}] 
required
edges
array[string]
required
start_node
string 
required
store_schema
object 
required
type
string 
required
properties
object 
required
required
array[string]
required
definitions
object 
required
config
object 
required
name
string 
required
Example
{"id":"4fc3da8b-1ff4-4c6b-be2c-e1ba1547a799","created_at":"2024-12-03T13:57:32.477000","updated_at":"2024-12-03T13:59:02.445140","created_by":"0d17a44c-9589-4534-807a-7c9e95002e10","flow":"5f65915d-d0b0-4c21-9788-bb81da7e0d23","secret":"47e00a33-b704-4918-884e-7c4c08ed2705","is_current":true,"graph":{"nodes":[{"name":"gst_form","type":"web_form","config":{"schema":{"type":"object","properties":{"gst_no":{"type":"string","title":"GST Number","pattern":"^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z]{1}[1-9A-Z]{1}Z[0-9A-Z]{1}$","errorMessage":{"pattern":"Please enter a valid GST number in the format: 22AAAAA0000A1Z5"}}},"required":["gst_no"]},"layout":{}}},{"name":"gst_form","type":"web_form","config":{"schema":{"type":"object","properties":{"gst_no":{"type":"string","title":"GST Number","pattern":"^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z]{1}[1-9A-Z]{1}Z[0-9A-Z]{1}$","errorMessage":{"pattern":"Please enter a valid GST number in the format: 22AAAAA0000A1Z5"}}},"required":["gst_no"]},"layout":{}}},{"name":"gst_form","type":"web_form","config":{"schema":{"type":"object","properties":{"gst_no":{"type":"string","title":"GST Number","pattern":"^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z]{1}[1-9A-Z]{1}Z[0-9A-Z]{1}$","errorMessage":{"pattern":"Please enter a valid GST number in the format: 22AAAAA0000A1Z5"}}},"required":["gst_no"]},"layout":{}}}],"edges":[],"start_node":"4c4fa4fe-68d4-4d7e-b293-551a99c64be8"},"store_schema":{"type":"object","properties":{"status":{"type":"string","description":"Status","enum":["pending","kyc_submitted","kyc_approved","kyc_rejected","pending_signing","signed"]},"applicant":{"$ref":"#/definitions/Person"},"business":{"$ref":"#/definitions/Business"},"co_applicants":{"type":"array","items":{"$ref":"#/definitions/Person"},"description":"Co-applicants of business"}},"required":["status","applicant","business"],"definitions":{"type":"object","properties":{"Person":{"type":"object","properties":{"type":{"type":"string","default":"object"},"properties":{"type":"object","properties":{"name":{"type":"object","properties":{"type":{"type":"string","default":"string"}},"required":["type"],"x-apidog-ignore-properties":[],"x-apidog-orders":["type"],"additionalProperties":false},"dob":{"type":"object","properties":{"type":{"type":"string","default":"string"},"format":{"type":"string","default":"date","x-apidog-mock":"2024-12-03 05:18:07"},"pattern":{"type":"string","default":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$"}},"required":["type","format","pattern"],"x-apidog-ignore-properties":[],"x-apidog-orders":["type","format","pattern"],"additionalProperties":false},"gender":{"type":"object","properties":{"type":{"type":"string","default":"string"},"enum":{"type":"array","items":{"type":"string","x-apidog-mock":"29"},"default":["male","female"]}},"required":["type","enum"],"x-apidog-ignore-properties":[],"x-apidog-orders":["type","enum"],"additionalProperties":false},"pan_no":{"type":"object","properties":{"type":{"type":"string","default":"string"},"pattern":{"type":"string","default":"[A-Z]{5}[0-9]{4}[A-Z]{1}"}},"required":["type","pattern"],"x-apidog-ignore-properties":[],"x-apidog-orders":["type","pattern"],"additionalProperties":false},"aadhaar_no":{"type":"object","properties":{"type":{"type":"string","default":"string"},"pattern":{"type":"string","default":"^[0-9]{12}$"}},"required":["type","pattern"],"x-apidog-ignore-properties":[],"x-apidog-orders":["type","pattern"],"additionalProperties":false},"mobile":{"type":"object","properties":{"type":{"type":"string","default":"string"},"pattern":{"type":"string","default":"^[0-9]{10}$"}},"required":["type","pattern"],"x-apidog-ignore-properties":[],"x-apidog-orders":["type","pattern"],"additionalProperties":false},"email":{"type":"object","properties":{"type":{"type":"string","default":"string"},"format":{"type":"string","default":"email","x-apidog-mock":"2024-12-02 17:38:12"}},"required":["type","format"],"x-apidog-ignore-properties":[],"x-apidog-orders":["type","format"],"additionalProperties":false},"banks":{"type":"object","properties":{"type":{"type":"string","default":"array"},"items":{"type":"object","properties":{"$ref":{"type":"string","default":"#/definitions/Bank"}},"required":["$ref"],"x-apidog-ignore-properties":[],"x-apidog-orders":["$ref"],"additionalProperties":false},"description":{"type":"string","default":"Banks of person","x-apidog-mock":"Alias textor caveo alo antea amplus summopere sapiente cauda. Surgo currus vereor crudelis ex celer arcus cometes amissio solvo. Ars deludo centum."}},"required":["type","items","description"],"x-apidog-ignore-properties":[],"x-apidog-orders":["type","items","description"],"additionalProperties":false},"addresses":{"type":"object","properties":{"type":{"type":"string","default":"array"},"items":{"type":"object","properties":{"$ref":{"type":"string","default":"#/definitions/Address"}},"required":["$ref"],"x-apidog-ignore-properties":[],"x-apidog-orders":["$ref"],"additionalProperties":false},"description":{"type":"string","default":"Addresses of pers
Modified at 2024-12-03 08:30:13
Previous
Get Design
Next
Duplicate Design
Built with