to navigate · to open See all results
POST /api/v1/assets/{record}/warranties

Add an asset warranty

Attach a warranty with its coverage dates and cost.

Last updated

Request

POST /api/v1/assets/{record}/warranties

Requires assets:lifecycle. See token permissions. Every listed permission is required for this endpoint.

Send Authorization: Bearer YOUR_API_TOKEN and Accept: application/json. Send request bodies as JSON with Content-Type: application/json. This workflow write requires Idempotency-Key. Reuse the same key only when retrying the same action.

record is the numeric asset ID in your token’s organization.

Request body

Field Type Usage
name string Required. Up to 255 characters.
start_date string Required. YYYY-MM-DD.
end_date string or null Optional. YYYY-MM-DD, on or after start_date.
description string or null Optional. Plain text, up to 10,000 characters.
cost number or null Optional. 0–999,999,999.99.
billing_frequency string or null Optional. monthly, Quarterly, yearly, or upfront.

Example

Set ASSETCENTER_API_TOKEN as described in the quick start. Replace example record and option IDs with values from your organization. Set IDEMPOTENCY_KEY to a new UUID for this action; keep it for retries.

cURL / Bash
curl --request POST "https://my.assetcenter.app/api/v1/assets/123/warranties" \
  --header "Authorization: Bearer $ASSETCENTER_API_TOKEN" \
  --header "Accept: application/json" \
  --header "Content-Type: application/json" \
  --header "Idempotency-Key: $IDEMPOTENCY_KEY" \
  --data '{"name":"Manufacturer warranty","start_date":"2026-09-07","end_date":"2027-09-07"}'

Response

201 Created. Illustrative response structure. Event arrays, to-do/space values, and current state depend on the action and the record.

JSON
{
  "data": {
    "asset_id": 123,
    "asset_event_ids": [
      901
    ],
    "subscription_event_ids": [],
    "todo": null,
    "tracker_disconnect_pending": false,
    "state": {
      "status": "available",
      "person_id": null,
      "location_id": null,
      "sublocation_id": null,
      "is_in_storage": false,
      "person_loan_due": null,
      "location_loan_due": null,
      "condition_id": null,
      "decommission_event_type_id": null
    }
  }
}

Behavior and constraints

Warranty dates are date-only. This action does not accept event_date, event_type_id, or custom event fields; it has no options endpoint. The workflow result does not include a separate warranty object.

Errors

401 means the token is missing, expired, revoked, or not a customer API token. 403 means a required permission or administrator access is missing. 404 means the record or child record is unavailable in this organization. 422 identifies invalid or unsupported input; inspect the errors object when present. 409 indicates a conflicting state or concurrent change; inspect the message and refresh the record before deciding how to proceed. Reusing an idempotency key with a different method, path, or body also returns 409. 429 means a rate limit was reached. See error handling and rate limits.