Create a Field
Changed onCreate a custom field for PROJECT, TASK, USER, or COMPANY object types. fieldType NOTE is allowed for PROJECT and COMPANY. For NOTE fields, optional fieldOptions are stored as tags.
Request
- Base URLhttps://api.rocketlane.com/api
- AuthAPI key in header api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
This query parameter allows you to specify which field properties should be returned in the response body by selecting from the drop down. To get the relevant field properties, use comma separated values. If this field is left blank, the default properties are returned.
This query parameter allows you to specify if all the field properties should be returned in the response body. If the field is left blank, the default field properties are returned.
Request body
Example request
{
"fieldId": 201,
"fieldLabel": "Priority",
"fieldDescription": "Priority of the bug.",
"fieldType": "MULTI_LINE_TEXT",
"objectType": "PROJECT",
"fieldOptions": [
{
"optionColor": "RED",
"optionLabel": "High"
}
],
"ratingScale": "THREE"
}Response
The resource was successfully created in the database.
Example response
{
"fieldId": 201,
"fieldLabel": "MRR",
"fieldDescription": "Priority of the bug.",
"fieldType": "MULTI_LINE_TEXT",
"objectType": "TASK",
"fieldOptions": [
{
"optionValue": 2,
"optionLabel": "Todo",
"optionColor": "RED"
}
],
"ratingScale": "THREE",
"createdBy": {
"emailId": "john.doe@rocketlane.com",
"userId": 201,
"firstName": "John",
"lastName": "Doe"
},
"updatedBy": {
"emailId": "john.doe@rocketlane.com",
"userId": 201,
"firstName": "John",
"lastName": "Doe"
},
"createdAt": 1681319726000,
"updatedAt": 1681319726000
}Changes
- info
added the new
BUDGETenum value to the request property - info
added the new
COMPANYenum value to the request property
- info