v2

latestOpenAPI 3.0.02026-08-07103189636.5 KB
Jobs

Create new custom field in account

Creates new custom field in account.

post/jobs-api/v3/accounts/{accountUid}/custom-fields

Path parameters

accountUidstring required

The account’s unique identifier. This can be found in the Smartling Dashboard under Account Settings > API.

Request body

typestring

custom field type.

fieldNameboolean

custom field name.

enabledboolean

is custom field enabled.

requiredboolean

is custom field required during job creation.

searchableboolean

can search be performed by the custom field.

displayToTranslatorsboolean

is displayed to translators.

optionsstring[]
defaultValuestring

default value for custom field.

descriptionstring

custom field description.

Example request

{
  "type": "SHORT_TEXT | LONG_TEXT | SELECTBOX | CHECKBOX",
  "enabled": true,
  "required": true,
  "searchable": true,
  "displayToTranslators": true,
  "defaultValue": "default field value",
  "description": "Custom field example"
}

Response

OK

Example response

{
  "data": {
    "fieldUid": "ngahq6dgh4ed",
    "type": "SHORT_TEXT | LONG_TEXT | SELECTBOX | CHECKBOX",
    "enabled": true,
    "required": true,
    "searchable": true,
    "displayToTranslators": true,
    "defaultValue": "default field value",
    "description": "Custom field example"
  }
}