|
Method
|
PUT
|
|
URL
|
/v2/<object_full_identifier>/fields
|
|
Parameters
|
|
|
Response Content Type
|
application/json
|
PUT https://localhost:8080/v2/io_showcase/fields
[{
"io_full_identifier":"io_test_field",
"io_short_description": "used by showcase object"
}
]
PUT https://localhost:8080/v2/io_showcase/fields
[{
"io_full_identifier":"io_test_rel_field",
"io_short_description": "used by showcase object",
"relationship": {
"targets":["io_user", "io_role"]
}
}
]
|
|
If you modify the number of targets objects for the relationship, the related field data type might change from Relationship to Dynamic Relationship or the reverse. Only this data type change is valid and supported by the API. When this field data type change occurs, field options are recreated accordingly.
|
PUT https://localhost:8080/v2/io_showcase/fields
[{
"io_full_identifier":"io_test_option_list_field",
"options":[
{
"io_name": "Option 1",
"io_identifier": "option1",
"io_ordering_position":1
},
{
"io_name": "Option 2",
"io_identifier": "option2",
"io_ordering_position":2
},
{
"io_name": "Option 4",
"io_identifier": "option4",
"io_ordering_position":4
}
]
}
]
PUT https://localhost:8080/v2/io_showcase/fields
[{
"io_full_identifier":"io_test_field",
"io_short_description": "used by showcase object",
"io_required": true,
"io_update_safe": true
},
{
"io_full_identifier":"io_test_rel_field",
"io_short_description": "used by showcase object",
"io_update_safe": true,
"relationship": {
"targets":["io_user", "io_role", "io_group"]
}
},
{
"io_full_identifier":"io_test_option_list_field",
"io_application": "Max Designer",
"options":[
{
"io_name": "Option 1",
"io_identifier": "option1",
"io_ordering_position":1
},
{
"io_name": "Option 2",
"io_identifier": "option2",
"io_ordering_position":2
}]
}
]
|
HTTP Status Code
|
Error Message
|
|---|---|
|
400
|
The body of the request is empty
|
|
400
|
The body of the request has invalid format
|
|
400
|
The required parameters are not informed
|
|
500
|
Body: Error Creating Fields. Exception={...} or any validation error
Status: Internal Server error
|