observation-js Documentation - v1.16.0
    Preparing search index...

    Class Transects

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Creates a new transect (legacy V1).

      Sends a POST request to the create-or-update endpoint. If a transect with the given uuid already exists, the API responds with HTTP 409.

      Parameters

      Returns Promise<Transect>

      A promise that resolves to the created transect.

      If the request is not authenticated.

      If the request fails (e.g. 409 if the uuid exists).

    • Creates or updates a transect (legacy V1).

      Sends a PUT request to the create-or-update endpoint. A uuid is mandatory; the transect identified by that uuid is updated, or created if it does not yet exist.

      Parameters

      • payload: TransectPayload

        The writable transect data. The uuid is mandatory.

      Returns Promise<Transect>

      A promise that resolves to the updated (or created) transect.

      If the request is not authenticated.

      If the request fails.