文档

​
​

Development

User Acquisition

Monetization

工业

UVCS CM API

v1

受支持
​

UVCS CM API

v1

受支持
​

此页面不支持所选语言。
Unity Services Web APIs
​
​
Unity Version Control CM API
  • Overview
mdx:openapi:endpoints
  • Branches
  • Changes
  • Changesets
  • Checkin
  • Labels
  • Repositories
  • Revisions
  • Shelve
  • Update
  • Workspaces

Unity Version Control CM API

Overview

The Unity Version Control
cm
API allows developers to perform Unity Version Control operations in their machine, provided that a Unity Version Control client is already installed and configured.
For more information about Unity Version Control, refer to our documentation.
Download OpenAPI specification:

Get branches


Retrieve the list of branches in a repository

Path parameters for "{title}"

repName

string
必填
The name of the repository

Query parameters for "{title}"

q

string
Search query to filter branches

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/repos/{repName}/branches"

Response example

[ { "name": "string", "id": 0, "parentId": 0, "lastChangeset": 0, "comment": "string", "creationDate": "2024-01-01T00:00:00Z", "guid": "string", "owner": { "name": "string", "isGroup": true }, "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" } }]

Create branch


Create a new branch in a repository

Path parameters for "{title}"

repName

string
必填
The name of the repository

Request body for "{title}"

Media Type:
application/json

name

string
必填
No description

origin

string
必填
No description

originType

string
必填
No description

comment

string
No description

topLevel

boolean
No description

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X POST \ -H "Content-Type: application/json" \ -d '{ "name": "string", "origin": "string", "originType": "string", "comment": "string", "topLevel": true}' \ "http://localhost:9090/api/v1/repos/{repName}/branches"

Response example

{ "name": "string", "id": 0, "parentId": 0, "lastChangeset": 0, "comment": "string", "creationDate": "2024-01-01T00:00:00Z", "guid": "string", "owner": { "name": "string", "isGroup": true }, "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" }}

Get branch changesets


Retrieve the list of changesets in a branch

Path parameters for "{title}"

repName

string
必填
The name of the repository

branchName

string
必填
The name of the branch

Query parameters for "{title}"

q

string
Search query to filter changesets

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/repos/{repName}/branches/{branchName}/changesets"

Response example

[ { "id": 0, "parentId": 0, "comment": "string", "creationDate": "2024-01-01T00:00:00Z", "guid": "string", "branch": { "name": "string", "id": 0, "parentId": 0, "lastChangeset": 0, "comment": "string", "creationDate": "2024-01-01T00:00:00Z", "guid": "string", "owner": { "name": "string", "isGroup": true }, "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" } }, "owner": { "name": "string", "isGroup": true }, "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" } }]

Get branch diff


Retrieve the differences of a branch

Path parameters for "{title}"

repName

string
必填
The name of the repository

branchName

string
必填
The name of the branch

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/repos/{repName}/branches/{branchName}/diff"

Response example

[ { "status": "added", "path": "string", "srcPath": "string", "revisionId": 0, "srcRevisionId": 0, "isDirectory": true, "size": 0, "hash": "string", "srcHash": "string", "isUnderXlink": true, "xlink": { "changesetGuid": "string", "changesetId": 0, "repository": "string", "server": "string" }, "baseXlink": { "changesetGuid": "string", "changesetId": 0, "repository": "string", "server": "string" }, "merges": [ { "mergeType": "string", "sourceChangeset": { "id": 0, "parentId": 0, "comment": "string", "creationDate": "2024-01-01T00:00:00Z", "guid": "string", "branch": { "name": null, "id": null, "parentId": null, "lastChangeset": null, "comment": null, "creationDate": null, "guid": null, "owner": null, "repository": null }, "owner": { "name": null, "isGroup": null }, "repository": { "name": null, "repId": null, "guid": null, "owner": null, "server": null } } } ], "isItemFSProtectionChanged": true, "itemFileSystemProtection": "string", "baseItemFileSystemProtection": "string", "modifiedTime": "2024-01-01T00:00:00Z", "createdBy": { "name": "string", "isGroup": true }, "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" } }]

Get branch contents


Retrieve the contents of a branch

Path parameters for "{title}"

repName

string
必填
The name of the repository

branchName

string
必填
The name of the branch

path

string
必填
The path to the file or directory

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/repos/{repName}/branches/{branchName}/contents/{path}"

Response example

{ "revisionId": 0, "type": "string", "size": 0, "name": "string", "path": "string", "changeset": 0, "branch": "string", "isUnderXlink": true, "xlinkTarget": { "changesetGuid": "string", "changesetId": 0, "repository": "string", "server": "string" }, "hash": "string", "content": "string", "items": [ { "revisionId": 0, "type": "string", "size": 0, "name": "string", "path": "string", "changeset": 0, "branch": "string", "isUnderXlink": true, "xlinkTarget": { "changesetGuid": "string", "changesetId": 0, "repository": "string", "server": "string" }, "hash": "string", "content": "string", "items": [ { "revisionId": 0, "type": "string", "size": 0, "name": "string", "path": "string", "changeset": 0, "branch": "string", "isUnderXlink": true, "xlinkTarget": { "changesetGuid": null, "changesetId": null, "repository": null, "server": null }, "hash": "string", "content": "string", "items": [ null ], "repository": { "name": null, "repId": null, "guid": null, "owner": null, "server": null } } ], "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" } } ], "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" }}

Get branch item contents


Retrieve the contents of an item in a branch

Path parameters for "{title}"

repName

string
必填
The name of the repository

branchName

string
必填
The name of the branch

Query parameters for "{title}"

item

string
The absolute path of the item (file or directory)

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/repos/{repName}/branches/{branchName}/contents"

Response example

{ "revisionId": 0, "type": "string", "size": 0, "name": "string", "path": "string", "changeset": 0, "branch": "string", "isUnderXlink": true, "xlinkTarget": { "changesetGuid": "string", "changesetId": 0, "repository": "string", "server": "string" }, "hash": "string", "content": "string", "items": [ { "revisionId": 0, "type": "string", "size": 0, "name": "string", "path": "string", "changeset": 0, "branch": "string", "isUnderXlink": true, "xlinkTarget": { "changesetGuid": "string", "changesetId": 0, "repository": "string", "server": "string" }, "hash": "string", "content": "string", "items": [ { "revisionId": 0, "type": "string", "size": 0, "name": "string", "path": "string", "changeset": 0, "branch": "string", "isUnderXlink": true, "xlinkTarget": { "changesetGuid": null, "changesetId": null, "repository": null, "server": null }, "hash": "string", "content": "string", "items": [ null ], "repository": { "name": null, "repId": null, "guid": null, "owner": null, "server": null } } ], "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" } } ], "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" }}

Get branch item history


Retrieve the history of an item in a branch

Path parameters for "{title}"

repName

string
必填
The name of the repository

branchName

string
必填
The name of the branch

Query parameters for "{title}"

item

string
The absolute path of the item (file or directory)

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/repos/{repName}/branches/{branchName}/history"

Response example

[ { "revisionId": 0, "type": "string", "owner": { "name": "string", "isGroup": true }, "creationDate": "2024-01-01T00:00:00Z", "comment": "string", "revisionLink": "string", "changesetId": 0, "changesetLink": "string", "branchName": "string", "branchLink": "string", "repositoryName": "string", "repositoryLink": "string" }]

Get branch history


Retrieve the history of a branch

Path parameters for "{title}"

repName

string
必填
The name of the repository

branchName

string
必填
The name of the branch

path

string
必填
The absolute path of the item (file or directory)

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/repos/{repName}/branches/{branchName}/history/{path}"

Response example

[ { "revisionId": 0, "type": "string", "owner": { "name": "string", "isGroup": true }, "creationDate": "2024-01-01T00:00:00Z", "comment": "string", "revisionLink": "string", "changesetId": 0, "changesetLink": "string", "branchName": "string", "branchLink": "string", "repositoryName": "string", "repositoryLink": "string" }]

Get branch information


Retrieve the information of a branch

Path parameters for "{title}"

repName

string
必填
The name of the repository

branchName

string
必填
The name of the branch

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/repos/{repName}/branches/{branchName}"

Response example

{ "name": "string", "id": 0, "parentId": 0, "lastChangeset": 0, "comment": "string", "creationDate": "2024-01-01T00:00:00Z", "guid": "string", "owner": { "name": "string", "isGroup": true }, "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" }}

Update branch


Update the information of a branch

Path parameters for "{title}"

repName

string
必填
No description

branchName

string
必填
No description

Request body for "{title}"

Media Type:
application/json

name

string
必填
The name of the branch

id

integer
The numeric ID of the branch

parentId

integer
The numeric ID of the parent branch

lastChangeset

integer
The ID of the last changeset

comment

string
The comment associated with the branch

creationDate

string
The date and time when the branch was created

guid

string
The globally unique identifier for the branch

owner

object
The owner of a repository or repository object

name

string
The name of the owner

isGroup

boolean
Indicates if the owner is a group

repository

object
A repository in a Unity Version Control server

name

string
必填
The name of the repository

repId

object
The ID of a repository

id

integer
The ID of the repository

deprecatedModuleId

integer
[Deprecated] The module ID, if the repository is a submodule

guid

string
The globally unique identifier for the repository

owner

object
The owner of a repository or repository object

name

string
The name of the owner

isGroup

boolean
Indicates if the owner is a group

server

string
The server hosting the repository

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X PATCH \ -H "Content-Type: application/json" \ -d '{ "name": "string", "id": 0, "parentId": 0, "lastChangeset": 0, "comment": "string", "creationDate": "2024-01-01T00:00:00Z", "guid": "string", "owner": { "name": "string", "isGroup": true }, "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" }}' \ "http://localhost:9090/api/v1/repos/{repName}/branches/{branchName}"

Response example

{ "name": "string", "id": 0, "parentId": 0, "lastChangeset": 0, "comment": "string", "creationDate": "2024-01-01T00:00:00Z", "guid": "string", "owner": { "name": "string", "isGroup": true }, "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" }}

Delete branch


Delete a branch

Path parameters for "{title}"

repName

string
必填
The name of the repository

branchName

string
必填
The name of the branch

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X DELETE \ "http://localhost:9090/api/v1/repos/{repName}/branches/{branchName}"

Response example

Get pending changes


Retrieve a list of pending changes in a workspace

Path parameters for "{title}"

wkName

string
必填
The name of the workspace

Query parameters for "{title}"

types

Comma-separated list of change types to filter by. Example:
types=added,changed,deleted

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/wkspaces/{wkName}/changes"

Response example

[ { "changes": [ "added" ], "path": "string", "oldPath": "string", "serverPath": "string", "oldServerPath": "string", "isXlink": true, "xlinkMount": { "name": "string", "mountPoint": "string", "guid": "string", "isWritable": true, "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" } }, "localInfo": { "modifiedTime": "2024-01-01T00:00:00Z", "size": 0, "isMissing": true }, "revisionInfo": { "id": 0, "parentId": 0, "itemId": 0, "type": "string", "size": 0, "hash": "string", "branchId": 0, "changesetId": 0, "isCheckedOut": true, "creationDate": "2024-01-01T00:00:00Z", "repositoryId": { "id": 0, "deprecatedModuleId": 0 }, "owner": { "name": "string", "isGroup": true } } }]

Undo pending changes


Undo a list of pending changes in a workspace

Path parameters for "{title}"

wkName

string
必填
The name of the workspace

Request body for "{title}"

Media Type:
application/json

paths

array[string]
No description

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X DELETE \ -H "Content-Type: application/json" \ -d '{ "paths": [ "string" ]}' \ "http://localhost:9090/api/v1/wkspaces/{wkName}/changes"

Response example

{ "affectedPaths": [ "string" ]}

Get changesets


Retrieve a list of changesets in a repository

Path parameters for "{title}"

repName

string
必填
The name of the repository

Query parameters for "{title}"

q

string
Query string to filter changesets

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/repos/{repName}/changesets"

Response example

[ { "id": 0, "parentId": 0, "comment": "string", "creationDate": "2024-01-01T00:00:00Z", "guid": "string", "branch": { "name": "string", "id": 0, "parentId": 0, "lastChangeset": 0, "comment": "string", "creationDate": "2024-01-01T00:00:00Z", "guid": "string", "owner": { "name": "string", "isGroup": true }, "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" } }, "owner": { "name": "string", "isGroup": true }, "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" } }]

Get changeset


Retrieve a specific changeset in a repository

Path parameters for "{title}"

repName

string
必填
The name of the repository

changesetId

integer
必填
The ID of the changeset

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/repos/{repName}/changesets/{changesetId}"

Response example

{ "id": 0, "parentId": 0, "comment": "string", "creationDate": "2024-01-01T00:00:00Z", "guid": "string", "branch": { "name": "string", "id": 0, "parentId": 0, "lastChangeset": 0, "comment": "string", "creationDate": "2024-01-01T00:00:00Z", "guid": "string", "owner": { "name": "string", "isGroup": true }, "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" } }, "owner": { "name": "string", "isGroup": true }, "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" }}

Get revision in changeset


Retrieve the revision of a specific item in a changeset in a repository

Path parameters for "{title}"

repName

string
必填
The name of the repository

changesetId

integer
必填
The ID of the changeset

path

string
必填
The absolute path of the item in the changeset

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/repos/{repName}/changesets/{changesetId}/contents/{path}"

Response example

{ "revisionId": 0, "type": "string", "size": 0, "name": "string", "path": "string", "changeset": 0, "branch": "string", "isUnderXlink": true, "xlinkTarget": { "changesetGuid": "string", "changesetId": 0, "repository": "string", "server": "string" }, "hash": "string", "content": "string", "items": [ { "revisionId": 0, "type": "string", "size": 0, "name": "string", "path": "string", "changeset": 0, "branch": "string", "isUnderXlink": true, "xlinkTarget": { "changesetGuid": "string", "changesetId": 0, "repository": "string", "server": "string" }, "hash": "string", "content": "string", "items": [ { "revisionId": 0, "type": "string", "size": 0, "name": "string", "path": "string", "changeset": 0, "branch": "string", "isUnderXlink": true, "xlinkTarget": { "changesetGuid": null, "changesetId": null, "repository": null, "server": null }, "hash": "string", "content": "string", "items": [ null ], "repository": { "name": null, "repId": null, "guid": null, "owner": null, "server": null } } ], "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" } } ], "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" }}

Get item history in changeset


Retrieve the history of a specific item in a changeset in a repository

Path parameters for "{title}"

repName

string
必填
The name of the repository

changesetId

integer
必填
The ID of the changeset

path

string
必填
The absolute path of the item in the changeset

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/repos/{repName}/changesets/{changesetId}/history/{path}"

Response example

[ { "revisionId": 0, "type": "string", "owner": { "name": "string", "isGroup": true }, "creationDate": "2024-01-01T00:00:00Z", "comment": "string", "revisionLink": "string", "changesetId": 0, "changesetLink": "string", "branchName": "string", "branchLink": "string", "repositoryName": "string", "repositoryLink": "string" }]

Get changeset diff


Retrieve the differences introduced in a specific changeset in a repository

Path parameters for "{title}"

repName

string
必填
The name of the repository

changesetId

integer
必填
The ID of the changeset

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/repos/{repName}/changesets/{changesetId}/diff"

Response example

[ { "status": "added", "path": "string", "srcPath": "string", "revisionId": 0, "srcRevisionId": 0, "isDirectory": true, "size": 0, "hash": "string", "srcHash": "string", "isUnderXlink": true, "xlink": { "changesetGuid": "string", "changesetId": 0, "repository": "string", "server": "string" }, "baseXlink": { "changesetGuid": "string", "changesetId": 0, "repository": "string", "server": "string" }, "merges": [ { "mergeType": "string", "sourceChangeset": { "id": 0, "parentId": 0, "comment": "string", "creationDate": "2024-01-01T00:00:00Z", "guid": "string", "branch": { "name": null, "id": null, "parentId": null, "lastChangeset": null, "comment": null, "creationDate": null, "guid": null, "owner": null, "repository": null }, "owner": { "name": null, "isGroup": null }, "repository": { "name": null, "repId": null, "guid": null, "owner": null, "server": null } } } ], "isItemFSProtectionChanged": true, "itemFileSystemProtection": "string", "baseItemFileSystemProtection": "string", "modifiedTime": "2024-01-01T00:00:00Z", "createdBy": { "name": "string", "isGroup": true }, "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" } }]

Get changeset diff with another changeset


Retrieve the differences introduced in a specific changeset in a repository compared to another changeset

Path parameters for "{title}"

repName

string
必填
The name of the repository

dstCsetId

integer
必填
The ID of the destination changeset

srcCsetId

integer
必填
The ID of the source changeset

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/repos/{repName}/changesets/{dstCsetId}/diff/{srcCsetId}"

Response example

[ { "status": "added", "path": "string", "srcPath": "string", "revisionId": 0, "srcRevisionId": 0, "isDirectory": true, "size": 0, "hash": "string", "srcHash": "string", "isUnderXlink": true, "xlink": { "changesetGuid": "string", "changesetId": 0, "repository": "string", "server": "string" }, "baseXlink": { "changesetGuid": "string", "changesetId": 0, "repository": "string", "server": "string" }, "merges": [ { "mergeType": "string", "sourceChangeset": { "id": 0, "parentId": 0, "comment": "string", "creationDate": "2024-01-01T00:00:00Z", "guid": "string", "branch": { "name": null, "id": null, "parentId": null, "lastChangeset": null, "comment": null, "creationDate": null, "guid": null, "owner": null, "repository": null }, "owner": { "name": null, "isGroup": null }, "repository": { "name": null, "repId": null, "guid": null, "owner": null, "server": null } } } ], "isItemFSProtectionChanged": true, "itemFileSystemProtection": "string", "baseItemFileSystemProtection": "string", "modifiedTime": "2024-01-01T00:00:00Z", "createdBy": { "name": "string", "isGroup": true }, "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" } }]

Get check-in status


Retrieve the current check-in status for a workspace.

Path parameters for "{title}"

wkName

string
必填
The name of the workspace.

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/wkspaces/{wkName}/checkin"

Response example

{ "status": "string", "message": "string"}

Perform check-in


Check in changes to the workspace.

Path parameters for "{title}"

wkName

string
必填
The name of the workspace.

Request body for "{title}"

Media Type:
application/json

paths

array[string]
No description

comment

string
No description

recurse

boolean
No description

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X POST \ -H "Content-Type: application/json" \ -d '{ "paths": [ "string" ], "comment": "string", "recurse": true}' \ "http://localhost:9090/api/v1/wkspaces/{wkName}/checkin"

Response example

{ "status": "string", "message": "string"}

Create a shelveset


Create a new shelveset in the specified workspace.

Path parameters for "{title}"

wkName

string
必填
The name of the workspace.

Request body for "{title}"

Media Type:
application/json

comment

string
No description

paths

array[string]
No description

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X POST \ -H "Content-Type: application/json" \ -d '{ "comment": "string", "paths": [ "string" ]}' \ "http://localhost:9090/api/v1/wkspaces/{wkName}/shelvesets"

Response example

{ "status": "string", "message": "string"}

Get file information


Retrieve detailed information about a specific file in the workspace.

Path parameters for "{title}"

wkName

string
必填
The name of the workspace.

path

string
必填
The path to the file within the workspace.

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/wkspaces/{wkName}/fileinfo/{path}"

Response example

{ "clientPath": "string", "relativePath": "string", "serverPath": "string", "repSpec": { "server": "string", "name": "string" }, "size": 0, "hash": "string", "owner": "string", "revisionHeadChangeset": 0, "revisionChangeset": 0, "status": "string", "type": "string", "changelist": "string", "locked": { "lockedBy": "string", "lockedWhere": "string" }, "underXlink": { "underXlinkWritable": true, "underXlinkRelative": true, "underXlinkTarget": "string", "underXlinkPath": "string" }, "xlink": { "xlinkWritable": true, "xlinkRelative": true, "xlinkTarget": "string", "xlinkName": "string" }}

Get labels


Retrieve a list of labels for the specified repository.

Path parameters for "{title}"

repName

string
必填
The name of the repository.

Query parameters for "{title}"

q

string
The search query for filtering labels.

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/repos/{repName}/labels"

Response example

[ { "name": "string", "id": 0, "changeset": 0, "comment": "string", "creationDate": "2024-01-01T00:00:00Z", "branch": { "name": "string", "id": 0, "parentId": 0, "lastChangeset": 0, "comment": "string", "creationDate": "2024-01-01T00:00:00Z", "guid": "string", "owner": { "name": "string", "isGroup": true }, "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" } }, "owner": { "name": "string", "isGroup": true }, "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" } }]

Create a new label


Create a new label for the specified repository.

Path parameters for "{title}"

repName

string
必填
The name of the repository.

Request body for "{title}"

Media Type:
application/json

name

string
必填
No description

changeset

integer
必填
No description

comment

string
No description

applyToXlinks

boolean
No description

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X POST \ -H "Content-Type: application/json" \ -d '{ "name": "string", "changeset": 0, "comment": "string", "applyToXlinks": true}' \ "http://localhost:9090/api/v1/repos/{repName}/labels"

Response example

{ "name": "string", "id": 0, "changeset": 0, "comment": "string", "creationDate": "2024-01-01T00:00:00Z", "branch": { "name": "string", "id": 0, "parentId": 0, "lastChangeset": 0, "comment": "string", "creationDate": "2024-01-01T00:00:00Z", "guid": "string", "owner": { "name": "string", "isGroup": true }, "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" } }, "owner": { "name": "string", "isGroup": true }, "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" }}

Get a label


Retrieve detailed information about a specific label in the repository.

Path parameters for "{title}"

repName

string
必填
The name of the repository.

labelName

string
必填
The name of the label.

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/repos/{repName}/labels/{labelName}"

Response example

{ "name": "string", "id": 0, "changeset": 0, "comment": "string", "creationDate": "2024-01-01T00:00:00Z", "branch": { "name": "string", "id": 0, "parentId": 0, "lastChangeset": 0, "comment": "string", "creationDate": "2024-01-01T00:00:00Z", "guid": "string", "owner": { "name": "string", "isGroup": true }, "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" } }, "owner": { "name": "string", "isGroup": true }, "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" }}

Update a label


Update an existing label in the specified repository.

Path parameters for "{title}"

repName

string
必填
The name of the repository.

labelName

string
必填
The name of the label.

Request body for "{title}"

Media Type:
application/json

name

string
必填
No description

id

integer
No description

changeset

integer
No description

comment

string
No description

creationDate

string
No description

branch

object
No description

name

string
必填
The name of the branch

id

integer
The numeric ID of the branch

parentId

integer
The numeric ID of the parent branch

lastChangeset

integer
The ID of the last changeset

comment

string
The comment associated with the branch

creationDate

string
The date and time when the branch was created

guid

string
The globally unique identifier for the branch

owner

object
The owner of a repository or repository object

name

string
The name of the owner

isGroup

boolean
Indicates if the owner is a group

repository

object
A repository in a Unity Version Control server

name

string
必填
The name of the repository

repId

object
The ID of a repository

id

integer
The ID of the repository

deprecatedModuleId

integer
[Deprecated] The module ID, if the repository is a submodule

guid

string
The globally unique identifier for the repository

owner

object
The owner of a repository or repository object

name

string
The name of the owner

isGroup

boolean
Indicates if the owner is a group

server

string
The server hosting the repository

owner

object
The owner of a repository or repository object

name

string
The name of the owner

isGroup

boolean
Indicates if the owner is a group

repository

object
A repository in a Unity Version Control server

name

string
必填
The name of the repository

repId

object
The ID of a repository

id

integer
The ID of the repository

deprecatedModuleId

integer
[Deprecated] The module ID, if the repository is a submodule

guid

string
The globally unique identifier for the repository

owner

object
The owner of a repository or repository object

name

string
The name of the owner

isGroup

boolean
Indicates if the owner is a group

server

string
The server hosting the repository

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X PATCH \ -H "Content-Type: application/json" \ -d '{ "name": "string", "id": 0, "changeset": 0, "comment": "string", "creationDate": "2024-01-01T00:00:00Z", "branch": { "name": "string", "id": 0, "parentId": 0, "lastChangeset": 0, "comment": "string", "creationDate": "2024-01-01T00:00:00Z", "guid": "string", "owner": { "name": "string", "isGroup": true }, "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" } }, "owner": { "name": "string", "isGroup": true }, "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" }}' \ "http://localhost:9090/api/v1/repos/{repName}/labels/{labelName}"

Response example

{ "name": "string", "id": 0, "changeset": 0, "comment": "string", "creationDate": "2024-01-01T00:00:00Z", "branch": { "name": "string", "id": 0, "parentId": 0, "lastChangeset": 0, "comment": "string", "creationDate": "2024-01-01T00:00:00Z", "guid": "string", "owner": { "name": "string", "isGroup": true }, "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" } }, "owner": { "name": "string", "isGroup": true }, "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" }}

Delete a label


Delete a specific label from the repository.

Path parameters for "{title}"

repName

string
必填
The name of the repository.

labelName

string
必填
The name of the label.

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X DELETE \ "http://localhost:9090/api/v1/repos/{repName}/labels/{labelName}"

Response example

Get a specific revision in a label


Retrieve a specific revision of an item in a label.

Path parameters for "{title}"

repName

string
必填
The name of the repository.

labelName

string
必填
The name of the label.

path

string
必填
The absolute path to the item within the label.

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/repos/{repName}/labels/{labelName}/contents/{path}"

Response example

{ "revisionId": 0, "type": "string", "size": 0, "name": "string", "path": "string", "changeset": 0, "branch": "string", "isUnderXlink": true, "xlinkTarget": { "changesetGuid": "string", "changesetId": 0, "repository": "string", "server": "string" }, "hash": "string", "content": "string", "items": [ { "revisionId": 0, "type": "string", "size": 0, "name": "string", "path": "string", "changeset": 0, "branch": "string", "isUnderXlink": true, "xlinkTarget": { "changesetGuid": "string", "changesetId": 0, "repository": "string", "server": "string" }, "hash": "string", "content": "string", "items": [ { "revisionId": 0, "type": "string", "size": 0, "name": "string", "path": "string", "changeset": 0, "branch": "string", "isUnderXlink": true, "xlinkTarget": { "changesetGuid": null, "changesetId": null, "repository": null, "server": null }, "hash": "string", "content": "string", "items": [ null ], "repository": { "name": null, "repId": null, "guid": null, "owner": null, "server": null } } ], "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" } } ], "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" }}

Get the revision history of a specific item in a label


Retrieve the revision history of an item in a label.

Path parameters for "{title}"

repName

string
必填
The name of the repository.

labelName

string
必填
The name of the label.

path

string
必填
The absolute path to the item within the label.

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/repos/{repName}/labels/{labelName}/history/{path}"

Response example

[ { "revisionId": 0, "type": "string", "owner": { "name": "string", "isGroup": true }, "creationDate": "2024-01-01T00:00:00Z", "comment": "string", "revisionLink": "string", "changesetId": 0, "changesetLink": "string", "branchName": "string", "branchLink": "string", "repositoryName": "string", "repositoryLink": "string" }]

Get a list of repositories


Retrieve a list of all repositories.

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/repos"

Response example

[ { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" }]

Create a new repository


This endpoint allows you to create a new repository.

Request body for "{title}"

Media Type:
application/json

name

string
必填
No description

server

string
No description

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X POST \ -H "Content-Type: application/json" \ -d '{ "name": "string", "server": "string"}' \ "http://localhost:9090/api/v1/repos"

Response example

{ "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string"}

Get a specific repository


Retrieve a specific repository by name.

Path parameters for "{title}"

repName

string
必填
The name of the repository.

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/repos/{repName}"

Response example

{ "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string"}

Delete a specific repository


This endpoint allows you to delete a specific repository by name.

Path parameters for "{title}"

repName

string
必填
The name of the repository.

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X DELETE \ "http://localhost:9090/api/v1/repos/{repName}"

Response example

Update a specific repository


This endpoint allows you to update a specific repository by name.

Path parameters for "{title}"

repName

string
必填
The name of the repository.

Request body for "{title}"

Media Type:
application/json

name

string
必填
The name of the repository

repId

object
The ID of a repository

id

integer
The ID of the repository

deprecatedModuleId

integer
[Deprecated] The module ID, if the repository is a submodule

guid

string
The globally unique identifier for the repository

owner

object
The owner of a repository or repository object

name

string
The name of the owner

isGroup

boolean
Indicates if the owner is a group

server

string
The server hosting the repository

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X PUT \ -H "Content-Type: application/json" \ -d '{ "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string"}' \ "http://localhost:9090/api/v1/repos/{repName}"

Response example

{ "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string"}

Revert an item to a previous revision


This endpoint allows you to revert an item in a workspace to a previous revision.

Path parameters for "{title}"

wkName

string
必填
The name of the workspace

path

string
必填
The path of the item to revert

Request body for "{title}"

Media Type:
application/json

changeset

integer
必填
No description

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X PUT \ -H "Content-Type: application/json" \ -d '{ "changeset": 0}' \ "http://localhost:9090/api/v1/wkspaces/{wkName}/revert/{path}"

Response example

{ "affectedPaths": [ "string" ]}

Get a specific revision


This endpoint retrieves a specific revision of a repository.

Path parameters for "{title}"

repName

string
必填
The name of the repository

revId

integer
必填
The ID of the revision

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/repos/{repName}/revisions/{revId}"

Response example

{ "revisionId": 0, "type": "string", "size": 0, "name": "string", "path": "string", "changeset": 0, "branch": "string", "isUnderXlink": true, "xlinkTarget": { "changesetGuid": "string", "changesetId": 0, "repository": "string", "server": "string" }, "hash": "string", "content": "string", "items": [ { "revisionId": 0, "type": "string", "size": 0, "name": "string", "path": "string", "changeset": 0, "branch": "string", "isUnderXlink": true, "xlinkTarget": { "changesetGuid": "string", "changesetId": 0, "repository": "string", "server": "string" }, "hash": "string", "content": "string", "items": [ { "revisionId": 0, "type": "string", "size": 0, "name": "string", "path": "string", "changeset": 0, "branch": "string", "isUnderXlink": true, "xlinkTarget": { "changesetGuid": null, "changesetId": null, "repository": null, "server": null }, "hash": "string", "content": "string", "items": [ null ], "repository": { "name": null, "repId": null, "guid": null, "owner": null, "server": null } } ], "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" } } ], "repository": { "name": "string", "repId": { "id": 0, "deprecatedModuleId": 0 }, "guid": "string", "owner": { "name": "string", "isGroup": true }, "server": "string" }}

Get the raw data of a specific revision


This endpoint retrieves the raw data (blob) of a specific revision in a repository.

Path parameters for "{title}"

repName

string
必填
The name of the repository

revId

integer
必填
The ID of the revision

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/repos/{repName}/revisions/{revId}/blob"

Response example

Undelete a workspace item


This endpoint restores a previously deleted item in a workspace.

Path parameters for "{title}"

wkName

string
必填
The name of the workspace

Request body for "{title}"

Media Type:
application/json

revSpec

string
必填
No description

path

string
必填
No description

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X POST \ -H "Content-Type: application/json" \ -d '{ "revSpec": "string", "path": "string"}' \ "http://localhost:9090/api/v1/wkspaces/{wkName}/undelete"

Response example

{ "affectedPaths": [ "string" ]}

Get workspace switch status


This endpoint retrieves the current switch status of a workspace.

Path parameters for "{title}"

wkName

string
必填
The name of the workspace

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/wkspaces/{wkName}/switch"

Response example

{ "status": "string", "message": "string"}

Switch workspace


This endpoint allows the user to switch a workspace to a different target (branch, label, changeset, or shelveset).

Path parameters for "{title}"

wkName

string
必填
The name of the workspace

Request body for "{title}"

Media Type:
application/json

objectType

string
必填
No description

object

string
必填
No description

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X POST \ -H "Content-Type: application/json" \ -d '{ "objectType": "string", "object": "string"}' \ "http://localhost:9090/api/v1/wkspaces/{wkName}/switch"

Response example

{ "status": "string", "message": "string"}

Get workspace update status


This endpoint retrieves the current update status of a workspace.

Path parameters for "{title}"

wkName

string
必填
The name of the workspace

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/wkspaces/{wkName}/update"

Response example

{ "status": "string", "message": "string"}

Update workspace


This endpoint allows the user to update the workspace.

Path parameters for "{title}"

wkName

string
必填
The name of the workspace

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X POST \ "http://localhost:9090/api/v1/wkspaces/{wkName}/update"

Response example

{ "status": "string", "message": "string"}

Partially configure workspace


This endpoint allows the user to partially configure (Gluon) the workspace.

Path parameters for "{title}"

wkName

string
必填
The name of the workspace

Request body for "{title}"

Media Type:
application/json

instructions

array[object]
必填
No description

path

string
必填
No description

action

string
必填
No description

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X POST \ -H "Content-Type: application/json" \ -d '{ "instructions": [ { "path": "string", "action": "Load" } ]}' \ "http://localhost:9090/api/v1/wkspaces/{wkName}/partialconfigure"

Response example

{ "status": "string", "message": "string"}

Merge changes from another object


This endpoint allows the user to merge changes from another branch or changeset into the current workspace.

Path parameters for "{title}"

wkName

string
必填
The name of the workspace

Request body for "{title}"

Media Type:
application/json

sourceSpec

string
必填
No description

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X POST \ -H "Content-Type: application/json" \ -d '{ "sourceSpec": "string"}' \ "http://localhost:9090/api/v1/wkspaces/{wkName}/merge"

Response example

{ "resultStatus": "AncestorCalculated", "success": true, "status": "string", "message": "string"}

Apply a shelveset


Apply a shelveset to the workspace

Path parameters for "{title}"

wkName

string
必填
The name of the workspace

shelvesetId

integer
必填
The ID of the shelveset to apply

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X PATCH \ "http://localhost:9090/api/v1/wkspaces/{wkName}/shelvesets/{shelvesetId}"

Response example

{ "conflicts": [ "string" ]}

Add item to version control


Mark a private or ignored item for inclusion in version control

Path parameters for "{title}"

wkName

string
必填
The name of the workspace

path

string
必填
The path of the item to add, relative to the workspace

Request body for "{title}"

Media Type:
application/json

recurse

boolean
Add items recursively if the targeted item is a directory.

addPrivateParents

boolean
Ensure all parents are added if the targeted item is not located in a path that is under version control.

checkoutParent

boolean
Perform a checkout of the containing parent for the targeted item.

ignoreFailed

boolean
Skip failures from items that couldn't be added, so that the operation doesn't fail because of that.

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X POST \ -H "Content-Type: application/json" \ -d '{ "recurse": true, "addPrivateParents": true, "checkoutParent": true, "ignoreFailed": true}' \ "http://localhost:9090/api/v1/wkspaces/{wkName}/content/{path}"

Response example

{ "affectedPaths": [ "string" ]}

Checkout item in version control


Checkout a specific item in the workspace. This operation marks the item as checked out and prepares it for editing. It can also cause the item to be locked, depending on the server configuration.

Path parameters for "{title}"

wkName

string
必填
The name of the workspace

path

string
必填
The path of the item to checkout, relative to the workspace

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X PUT \ "http://localhost:9090/api/v1/wkspaces/{wkName}/content/{path}"

Response example

{ "affectedPaths": [ "string" ]}

Move item in version control


Move a specific item within the workspace. This operation updates the item's location in version control and the workspace.

Path parameters for "{title}"

wkName

string
必填
The name of the workspace

path

string
必填
The path of the item to move, relative to the workspace

Request body for "{title}"

Media Type:
application/json

destination

string
必填
No description

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X PATCH \ -H "Content-Type: application/json" \ -d '{ "destination": "string"}' \ "http://localhost:9090/api/v1/wkspaces/{wkName}/content/{path}"

Response example

{ "affectedPaths": [ "string" ]}

Delete item from version control


Delete a specific item from the workspace. This operation removes the item from version control and the workspace.

Path parameters for "{title}"

wkName

string
必填
The name of the workspace

path

string
必填
The path of the item to delete, relative to the workspace

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X DELETE \ "http://localhost:9090/api/v1/wkspaces/{wkName}/content/{path}"

Response example

{ "affectedPaths": [ "string" ]}

Get all workspaces


Retrieve a list of all workspaces present in the local machine for the current user.

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/wkspaces"

Response example

[ { "name": "string", "guid": "string", "path": "string", "machineName": "string" }]

Create a new workspace


Create a new workspace in the local machine for the current user.

Request body for "{title}"

Media Type:
application/json

name

string
必填
No description

path

string
必填
No description

repository

string
No description

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X POST \ -H "Content-Type: application/json" \ -d '{ "name": "string", "path": "string", "repository": "string"}' \ "http://localhost:9090/api/v1/wkspaces"

Response example

{ "name": "string", "guid": "string", "path": "string", "machineName": "string"}

Get workspace details


Retrieve details about a specific workspace.

Path parameters for "{title}"

wkName

string
必填
The name of the workspace

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/wkspaces/{wkName}"

Response example

{ "name": "string", "guid": "string", "path": "string", "machineName": "string"}

Update workspace details


Update the details of a specific workspace.

Path parameters for "{title}"

wkName

string
必填
The name of the workspace

Request body for "{title}"

Media Type:
application/json

name

string
必填
No description

guid

string
No description

path

string
No description

machineName

string
No description

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X PATCH \ -H "Content-Type: application/json" \ -d '{ "name": "string", "guid": "string", "path": "string", "machineName": "string"}' \ "http://localhost:9090/api/v1/wkspaces/{wkName}"

Response example

{ "name": "string", "guid": "string", "path": "string", "machineName": "string"}

Delete a workspace


Delete a specific workspace.

Path parameters for "{title}"

wkName

string
必填
The name of the workspace

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X DELETE \ "http://localhost:9090/api/v1/wkspaces/{wkName}"

Response example

Get workspace item history


Retrieve the history of changes for a specific item in a workspace.

Path parameters for "{title}"

wkName

string
必填
The name of the workspace

path

string
必填
The path of the item in the workspace

HTTP response status codes for "{title}":

Code samples for "{title}":

Request example

curl -X GET \ "http://localhost:9090/api/v1/wkspaces/{wkName}/history/{path}"

Response example

[ { "revisionId": 0, "type": "string", "owner": { "name": "string", "isGroup": true }, "creationDate": "2024-01-01T00:00:00Z", "comment": "string", "revisionLink": "string", "changesetId": 0, "changesetLink": "string", "branchName": "string", "branchLink": "string", "repositoryName": "string", "repositoryLink": "string" }]

Copyright © 2026 Unity Technologies
法律信息隐私政策CookiesDocumentation Terms of Use请勿出售或分享我的个人信息您的隐私选择(Cookie 设置)

“Unity”、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属公司在美国和其他地方的商标或注册商标(此处查看更多信息)。其他名称或品牌是其各自所有者的商标。

为方便起见,一些页面是机器翻译的,可能包含不准确的内容。如有信息不一致的情况,以英文版本为准。