Reorder project custom fields
Updates the display order of project custom fields by providing an ordered array of field IDs.
How it works:
- Provide an array of custom field IDs in the desired display order
- The first ID in the array will have sort order 0, second will have 1, etc.
- Fields not included in the array will maintain their current sort order
Example: If you provide [“field-3”, “field-1”, “field-2”], then:
- field-3 will appear first in project forms
- field-1 will appear second
- field-2 will appear third
Note: This affects the order in which custom fields appear in project creation and editing forms.
POST
/administration/project-settings/custom-fields/sortAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredRequest body
requiredapplication/jsonidsstring[]requiredArray of custom field IDs in the desired order
Responses
200Project custom fields reordered successfully
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X POST "https://leadtime.app/api/public/administration/project-settings/custom-fields/sort" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"ids": [
"field-1",
"field-2",
"field-3"
]
}'const response = await fetch("https://leadtime.app/api/public/administration/project-settings/custom-fields/sort", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"ids": [
"field-1",
"field-2",
"field-3"
]
})
});import requests
response = requests.post(
"https://leadtime.app/api/public/administration/project-settings/custom-fields/sort",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
json={
"ids": [
"field-1",
"field-2",
"field-3"
]
},
)Response
Project custom fields reordered successfully
Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions