Skip to content

List custom fields

listFields

GET /api/v1/fields

Scope: foldr.readRate cost: 1

The custom fields the person can see, across their shares

Terminal window
curl "$FOLDR/api/v1/fields" \
-H "Authorization: Bearer $TOKEN"

$FOLDR is your site’s address (for example https://files.example.com) and $TOKEN is an access token. See Getting access.

StatusMeaningBody
200Every matching Field.application/json: array of Field

A JSON array of Field.

FieldTypeDescription
idstring (uuid)Required. The field’s id. Always a uuid.
namestringRequired. The field’s name.
typestringRequired. What kind of value it holds. New values may appear. Known values: string, text, number, bool, date, location, select, signature, delegate. Clients must accept values not listed here.
optionsarray or nullRequired. The values it may take, where it has a fixed list (on at least one of the person’s shares); otherwise null.
multiplebooleanRequired. Whether a file can carry more than one value of it.
read_onlybooleanRequired. True when the person may not set it on any of their shares.

Example:

[
{
"id": "0191f2c4-8a1e-7b52-9d3a-5c1e0b7a4d21",
"name": "string",
"type": "string",
"options": [
"string"
],
"multiple": false,
"read_only": false
}
]

Every error is an application/problem+json document (ProblemDetails); branch on its type or code. See Errors.

StatusProblem typesWhen
400invalid-requestInvalid request (invalid-request).
401invalid-tokenInvalid token (invalid-token).
403insufficient-scopeInsufficient scope (insufficient-scope).
429rate-limitedToo many requests (rate-limited).
500internal-errorInternal error (internal-error).