Up - API Reference - Home
Requires JWT
Copy a field.
All properties are copied, and the field is marked as new. Before use, you must commit it - until then you can keep modifying it.
Note: you cannot copy a new or modified field
POST /api/p/<project gid>/fields/copy
Authorization: Bearer <JWT>
{
"field": "<field gid>"
}
field
the field to copy
Authorization: <JWT>
{
"success": true,
"result": {
"field": "<field copy gid>"
},
"data": {
"fields": {
"<field copy gid>": {…}
}
}
}
field
the copy of the field.
fields
Field info with name, type, options.
400
Bad request - missing parameters or wrong type or value
401
Unauthorized - missing or expired JWT
403
Forbidden - not a member of this project
422
Unprocessable entity - can't work with this item