v1

latestOpenAPI 3.0.32026-07-17136180270.3 KB
Git

Get workspace file content

Get workspace file content. Returns the requested resource or collection for the authenticated caller.

get/api/projects/{projectId}/workspaces/{workspaceId}/git/file

Path parameters

projectIdstring required

Project identifier used to scope the request.

workspaceIdstring required

Workspace identifier within the project.

Query parameters

pathstring required

File or directory path relative to the workspace or session root.

refstring

Git revision or ref to read from.

Response

File content

pathstring

File system path or repository-relative path.

contentstring

Text content for a file or payload.

encodingstring

encoding value for the file Content Response object.