post https://api.ol-hub.com/backend/api/v1/projects//versions
The tag project by id API sends a POST request to create a new version of the project by the project id.
Prerequisites: The caller must supply the projectId.
Input parameters:
Field name | Description | Format |
---|---|---|
projectId | Project id | UUID |
reason | Description | String |
Output parameters:
Field name | Description | Format |
---|---|---|
ProjectVersion | Container - see below | ProjectVersion |
ProjectVersion:
Field name | Description | Format |
---|---|---|
projectId | Project id | UUID |
version | Project version number | Integer |
reason | Description | String |
versionedBy | User who versioned the project | String |
versionedAt | Date-time project was versioned | Instant |
Example:
{
"projectId": "b8d28b7e-edfb-4c18-8fb7-e5b3d09db83f",
"version": 1,
"versionedBy": "local dev",
"reason": "tag project by id reason",
"versionedAt": "2021-07-18T14:23:52.060612Z"
}