> 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.

# Re-pin a catalogue Look

POST https://api.morphiaone.ai/v1/catalogue/looks/{look_id}/repin
Content-Type: application/json

Writes the next revision of the look as a `draft`, from `revision` with every pin
moved to what is current: a variant entry to the variant's active revision under
the same `application_id`, a custom entry to the current profile. `diff` lists
each entry whose pin moved as `{field, from, to}`, and is empty when nothing did.
The source revision never changes. A pin with no current equivalent -- a slug
the active revision no longer declares, a retired variant -- is refused at its
entry and nothing is written. A retired look is `409 LOOK_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/looks-repin

## 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

- `look_id` (string, required)

### Headers

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

### Body (application/json)

This endpoint expects an object.

- `revision` (integer, required)

## Response

### 201

The new draft revision and the pins it moved

- `diff` (list of CatalogueLookPinChange, required)
- `revision` (CatalogueLookRevision, required) — One revision of a look. Its pins never change; ``decision_state`` moves once, from ``draft``. The digests read as a variant revision's.

## Errors

### 400 Bad Request Error

A pin with no current equivalent, 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 look or revision

- `error` (ErrorDetail, required)

### 409 Conflict Error

Look retired, or idempotency conflict

- `error` (ErrorDetail, required)

### 503 Service Unavailable Error

Catalogue unavailable

- `error` (ErrorDetail, required)

## Types

### CatalogueLookPinChange

One entry a re-pin moved: its position, the pin it had and the pin it has.

- `field` (string, required)
- `from` (CatalogueLookPinChangeFrom, required)
- `to` (CatalogueLookPinChangeTo, required)

### CatalogueLookRevision

One revision of a look. Its pins never change; ``decision_state`` moves once, from ``draft``. The digests read as a variant revision's.

- `applications` (list of CatalogueLookRevisionApplicationsItems, 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`
- `digest_version` (integer, required)
- `look_id` (string, required)
- `revision` (integer, required)

### ErrorDetail

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

### CatalogueLookPinChangeFrom

- `mode`: `custom` (CatalogueLookCustomEntry)
  - `category` (string, required)
  - `color` (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.
- `mode`: `variant` (CatalogueLookVariantEntry)
  - `application_id` (string, required)
  - `category` (string, required)
  - `effective_placement` (string, required, nullable)
  - `revision` (integer, required)
  - `variant_id` (string, required)

### CatalogueLookPinChangeTo

- `mode`: `custom` (CatalogueLookCustomEntry)
  - `category` (string, required)
  - `color` (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.
- `mode`: `variant` (CatalogueLookVariantEntry)
  - `application_id` (string, required)
  - `category` (string, required)
  - `effective_placement` (string, required, nullable)
  - `revision` (integer, required)
  - `variant_id` (string, required)

### CatalogueLookRevisionApplicationsItems

- `mode`: `custom` (CatalogueLookCustomEntry)
  - `category` (string, required)
  - `color` (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.
- `mode`: `variant` (CatalogueLookVariantEntry)
  - `application_id` (string, required)
  - `category` (string, required)
  - `effective_placement` (string, required, nullable)
  - `revision` (integer, required)
  - `variant_id` (string, required)

### ErrorDetailDetails

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

### CatalogueProfilePin

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

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

## Examples

**Request**

```json
{
  "revision": 1
}
```

**Response**

```json
{
  "diff": [
    {
      "field": "applications[0]",
      "from": {
        "mode": "variant",
        "application_id": "lips",
        "category": "lipstick",
        "effective_placement": null,
        "revision": 1,
        "variant_id": "var_1kz8m3q5r7t9v1x3z5b7d9f1h3"
      },
      "to": {
        "mode": "variant",
        "application_id": "lips",
        "category": "lipstick",
        "effective_placement": null,
        "revision": 2,
        "variant_id": "var_1kz8m3q5r7t9v1x3z5b7d9f1h3"
      }
    }
  ],
  "revision": {
    "applications": [
      {
        "mode": "variant",
        "application_id": "lips",
        "category": "lipstick",
        "effective_placement": null,
        "revision": 2,
        "variant_id": "var_1kz8m3q5r7t9v1x3z5b7d9f1h3"
      },
      {
        "mode": "custom",
        "category": "blush",
        "color": "#B86A58",
        "effective_placement": null,
        "options": {
          "intensity": "medium"
        },
        "profile": {
          "digest": "sha256:57bb4f7dfe1f0e110b226b1ed94f1c568e09590769065e696c7ee4acd1433456",
          "id": "blush.standard",
          "version": 1
        }
      }
    ],
    "approved_snapshot_digest": "sha256:a41f7c3e9b2d5f8a0c6e1b4d7f9a2c5e8b0d3f6a9c1e4b7d0f2a5c8e1b3d6f9a",
    "authored_intent_digest": "sha256:5c0e8a2f4d6b1a3c9e7f0b2d4a6c8e1f3b5d7a9c0e2f4b6d8a1c3e5f7b9d0a2c",
    "created_at": "2026-10-12T09:30:05.120000Z",
    "decided_at": null,
    "decision_state": "draft",
    "digest_version": 1,
    "look_id": "look_1m2n4p6q8r0s2t4v6w8x0y2z4a",
    "revision": 3
  }
}
```

**SDK Code**

```python Catalogue_looksRepin_example
import requests

url = "https://api.morphiaone.ai/v1/catalogue/looks/look_id/repin"

payload = { "revision": 1 }
headers = {
    "X-API-Key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Catalogue_looksRepin_example
const url = 'https://api.morphiaone.ai/v1/catalogue/looks/look_id/repin';
const options = {
  method: 'POST',
  headers: {'X-API-Key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"revision":1}'
};

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

```go Catalogue_looksRepin_example
package main

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

func main() {

	url := "https://api.morphiaone.ai/v1/catalogue/looks/look_id/repin"

	payload := strings.NewReader("{\n  \"revision\": 1\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_looksRepin_example
require 'uri'
require 'net/http'

url = URI("https://api.morphiaone.ai/v1/catalogue/looks/look_id/repin")

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  \"revision\": 1\n}"

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

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

HttpResponse<String> response = Unirest.post("https://api.morphiaone.ai/v1/catalogue/looks/look_id/repin")
  .header("X-API-Key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"revision\": 1\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.morphiaone.ai/v1/catalogue/looks/look_id/repin', [
  'body' => '{
  "revision": 1
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'X-API-Key' => '<apiKey>',
  ],
]);

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

```csharp Catalogue_looksRepin_example
using RestSharp;

var client = new RestClient("https://api.morphiaone.ai/v1/catalogue/looks/look_id/repin");
var request = new RestRequest(Method.POST);
request.AddHeader("X-API-Key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"revision\": 1\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Catalogue_looksRepin_example
import Foundation

let headers = [
  "X-API-Key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = ["revision": 1] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.morphiaone.ai/v1/catalogue/looks/look_id/repin")! 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()
```