# POST Validate a text template production artwork import

Dry-run a production artwork import: the upload is this key's, has purpose `text_template_svg` and is unspent, and the customiser takes artwork (retained metal on a store with text fields). The bytes are not read, so a file the import would refuse still passes here. Nothing is written. Requires `customisers:write`.

- Source URL: https://www.signcustomiser.com/help/api/v3-post-validate-a-text-template-production-artwork-import/
- Markdown URL: https://www.signcustomiser.com/help/api/v3-post-validate-a-text-template-production-artwork-import.md
- Group: Customiser text template
- OpenAPI for this group: https://www.signcustomiser.com/help/openapi/customiser-text-template.json
- Method: POST
- Path: /api/v3/customisers/{customiser_id}/text-template/production-artwork/validate-create
- Auth: Bearer token
- Required scopes: `customisers:write`

## Path parameters

- customiser_id (string, required): The customiser id. Example: 1

## Body parameters

- upload_id (string, optional): No description provided.
- width_mm (integer, optional): No description provided.

## Request body example

```json
{
  "upload_id": "upl_9f2c4b7ad13e6058ba41cd4201",
  "width_mm": 600
}
```

## cURL example

```bash
curl https://web.signcustomiser.com/api/v3/customisers/1/text-template/production-artwork/validate-create \
  --request POST \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_API_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
  "upload_id": "upl_9f2c4b7ad13e6058ba41cd4201",
  "width_mm": 600
}'
```

## Response examples

### 200 POST 200 example 1

```json
{
  "data": {
    "object": "text_template_artwork_validation",
    "operation": "create",
    "customiser_id": 42,
    "valid": true
  },
  "links": {
    "self": "https://web.signcustomiser.com/api/v3/customisers/42/text-template/production-artwork/validate-create",
    "documentation": "https://www.signcustomiser.com/help/api/"
  },
  "meta": {
    "api_version": "v3",
    "request_id": "req_01jz9x2k7c8f3m5n6p7q8r9s0t"
  }
}
```

### 403 Insufficient scope

```json
{
  "type": "https://www.signcustomiser.com/help/api/problems/insufficient_scope",
  "title": "Insufficient scope",
  "status": 403,
  "code": "insufficient_scope",
  "detail": "This operation requires the customisers:write scope, but the API key grants the following scopes: store:read. Create a key that includes the required scope in the merchant admin under Integrate → API Tokens.",
  "required_scopes": [
    "customisers:write"
  ],
  "granted_scopes": [
    "store:read"
  ],
  "request_id": "req_01jz9x2k7c8f3m5n6p7q8r9s0t"
}
```

### 422 Purpose mismatch

```json
{
  "type": "https://www.signcustomiser.com/help/api/problems/upload_purpose_mismatch",
  "title": "Upload purpose mismatch",
  "status": 422,
  "code": "upload_purpose_mismatch",
  "detail": "This slot accepts uploads created with purpose text_template_svg, and this upload was created with purpose option_image. Create a new upload with the slot's purpose.",
  "errors": [
    {
      "pointer": "/upload_id",
      "code": "upload_purpose_mismatch",
      "detail": "This slot accepts uploads created with purpose text_template_svg, and this upload was created with purpose option_image. Create a new upload with the slot's purpose."
    }
  ],
  "request_id": "req_01jz9x2k7c8f3m5n6p7q8r9s0t"
}
```
