Zum Inhalt springen

The code a new sheet of a type would probably get

GET
/api/v1/sheets/next-code
curl --request GET \
--url 'https://example.com/api/v1/sheets/next-code?type=example' \
--header 'X-Label-Hub-Key: <X-Label-Hub-Key>'
type
required
Type

Sheet type key.

string
<= 64 characters

Sheet type key.

Successful Response

Media typeapplication/json
NextCode
object
code
required
Code
string
hint
required
Hint

A hint, not a reservation (spec 10.1).

string
Allowed value: probable

Example

{
"hint": "probable"
}

Sheet type not found.

Media typeapplication/json
object
detail
required
object
error_code
required
string
error_detail
Any of:
object
key
additional properties
any
error_message
required
string

Example generated

{
"detail": {
"error_code": "example",
"error_detail": {},
"error_message": "example"
}
}

Validation Error

Media typeapplication/json
object
detail
required
object
error_code
required
string
error_detail
Any of:
object
key
additional properties
any
error_message
required
string

Example generated

{
"detail": {
"error_code": "example",
"error_detail": {},
"error_message": "example"
}
}