Skip to main content
POST
/
v1
/
assets
/
{assetTypeName}
/
{assetId}
/
revisions
/
{revisionId}
/
restore
Restore an Asset to a Revision
curl --request POST \
  --url https://api.us.lexful.app/v1/assets/{assetTypeName}/{assetId}/revisions/{revisionId}/restore \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Account-ID: <api-key>'
{
  "data": {
    "id": "019983a9-c4c0-73af-aec9-463feeadc2e7",
    "organization_id": "019983a9-c4bf-77da-a35b-5eb177b7b859",
    "organization_name": "Acme Corporation",
    "visibility": "inherit",
    "owned_by": "019983a9-c4c0-73af-aec9-463feeadc2e7",
    "name": "John Doe",
    "first_name": "John",
    "last_name": "Doe",
    "title": "CTO",
    "important": true,
    "contact_type": "Decision Maker",
    "contact_methods": [
      {
        "type": "Email",
        "value": "john.doe@example.com"
      },
      {
        "type": "Mobile",
        "value": "+1-555-0123"
      }
    ],
    "preferred_contact_method": "Email",
    "references": {
      "location": "019983a9-c4c1-7abc-def0-123456789abc"
    },
    "created_at": "2024-01-15T10:30:00.000Z",
    "updated_at": "2024-01-20T14:45:00.000Z",
    "created_by": "019983a9-c4c0-73af-aec9-463feeadc2e7",
    "updated_by": "019983a9-c4c0-73af-aec9-463feeadc2e7"
  },
  "skipped": [
    "<string>"
  ],
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

Bearer token

X-Account-ID
string
header
required

Account ID

Path Parameters

assetTypeName
string
required

Asset type name

assetId
string<uuid>
required

Asset ID

revisionId
string<uuid>
required

Revision ID to restore to

Response

Default Response

data
object
required

Asset with dynamic properties from asset type definition spread at root level

Example:
{
"id": "019983a9-c4c0-73af-aec9-463feeadc2e7",
"organization_id": "019983a9-c4bf-77da-a35b-5eb177b7b859",
"organization_name": "Acme Corporation",
"visibility": "inherit",
"owned_by": "019983a9-c4c0-73af-aec9-463feeadc2e7",
"name": "John Doe",
"first_name": "John",
"last_name": "Doe",
"title": "CTO",
"important": true,
"contact_type": "Decision Maker",
"contact_methods": [
{
"type": "Email",
"value": "john.doe@example.com"
},
{ "type": "Mobile", "value": "+1-555-0123" }
],
"preferred_contact_method": "Email",
"references": {
"location": "019983a9-c4c1-7abc-def0-123456789abc"
},
"created_at": "2024-01-15T10:30:00.000Z",
"updated_at": "2024-01-20T14:45:00.000Z",
"created_by": "019983a9-c4c0-73af-aec9-463feeadc2e7",
"updated_by": "019983a9-c4c0-73af-aec9-463feeadc2e7"
}
skipped
string[]
required

Property names present in the revision but no longer in the entity type schema; not restored.

id
string<uuid>
required

ID of the new revision created by this restore. Clients can use it to navigate to the post-restore state.