Date field value
- cURL
- JSON
curl -X POST https://api.tapeapp.com/v1/record/app/1 \
-H "Authorization: Bearer $TAPE_TOKEN" \
-H "Content-Type: application/json" \
--data '{
"fields": {
"site_visit": "2026-03-10 08:30",
"installation_window": "2026-03-23 - 2026-03-27"
}
}'
{
"fields": {
"site_visit": "2026-03-10 08:30",
"installation_window": "2026-03-23 - 2026-03-27"
}
}
{
"record_id": 1,
"title": "Tuesday, 10. March 2026",
"fields": [
{
"field_id": 1,
"external_id": "site_visit",
"label": "Site Visit",
"type": "date",
"field_type": "single_date",
"values": [
{
"start": "2026-03-10 09:30:00",
"start_date": "2026-03-10",
"start_time": "09:30:00",
"start_utc": "2026-03-10 08:30:00",
"start_date_utc": "2026-03-10",
"start_time_utc": "08:30:00"
}
]
},
{
"field_id": 2,
"external_id": "installation_window",
"label": "Installation Window",
"type": "date",
"field_type": "range_date",
"values": [
{
"start": "2026-03-23 00:00:00",
"start_date": "2026-03-23",
"start_time": null,
"start_utc": "2026-03-23 00:00:00",
"start_date_utc": "2026-03-23",
"start_time_utc": null,
"end": "2026-03-27 00:00:00",
"end_date": "2026-03-27",
"end_time": null,
"end_utc": "2026-03-27 00:00:00",
"end_date_utc": "2026-03-27",
"end_time_utc": null
}
]
}
]
}
curl https://api.tapeapp.com/v1/record/1 \
-H "Authorization: Bearer $TAPE_TOKEN"
{
"record_id": 1,
"title": "Tuesday, 10. March 2026",
"fields": [
{
"field_id": 1,
"external_id": "site_visit",
"label": "Site Visit",
"type": "date",
"field_type": "single_date",
"values": [
{
"start": "2026-03-10 09:30:00",
"start_date": "2026-03-10",
"start_time": "09:30:00",
"start_utc": "2026-03-10 08:30:00",
"start_date_utc": "2026-03-10",
"start_time_utc": "08:30:00"
}
]
},
{
"field_id": 2,
"external_id": "installation_window",
"label": "Installation Window",
"type": "date",
"field_type": "range_date",
"values": [
{
"start": "2026-03-23 00:00:00",
"start_date": "2026-03-23",
"start_time": null,
"start_utc": "2026-03-23 00:00:00",
"start_date_utc": "2026-03-23",
"start_time_utc": null,
"end": "2026-03-27 00:00:00",
"end_date": "2026-03-27",
"end_time": null,
"end_utc": "2026-03-27 00:00:00",
"end_date_utc": "2026-03-27",
"end_time_utc": null
}
]
}
]
}
- cURL
- JSON
curl -X PUT "https://api.tapeapp.com/v1/record/1?apply_user_timezone_on_date_inputs=true" \
-H "Authorization: Bearer $TAPE_TOKEN" \
-H "Content-Type: application/json" \
--data '{
"fields": {
"site_visit": "2026-03-12 14:00",
"installation_window": { "start": "2026-03-30", "end": "2026-04-03" }
}
}'
{
"fields": {
"site_visit": "2026-03-12 14:00",
"installation_window": { "start": "2026-03-30", "end": "2026-04-03" }
}
}
{
"record_id": 1,
"title": "Thursday, 12. March 2026",
"fields": [
{
"field_id": 1,
"external_id": "site_visit",
"label": "Site Visit",
"type": "date",
"field_type": "single_date",
"values": [
{
"start": "2026-03-12 14:00:00",
"start_date": "2026-03-12",
"start_time": "14:00:00",
"start_utc": "2026-03-12 13:00:00",
"start_date_utc": "2026-03-12",
"start_time_utc": "13:00:00"
}
]
},
{
"field_id": 2,
"external_id": "installation_window",
"label": "Installation Window",
"type": "date",
"field_type": "range_date",
"values": [
{
"start": "2026-03-30 00:00:00",
"start_date": "2026-03-30",
"start_time": null,
"start_utc": "2026-03-30 00:00:00",
"start_date_utc": "2026-03-30",
"start_time_utc": null,
"end": "2026-04-03 00:00:00",
"end_date": "2026-04-03",
"end_time": null,
"end_utc": "2026-04-03 00:00:00",
"end_date_utc": "2026-04-03",
"end_time_utc": null
}
]
}
]
}
Use a date field value to read and write the dates and date ranges of a record.
The value of a date field is one object in values. It holds the start date in six properties: three in the timezone of the user who makes the request, three in UTC. A range_date value can add the same six properties for the end date.
For the formats and the timezone rules, see Date & timezone.
{
"field_id": 1,
"external_id": "site_visit",
"label": "Site Visit",
"type": "date",
"field_type": "single_date",
"values": [
{
"start": "2026-03-10 09:30:00",
"start_date": "2026-03-10",
"start_time": "09:30:00",
"start_utc": "2026-03-10 08:30:00",
"start_date_utc": "2026-03-10",
"start_time_utc": "08:30:00"
}
]
}
typestring
"date" for both date field types.
field_typestring
"single_date" or "range_date".
values[].startstring
Start as YYYY-MM-DD HH:mm:ss in your timezone.
values[].start_datestring
Date part of start.
values[].start_timestring or null
Time part of start. null for a whole calendar day.
values[].start_utcstring
Start in UTC.
values[].start_date_utcstring
Date part of start_utc.
values[].start_time_utcstring or null
Time part of start_utc. null for a whole calendar day.
values[].end, end_date, end_time, end_utc, end_date_utc, end_time_utcstring or null
range_date only, if the value has an end date. Same format as the start properties.
| Property | Type | Description | Example value |
|---|---|---|---|
type | string | "date" for both date field types. | "date" |
field_type | string | "single_date" or "range_date". | "single_date" |
values[].start | string | Start as YYYY-MM-DD HH:mm:ss in your timezone. | "2026-03-10 09:30:00" |
values[].start_date | string | Date part of start. | "2026-03-10" |
values[].start_time | string or null | Time part of start. null for a whole calendar day. | "09:30:00" |
values[].start_utc | string | Start in UTC. | "2026-03-10 08:30:00" |
values[].start_date_utc | string | Date part of start_utc. | "2026-03-10" |
values[].start_time_utc | string or null | Time part of start_utc. null for a whole calendar day. | "08:30:00" |
values[].end, end_date, end_time, end_utc, end_date_utc, end_time_utc | string or null | range_date only, if the value has an end date. Same format as the start properties. | "2026-04-17 00:00:00" |
A whole calendar day has start_time: null, and its local and UTC properties are equal. Tape doesn't convert a calendar day between timezones. See Calendar days.
Each field in a record response also contains the field's config. The examples on this page leave it out.
Record creation
Use the create record endpoint to set dates on a new record.
/v1/record/app/{app_id}api.tapeapp.com- cURL
- JSON
curl -X POST https://api.tapeapp.com/v1/record/app/1 \
-H "Authorization: Bearer $TAPE_TOKEN" \
-H "Content-Type: application/json" \
--data '{
"fields": {
"site_visit": "2026-03-10 08:30",
"installation_window": "2026-03-23 - 2026-03-27"
}
}'
{
"fields": {
"site_visit": "2026-03-10 08:30",
"installation_window": "2026-03-23 - 2026-03-27"
}
}
{
"record_id": 1,
"title": "Tuesday, 10. March 2026",
"fields": [
{
"field_id": 1,
"external_id": "site_visit",
"label": "Site Visit",
"type": "date",
"field_type": "single_date",
"values": [
{
"start": "2026-03-10 09:30:00",
"start_date": "2026-03-10",
"start_time": "09:30:00",
"start_utc": "2026-03-10 08:30:00",
"start_date_utc": "2026-03-10",
"start_time_utc": "08:30:00"
}
]
},
{
"field_id": 2,
"external_id": "installation_window",
"label": "Installation Window",
"type": "date",
"field_type": "range_date",
"values": [
{
"start": "2026-03-23 00:00:00",
"start_date": "2026-03-23",
"start_time": null,
"start_utc": "2026-03-23 00:00:00",
"start_date_utc": "2026-03-23",
"start_time_utc": null,
"end": "2026-03-27 00:00:00",
"end_date": "2026-03-27",
"end_time": null,
"end_utc": "2026-03-27 00:00:00",
"end_date_utc": "2026-03-27",
"end_time_utc": null
}
]
}
]
}
The example creates an installation with two fields. "Site Visit" (ID 1, type single_date, slug site_visit) has time enabled. "Installation Window" (ID 2, type range_date, slug installation_window) has time disabled.
The responses on this page belong to a user in the Europe/Berlin timezone (UTC+1 until daylight saving time starts on March 29, 2026).
General behavior
- Use the field ID or the field's slug (returned as
external_idin records) as the key infields. - Send
YYYY-MM-DDfor a whole calendar day andYYYY-MM-DD HH:mmorYYYY-MM-DD HH:mm:ssfor a point in time. - For a
range_datevalue, send"<start> - <end>"or an object withstartandend. Tape also readsstart_dateandend_date,start_utcandend_utc, and an array with one value. - For a
single_datevalue, don't send onlystart_dateandstart_time. Tape then saves no value and returns no error. Usestartorstart_utcfor a date with time. - Tape reads a point in time without an offset as UTC. Here,
08:30UTC reads back as09:30in Berlin. - To send a time in another timezone, add its offset, like
2026-03-10 09:30:00+01:00. - To send your local time without an offset, add the query parameter
apply_user_timezone_on_date_inputs=true. Tape never shiftsstart_utc,end_utcor a value with its own offset. - The
timesetting of the field decides what Tape stores. With"disabled", Tape keeps only the date. With"required", a bare date becomes midnight UTC. With"enabled", Tape stores what you send. - You can write a value from a record response back unchanged. Its
_utcproperties take precedence.
Requirements: records:edit. Works with a personal access token, an OAuth access token or a user API key.
Errors
- A value without an end date returns
400if therange_datefield has"end": "required". - A start after the end returns
400. - An end date without a start date returns
400.
See Errors for all error codes.
Record retrieval
Use the retrieve record endpoint to read the dates of a record.
/v1/record/{record_id}api.tapeapp.comcurl https://api.tapeapp.com/v1/record/1 \
-H "Authorization: Bearer $TAPE_TOKEN"
{
"record_id": 1,
"title": "Tuesday, 10. March 2026",
"fields": [
{
"field_id": 1,
"external_id": "site_visit",
"label": "Site Visit",
"type": "date",
"field_type": "single_date",
"values": [
{
"start": "2026-03-10 09:30:00",
"start_date": "2026-03-10",
"start_time": "09:30:00",
"start_utc": "2026-03-10 08:30:00",
"start_date_utc": "2026-03-10",
"start_time_utc": "08:30:00"
}
]
},
{
"field_id": 2,
"external_id": "installation_window",
"label": "Installation Window",
"type": "date",
"field_type": "range_date",
"values": [
{
"start": "2026-03-23 00:00:00",
"start_date": "2026-03-23",
"start_time": null,
"start_utc": "2026-03-23 00:00:00",
"start_date_utc": "2026-03-23",
"start_time_utc": null,
"end": "2026-03-27 00:00:00",
"end_date": "2026-03-27",
"end_time": null,
"end_utc": "2026-03-27 00:00:00",
"end_date_utc": "2026-03-27",
"end_time_utc": null
}
]
}
]
}
General behavior
- Tape returns the unsuffixed properties in the timezone setting of the user who owns the token. The
_utcproperties are the same for every user.
Requirements: records:read. Works with a personal access token, an OAuth access token or a user API key.
Record update
Use the update record endpoint to change the dates of a record.
/v1/record/{record_id}api.tapeapp.com- cURL
- JSON
curl -X PUT "https://api.tapeapp.com/v1/record/1?apply_user_timezone_on_date_inputs=true" \
-H "Authorization: Bearer $TAPE_TOKEN" \
-H "Content-Type: application/json" \
--data '{
"fields": {
"site_visit": "2026-03-12 14:00",
"installation_window": { "start": "2026-03-30", "end": "2026-04-03" }
}
}'
{
"fields": {
"site_visit": "2026-03-12 14:00",
"installation_window": { "start": "2026-03-30", "end": "2026-04-03" }
}
}
{
"record_id": 1,
"title": "Thursday, 12. March 2026",
"fields": [
{
"field_id": 1,
"external_id": "site_visit",
"label": "Site Visit",
"type": "date",
"field_type": "single_date",
"values": [
{
"start": "2026-03-12 14:00:00",
"start_date": "2026-03-12",
"start_time": "14:00:00",
"start_utc": "2026-03-12 13:00:00",
"start_date_utc": "2026-03-12",
"start_time_utc": "13:00:00"
}
]
},
{
"field_id": 2,
"external_id": "installation_window",
"label": "Installation Window",
"type": "date",
"field_type": "range_date",
"values": [
{
"start": "2026-03-30 00:00:00",
"start_date": "2026-03-30",
"start_time": null,
"start_utc": "2026-03-30 00:00:00",
"start_date_utc": "2026-03-30",
"start_time_utc": null,
"end": "2026-04-03 00:00:00",
"end_date": "2026-04-03",
"end_time": null,
"end_utc": "2026-04-03 00:00:00",
"end_date_utc": "2026-04-03",
"end_time_utc": null
}
]
}
]
}
The example moves the site visit of the record with ID 1 to 14:00 Berlin time and the installation to the following week. It adds apply_user_timezone_on_date_inputs=true, so Tape reads 14:00 in the user's timezone. The range uses the object form.
General behavior
- The new date replaces the old date.
- To clear the field, send
null. - You can't clear a required field. The request returns
400. - Fields that aren't in the request keep their values.
{
"fields": {
"installation_window": null
}
}
A cleared field isn't in the fields of the response.
Requirements: records:edit. Works with a personal access token, an OAuth access token or a user API key.
Errors
Same errors as under Record creation.
See Errors for all error codes.