Get field options
POST/field/options
Function Overview
-
Get option data for specified fields, supporting multiple field types (options, members, projects, etc.).
-
Supports keyword search, UUID filtering, field selection and other functions.
-
Different field types return different field structures, such as option types containing color information, member types containing avatars, etc.
Common Usage
- Get priority options: Returns option list containing
uuid,value,background_color,color - Get member list: Returns user information containing
uuid,name,avatar - Get project list: Returns project information containing
uuid,name,status
Example
{
"field_uuid": "field012",
"include_fields": ["uuid", "value", "background_color", "color"],
"keyword": "",
"limit": 100
}
Request
Query Parameters
The team ID
- application/json
Body
Field UUID
Specify list of option UUIDs to return
Specify list of fields to return
Keyword search
Default value: 20
Return quantity limit
Default value: 0
Offset
Responses
- 200
- 401
- 403
- 404
- 500
Request successful
Response Example
[
{
"uuid": "TcCM4kwC",
"value": "Highest",
"background_color": "#e63422",
"color": "#FFFFFF"
},
{
"uuid": "QA5U45FD",
"value": "High",
"background_color": "#ffe9e2",
"color": "#ff6a39"
},
{
"uuid": "BcDf5gHi",
"value": "Medium",
"background_color": "#ffd700",
"color": "#000000"
}
]
Field Description
uuid: Unique identifier of the optionvalue: Display name of the optionbackground_color: Background color of the option (hexadecimal)color: Text color of the option (hexadecimal)
Note: Different field types may return different field structures. The above example is for option-type fields.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Field option object, field structure varies by field type
[
{}
]
Returned if the authentication credentials are incorrect or missing.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Unauthorized",
"errorMsg": "Access token is invalid"
}
Returns if the scope check fails.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Forbidden",
"errorMsg": "Scope is invalid"
}
Returned if the resource object was not found.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "NotFound",
"errorMsg": "Not Found"
}
Internal Server Error.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Internal Server Error",
"errorMsg": "Internal Server Error"
}