- HTTP request
- Query parameters
- Request body
- Response body
- Authorization scopes
- FieldLimits
- TextLimits
- LongTextLimits
- IntegerLimits
- DateLimits
- UserLimits
- ListLimits
- SelectionLimits
- Try it!
Get the constraints on the structure of a Label; such as, the maximum number of Fields allowed and maximum length of the label title.
HTTP request
GET https://drivelabels.googleapis.com/v2beta/limits/label
The URL uses gRPC Transcoding syntax.
Query parameters
Parameters | |
---|---|
name |
Required. Label revision resource name Must be: "limits/label" |
Request body
The request body must be empty.
Response body
Label constraints governing the structure of a Label; such as, the maximum number of Fields allowed and maximum length of the label title.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"name": string,
"maxTitleLength": integer,
"maxDescriptionLength": integer,
"maxFields": integer,
"maxDeletedFields": integer,
"maxDraftRevisions": integer,
"fieldLimits": {
object ( |
Fields | |
---|---|
name |
Resource name. |
maxTitleLength |
The maximum number of characters allowed for the title. |
maxDescriptionLength |
The maximum number of characters allowed for the description. |
maxFields |
The maximum number of Fields allowed within the label. |
maxDeletedFields |
The maximum number of published Fields that can be deleted. |
maxDraftRevisions |
The maximum number of draft revisions that will be kept before deleting old drafts. |
fieldLimits |
The limits for Fields. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/drive.labels
https://www.googleapis.com/auth/drive.labels.readonly
https://www.googleapis.com/auth/drive.admin.labels
https://www.googleapis.com/auth/drive.admin.labels.readonly
For more information, see the Authorization guide.
FieldLimits
Field constants governing the structure of a Field; such as, the maximum title length, minimum and maximum field values or length, etc.
JSON representation |
---|
{ "maxIdLength": integer, "maxDisplayNameLength": integer, "maxDescriptionLength": integer, "textLimits": { object ( |
Fields | |
---|---|
maxIdLength |
Max length for the id. |
maxDisplayNameLength |
Limits for Field title. |
maxDescriptionLength |
Limits for Field description, also called help text. |
textLimits |
The relevant limits for the specified Field.Type. Text Field limits. |
longTextLimits |
Long text Field limits. |
integerLimits |
Integer Field limits. |
dateLimits |
Date Field limits. |
userLimits |
User Field limits. |
selectionLimits |
Selection Field limits. |
TextLimits
Limits for text Field type.
JSON representation |
---|
{ "minLength": integer, "maxLength": integer } |
Fields | |
---|---|
minLength |
Minimum length allowed for a text Field type. |
maxLength |
Maximum length allowed for a text Field type. |
LongTextLimits
Limits for long text Field type.
JSON representation |
---|
{ "minLength": integer, "maxLength": integer } |
Fields | |
---|---|
minLength |
Minimum length allowed for a long text Field type. |
maxLength |
Maximum length allowed for a long text Field type. |
IntegerLimits
Limits for integer Field type.
JSON representation |
---|
{ "minValue": string, "maxValue": string } |
Fields | |
---|---|
minValue |
Minimum value for an integer Field type. |
maxValue |
Maximum value for an integer Field type. |
DateLimits
Limits for date Field type.
JSON representation |
---|
{ "minValue": { object ( |
Fields | |
---|---|
minValue |
Minimum value for the date Field type. |
maxValue |
Maximum value for the date Field type. |
UserLimits
Limits for Field.Type.USER.
JSON representation |
---|
{
"listLimits": {
object ( |
Fields | |
---|---|
listLimits |
Limits for list-variant of a Field type. |
ListLimits
Limits for list-variant of a Field type.
JSON representation |
---|
{ "maxEntries": integer } |
Fields | |
---|---|
maxEntries |
Maximum number of values allowed for the Field type. |
SelectionLimits
Limits for selection Field type.
JSON representation |
---|
{
"listLimits": {
object ( |
Fields | |
---|---|
listLimits |
Limits for list-variant of a Field type. |
maxIdLength |
Maximum ID length for a selection options. |
maxDisplayNameLength |
Maximum length for display name. |
maxChoices |
The max number of choices. |
maxDeletedChoices |
Maximum number of deleted choices. |