Create project

This API is used to create a new project to run review task. It requires service type and the source code. You can offer source code by github link or contract address or upload directly.

post/project

Request

  • Base URL
    https://api.zan.top/scr/v1
  • URL
    https://api.zan.top/scr/v1/project
  • Auth
    none required

Headers

Authorizationstring required

Fill your access key after Bearer

Request body

projectIdstring

If empty, SCR generates automatically

projectNamestring required

Set your project name

serviceType'Express' | 'Expert' required

Express or Expert

srcForm'FILE' | 'GIT' | 'CONTRACT_ADDRESS' required

FILE , GIT or CONTRACT_ADDRESS

srcFieldstring

Required if srcForm is FILE, value equals accessId from Upload files interface

srcFileNamestring

Required if srcForm is FILE, include dir which returned by Upload files interface. e.g. dir/timestamp/filename

contractAddressListstring[]

Required if srcForm is CONTRACT_ADDRESS, no more than 3

srcUrlstring

Required if srcForm is GIT

srcBranchstring

Required if srcForm is GIT

srcCommitstring

Optional if srcForm is GIT, leave empty if not.

srcAccessTokenstring

Optional if srcForm is GIT, leave empty if not.

ifSofiAudit'true' | 'false' required

Set true if require formal verification

Response

200

successboolean

Example response

{
  "data": {
    "projectId": "18ec7a88-86f2-4587-9dea-a902dafd667a"
  },
  "success": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.