Skip to main content

Number Field Value

A number field value consists of its value property of type number. The value is a decimal like 1, 1.0 or 1.5. A number field value holds at most one value.

Record creation

POSThttps://api.tapeapp.com/v1/record/app/{app_id}

A number field value can be created as part of a record creation. Here is an example request body for creating a record with a value for the "Salary" field with ID 2, type number and external ID salary:

➡️    Request
curl -X POST https://api.tapeapp.com/v1/record/app/1 \
-u user_key_replace_with_your_api_key: \
-H "Content-Type: application/json" \
--data '{
"fields": {
"salary": 2000
}
}'
⬅️    Response
{
"record_id": 1,
"title": "2000$",
"fields": [
{
"field_Id": 2,
"external_id": "salary",
"type": "number",
"field_type": "number",
"label": "Salary",
"values": [{ "value": 2000 }]
}
]
}

Record retrieval

GEThttps://api.tapeapp.com/v1/record/{record_id}

A number field value can be retrieved as part of a record retrieval:

➡️    Request
curl https://api.tapeapp.com/v1/record/1 \
-u user_key_replace_with_your_api_key:
⬅️    Response
{
"record_id": 1,
"title": "2000$",
"fields": [
{
"field_Id": 2,
"external_id": "salary",
"type": "number",
"field_type": "number",
"label": "Salary",
"values": [{ "value": 2000 }]
}
]
}

Record update

PUThttps://api.tapeapp.com/v1/record/{record_id}

One or more number field values can be updated as part of a record update. Here is an example request body for updating a record with a value for the "Salary" field with ID 2, type number and external ID salary:

➡️    Request
curl -X PUT https://api.tapeapp.com/v1/record/1 \
-u user_key_replace_with_your_api_key: \
-H "Content-Type: application/json" \
--data '{
"fields": {
"salary": 4000
}
}'
⬅️    Response
{
"record_id": 1,
"title": "4000$",
"fields": [
{
"field_Id": 2,
"external_id": "salary",
"type": "number",
"field_type": "number",
"label": "Salary",
"values": [{ "value": 4000 }]
}
]
}