> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.morphiaone.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.morphiaone.ai/_mcp/server.

# Revise a catalogue Variant

POST https://api.morphiaone.ai/v1/catalogue/variants/{variant_id}/revisions
Content-Type: application/json

Writes the next revision of the variant as a `draft`: its whole colour and
application definitions, never a patch, compiled like a create. A draft changes
nothing that renders; it is approved, then published. An earlier revision never
changes, so a job already admitted keeps what it was admitted as. A retired
variant takes no revision (`409 VARIANT_RETIRED`).
Send an `Idempotency-Key`: a retry with the same key and the same request
answers the first response, byte for byte, with `Idempotency-Replayed: true`,
so a response you did not receive is safe to retry.
Requires the `catalogue.write` scope, which your account operator provisions; no other
catalogue scope implies it. Served only where the catalogue is enabled for your
environment.

Reference: https://docs.morphiaone.ai/api-reference/endpoints/catalogue/variant-revisions-create

## Authentication

- `X-API-Key` header (required) — API key for one environment of your account. Keep server-side; never expose in browser clients.

## Request

### Path parameters

- `variant_id` (string, required)

### Headers

- `Idempotency-Key` (string, optional, nullable)

### Body (application/json)

This endpoint expects an object.

- `applications` (list of V1CatalogueVariantsVariantIdRevisionsPostRequestBodyContentApplicationJsonSchemaApplicationsItems, required)
- `display_color` (string, required)
- `appearance` (V1CatalogueVariantsVariantIdRevisionsPostRequestBodyContentApplicationJsonSchemaAppearance, optional, nullable) — How a shade presents (Foundation V1 D4). ``display_color`` left out is the revision's, and when sent must be. Who says each field is never sent: the server records a partner write's fields as ``source: partner`` (D20).
- `default_application_id` (string, optional, nullable)

## Response

### 201

The new revision, a draft

- `appearance` (map from string to any, required)
- `applications` (list of CatalogueApplicationDefinition, required)
- `approved_snapshot_digest` (string, required)
- `authored_intent_digest` (string, required)
- `created_at` (datetime, required)
- `decided_at` (datetime, required, nullable)
- `decision_state` (enum, required)
  - Allowed values: `draft`, `approved`, `rejected`
- `default_application_id` (string, required)
- `digest_version` (enum, required)
  - Allowed values: `1`, `2`
- `display_color` (string, required)
- `revision` (integer, required)
- `variant_id` (string, required)

## Errors

### 400 Bad Request Error

Invalid variant or Idempotency-Key

- `error` (ErrorDetail, required)

### 401 Unauthorized Error

Missing or invalid API key

- `error` (ErrorDetail, required)

### 403 Forbidden Error

API key lacks the catalogue.write scope

- `error` (ErrorDetail, required)

### 404 Not Found Error

No such variant or revision

- `error` (ErrorDetail, required)

### 409 Conflict Error

Variant retired, or idempotency conflict

- `error` (ErrorDetail, required)

### 503 Service Unavailable Error

Catalogue unavailable

- `error` (ErrorDetail, required)

## Types

### V1CatalogueVariantsVariantIdRevisionsPostRequestBodyContentApplicationJsonSchemaApplicationsItems

One application definition a revision declares: an id, a category, the colour it renders with and its custom options. ``render_color`` left out renders with the revision's ``display_color``; either way the revision stores the colour it took (program §4.5). The options are :class:`ApplicationDefinitionFields`'. On a ``hair_color`` definition ``render_color`` is the light stop of the hair palette and ``dark_color`` its dark stop; a dark stop left out is derived from the light one, so one colour is enough. The revision answers it as ``components.dark.color.value``. ``dark_color`` on any other category is refused.

- `application_id` (string, required)
- `category` (string, required)
- `blend` (string, optional, nullable)
- `components` (map from string to map from string to V1CatalogueVariantsVariantIdRevisionsPostRequestBodyContentApplicationJsonSchemaApplicationsItemsComponents, optional, nullable)
- `dark_color` (string, optional, nullable)
- `design` (string, optional, nullable)
- `finish` (string, optional, nullable)
- `intensity` (string, optional, nullable)
- `placement` (string, optional, nullable)
- `render_color` (string, optional, nullable)
- `style` (string, optional, nullable)

### V1CatalogueVariantsVariantIdRevisionsPostRequestBodyContentApplicationJsonSchemaAppearance

How a shade presents (Foundation V1 D4). ``display_color`` left out is the revision's, and when sent must be. Who says each field is never sent: the server records a partner write's fields as ``source: partner`` (D20).

- `brand` (string, optional, nullable)
- `display_color` (string, optional, nullable)
- `material` (V1CatalogueVariantsVariantIdRevisionsPostRequestBodyContentApplicationJsonSchemaAppearanceMaterial, optional, nullable) — What the shade is made of. ``finish`` left out is not asserted.
- `product_name` (string, optional, nullable)
- `shade_name` (string, optional, nullable)

### CatalogueApplicationDefinition

One application definition as it was compiled: every declared option with the value it took, and the colour and placement it renders at.

- `application_id` (string, required)
- `category` (string, required)
- `effective_placement` (string, required, nullable)
- `options` (map from string to string, required)
- `profile` (CatalogueProfilePin, required) — The custom profile version a definition compiled against, fixed with its revision.
- `render_color` (string, required)
- `components` (map from string to map from string to map from string to string, optional, nullable)
- `design` (CatalogueProfilePin, optional, nullable) — The custom profile version a definition compiled against, fixed with its revision.

### ErrorDetail

- `code` (string, required)
- `message` (string, required)
- `request_id` (string, required)
- `details` (ErrorDetailDetails, optional)
- `doc_url` (string, optional, nullable)
- `retryable` (boolean, optional, nullable)

### V1CatalogueVariantsVariantIdRevisionsPostRequestBodyContentApplicationJsonSchemaApplicationsItemsComponents

Where one design role field's colour comes from (Foundation V1 D5): exactly one of ``ref``, an appearance path (``appearance.display_color``), or ``value``, a colour the partner states.

- `ref` (string, optional, nullable)
- `value` (string, optional, nullable)

### V1CatalogueVariantsVariantIdRevisionsPostRequestBodyContentApplicationJsonSchemaAppearanceMaterial

What the shade is made of. ``finish`` left out is not asserted.

- `finish` (string, optional, nullable)

### CatalogueProfilePin

The custom profile version a definition compiled against, fixed with its revision.

- `digest` (string, required)
- `id` (string, required)
- `version` (integer, required)

### ErrorDetailDetails

- map from string to any
- list of map from string to any

## Examples

**Request**

```json
{
  "applications": [
    {
      "application_id": "string",
      "category": "string"
    }
  ],
  "display_color": "string"
}
```

**Response**

```json
{
  "appearance": {
    "display_color": "#C27461"
  },
  "applications": [
    {
      "application_id": "cheeks",
      "category": "blush",
      "effective_placement": null,
      "options": {
        "intensity": "medium"
      },
      "profile": {
        "digest": "sha256:57bb4f7dfe1f0e110b226b1ed94f1c568e09590769065e696c7ee4acd1433456",
        "id": "blush.standard",
        "version": 1
      },
      "render_color": "#C27461"
    },
    {
      "application_id": "lips",
      "category": "lipstick",
      "effective_placement": null,
      "options": {
        "finish": "matte"
      },
      "profile": {
        "digest": "sha256:7c7a98bd64097b6b595d61d4f713da3c6aad2c9a3f267f3e54d1cb5746276b6b",
        "id": "lipstick.standard",
        "version": 1
      },
      "render_color": "#C27461"
    }
  ],
  "approved_snapshot_digest": "sha256:e6890e22e6f60b89f087023d2af43365c845153d6fab0e4c21829073bc87c462",
  "authored_intent_digest": "sha256:2ae83bfee37d936951fe9cd5dcd83ecd55b05d8b5b3f0b2ff742b74239a7c8f1",
  "created_at": "2026-10-06T13:40:02.271000Z",
  "decided_at": "2026-10-06T13:58:47.090000Z",
  "decision_state": "approved",
  "default_application_id": "cheeks",
  "digest_version": 1,
  "display_color": "#C27461",
  "revision": 2,
  "variant_id": "var_1kz8m3q5r7t9v1x3z5b7d9f1h3"
}
```

**SDK Code**

```python Catalogue_variantRevisionsCreate_example
import requests

url = "https://api.morphiaone.ai/v1/catalogue/variants/variant_id/revisions"

payload = {
    "applications": [
        {
            "application_id": "string",
            "category": "string"
        }
    ],
    "display_color": "string"
}
headers = {
    "X-API-Key": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Catalogue_variantRevisionsCreate_example
const url = 'https://api.morphiaone.ai/v1/catalogue/variants/variant_id/revisions';
const options = {
  method: 'POST',
  headers: {'X-API-Key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"applications":[{"application_id":"string","category":"string"}],"display_color":"string"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Catalogue_variantRevisionsCreate_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.morphiaone.ai/v1/catalogue/variants/variant_id/revisions"

	payload := strings.NewReader("{\n  \"applications\": [\n    {\n      \"application_id\": \"string\",\n      \"category\": \"string\"\n    }\n  ],\n  \"display_color\": \"string\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("X-API-Key", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Catalogue_variantRevisionsCreate_example
require 'uri'
require 'net/http'

url = URI("https://api.morphiaone.ai/v1/catalogue/variants/variant_id/revisions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"applications\": [\n    {\n      \"application_id\": \"string\",\n      \"category\": \"string\"\n    }\n  ],\n  \"display_color\": \"string\"\n}"

response = http.request(request)
puts response.read_body
```

```java Catalogue_variantRevisionsCreate_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.morphiaone.ai/v1/catalogue/variants/variant_id/revisions")
  .header("X-API-Key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"applications\": [\n    {\n      \"application_id\": \"string\",\n      \"category\": \"string\"\n    }\n  ],\n  \"display_color\": \"string\"\n}")
  .asString();
```

```php Catalogue_variantRevisionsCreate_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.morphiaone.ai/v1/catalogue/variants/variant_id/revisions', [
  'body' => '{
  "applications": [
    {
      "application_id": "string",
      "category": "string"
    }
  ],
  "display_color": "string"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'X-API-Key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Catalogue_variantRevisionsCreate_example
using RestSharp;

var client = new RestClient("https://api.morphiaone.ai/v1/catalogue/variants/variant_id/revisions");
var request = new RestRequest(Method.POST);
request.AddHeader("X-API-Key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"applications\": [\n    {\n      \"application_id\": \"string\",\n      \"category\": \"string\"\n    }\n  ],\n  \"display_color\": \"string\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Catalogue_variantRevisionsCreate_example
import Foundation

let headers = [
  "X-API-Key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "applications": [
    [
      "application_id": "string",
      "category": "string"
    ]
  ],
  "display_color": "string"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.morphiaone.ai/v1/catalogue/variants/variant_id/revisions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```