# POST Import text template graphic artwork

Turn a staged upload with purpose `text_template_svg` into artwork for a graphic area, at any size: the customer customiser fits it into the area. Refusals, replays and limits are those of the production artwork import. Requires `customisers:write` and an `Idempotency-Key`.

- Source URL: https://www.signcustomiser.com/help/api/v3-post-import-text-template-graphic-artwork/
- Markdown URL: https://www.signcustomiser.com/help/api/v3-post-import-text-template-graphic-artwork.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/graphic-artwork
- 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.

## Request body example

```json
{
  "upload_id": "upl_9f2c4b7ad13e6058ba41cd4201"
}
```

## cURL example

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

## Response examples

### 201 POST 201 example 1

```json
{
  "data": {
    "object": "text_template_artwork",
    "id": "tas_bcdefghijklmnopq",
    "sha256": "e1114bd7a4d7556c0d92e633b058794bf868c39adfef4d4f6e3833af207cc286",
    "width_mm": 100,
    "height_mm": 64.3
  },
  "links": {
    "self": "https://web.signcustomiser.com/api/v3/customisers/42/text-template/graphic-artwork",
    "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 Refused SVG

```json
{
  "type": "https://www.signcustomiser.com/help/api/problems/invalid_svg",
  "title": "Invalid SVG",
  "status": 422,
  "code": "invalid_svg",
  "detail": "The file contains a script.",
  "errors": [
    {
      "pointer": "/upload_id",
      "code": "script_present",
      "detail": "The file contains a script."
    }
  ],
  "request_id": "req_01jz9x2k7c8f3m5n6p7q8r9s0t"
}
```
