project

Generate Share Link

Generate a share link for a project (idempotent).

If an active share link already exists, returns it. Otherwise creates a new one with a unique token. Requires write access to the project.

Args: project_id: UUID of the project (validated for write access) share_service: ProjectShareService for share link operations

Returns: Share link details including full URL, token, and status

post/api/v1/project/{project_id}/share

Request body

duration_daysinteger
consumer_domain_overrideboolean

Response

Successful Response

share_urlstring required
share_tokenstring required
is_activeboolean required
view_countinteger required
created_atstring date-time nullable
access_mode'geometry_only' | 'gated' required
duration_daysinteger nullable
expires_atstring date-time nullable
consumer_domain_overrideboolean

Changes

Changed in 1 of the 15 revisions of this API.6

    • added optional request body

      request-body-added-optional

    • added the non-success response with the status 422

      response-non-success-status-added

    • added the optional property consumer_domain_override to the response with the 200 status

      response-optional-property-added

    • added the optional property duration_days to the response with the 200 status

      response-optional-property-added

    • added the optional property expires_at to the response with the 200 status

      response-optional-property-added

    • added the required property access_mode to the response with the 200 status

      response-required-property-added