---
title: "live.avatar-write-result@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/live.avatar-write-result"
updated: null
---

# live.avatar-write-result@1 · OpenVibe.Services

HTML: [live.avatar-write-result@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/live.avatar-write-result)

# LiveAvatarWriteResult `live.avatar-write-result@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: live
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/live/avatar-write-result.v1.json`](/docs/contracts/live.avatar-write-result.json)

live.avatar-write-result@1: the answer of POST /internal/user-avatar on OpenVibe.Live: { ok: true, id, changed } — id is the Live user the picture was stored on and changed is false when it already matched. Refusals are { ok: false, error } (400, 404, 422, 500).

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `ok` | const | yes |  | - `= true` |
| `id` | integer | yes |  | - `minimum 1` |
| `changed` | boolean | yes |  |  |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: stored

~~~~
{
  "ok": true,
  "id": 77,
  "changed": true
}
~~~~

Rejected: no-id

~~~~
{
  "ok": true,
  "changed": false
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('live.avatar-write-result@1', value);   // { valid, errors: [{ path, message }] }
~~~~
