Create a new user Custom Field.
post
/learn.rest/v1/learnCenters/{learnCenterId}/userCustomFields
Create a new user Custom Field.
Request
Supported Media Types
- application/json
Path Parameters
-
learnCenterId(required): number
Unique identifier of a LearnCenter.
Custom field object that has to be created.
Root Schema : User Custom Fields
Type:
Show Source
object
-
defaultValue:
string
Default Value:Example:
n/a
-
elementOptions:
array elementOptions
-
elementShowSelectOne:
boolean
Default Value:
false
Example:false
-
elementType(required):
string
Default Value:
textbox
Example:radio
-
name(required):
string
Example:
User Custom Field 1
- sharedFlag: boolean
-
status:
string
Default Value:
active
Allowed Values:[ "active", "inactive" ]
Example:active
Nested Schema : UserCustomFieldElementOptionsLink
Type:
Show Source
object
-
isDefault:
boolean
Example:
false
-
value:
string
Example:
first value
Response
Supported Media Types
- application/xml
- application/json
201 Response
New user Custom Field resource created.
Root Schema : User Custom Fields
Type:
Show Source
object
-
defaultValue:
string
Example:
n/a
-
elementOptions:
array elementOptions
-
elementShowSelectOne:
boolean
Example:
false
-
elementType:
string
Example:
radio
-
id:
number
Example:
123
-
learnCenter:
object learnCenter
-
learnCenterId:
string
Example:
178409
-
links:
object UserCustomFieldLink
-
name:
string
Example:
User Custom Field 1
- sharedFlag: boolean
-
status:
string
Allowed Values:
[ "active", "inactive" ]
Example:active
Nested Schema : UserCustomFieldLink
Type:
Show Source
object
Example:
{
"rel":"canonical",
"href":"https://{url}/learn.rest/v1/learnCenters/178409/userCustomFields/102"
}
Nested Schema : UserCustomFieldElementOptionsLink
Type:
Show Source
object
-
isDefault:
boolean
Example:
false
-
value:
string
Example:
first value
Nested Schema : LearnCenterLink
Type:
Show Source
object
-
href:
string
Example:
{url}/learn.rest/v1/learnCenters/178409
-
rel:
string
Example:
canonical
400 Response
Request has incorrect syntax or does not contain a field that is required.
409 Response
Another resource with the same identifier already exists.
422 Response
Request may contain validation errors.
500 Response
Internal server error.