Skip to content

Update record

PATCH
/api/v1/records/{record_id}
curl --request PATCH \
--url https://app.ayna.com/api/v1/records/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "description": "example", "tags": [ "example" ], "category": "example", "document_type": "example", "status": "example", "structured_data": {}, "effective_date": "example", "expires_at": "example", "requires_renewal": true, "retention_policy": "example" }'

Update record metadata.

record_id
required
Record Id
string
Media typeapplication/json
RecordUpdateRequest

Request to update a record.

object
description
Any of:
string
tags
Any of:
Array<string>
category
Any of:
string
document_type
Any of:
string
status
Any of:
string
structured_data
Any of:
object
key
additional properties
any
effective_date
Any of:
string
expires_at
Any of:
string
requires_renewal
Any of:
boolean
retention_policy
Any of:
string

Example generated

{
"description": "example",
"tags": [
"example"
],
"category": "example",
"document_type": "example",
"status": "example",
"structured_data": {},
"effective_date": "example",
"expires_at": "example",
"requires_renewal": true,
"retention_policy": "example"
}

OK

Media typeapplication/json
Response
object
key
additional properties
any

Example generated

{}