Skip to main content
POST
/
repositories
/
:id
/
versions
Index new version
curl --request POST \
  --url https://api.contextone.com/repositories/:id/versions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "releaseName": "<string>"
}'
{
  "success": true,
  "message": "<string>",
  "data": {
    "repositoryId": "<string>",
    "versionId": 123,
    "releaseName": "<string>",
    "commitId": "<string>",
    "status": "IN-PROGRESS"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Org-Id
string

Organization ID (required for private repositories)

Path Parameters

id
string
required

Repository ID

Body

application/json
releaseName
string
required

Release name

Response

200 - application/json

Version indexing started

success
boolean
required
message
string
required
data
object
required
I