git-integration
Git Integration

Link Repository To Asset

Link a git repository to an asset.

Args: asset_id: Asset public ID (UUID or name) link_data: Link creation data ctx: Application context with session, user, and company info

Returns: StandardResponse with created link

post/api/v1/assets/{asset_id}/repositories

Request

  • Base URL: http://localhost:8000
  • URL: http://localhost:8000/api/v1/assets/{asset_id}/repositories
  • Auth: none declared

Path parameters

asset_idstring required

Headers

Authorizationstring

Request body

repository_idstring required

Repository public ID (UUID)

enabledboolean

Enable analysis for this asset

lookback_daysinteger

Git history lookback period in days

Response

Successful Response

successboolean required
dataunknown
messagestring nullable
errorstring nullable
metaobject nullable

Changes

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