The code a new sheet of a type would probably get
GET
/api/v1/sheets/next-code
const url = 'https://example.com/api/v1/sheets/next-code?type=example';const options = {method: 'GET', headers: {'X-Label-Hub-Key': '<X-Label-Hub-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/sheets/next-code?type=example' \ --header 'X-Label-Hub-Key: <X-Label-Hub-Key>'Authorizations
Abschnitt betitelt „Authorizations“Parameters
Abschnitt betitelt „Parameters“Query Parameters
Abschnitt betitelt „Query Parameters“type
required
Type
Sheet type key.
string
Sheet type key.
Responses
Abschnitt betitelt „Responses“Successful Response
Media typeapplication/json
NextCode
object
code
required
Code
string
hint
required
Hint
A hint, not a reservation (spec 10.1).
string
Example
{ "hint": "probable"}Sheet type not found.
Validation Error