create_payload: Create API Data Payload

View source: R/payloads.R

create_payloadR Documentation

Create API Data Payload

Description

This function creates a nested list in the correct structure to be converted to JSON and delivered to the API

Usage

create_payload(end_pt, ...)

Arguments

end_pt

character, the name of the API end point to create a payload for

...

key = value pairs for creating the JSON payload

Details

For /api/create/network and /api/create/batch, the antenna and tag data must first be coerced into the proper format via create_antenna_data() and create_batch_tag_data(), respectively.

Value

list

Author(s)

Matt Espe


fishsciences/telemetry documentation built on May 31, 2024, 10:13 a.m.