20 lines
3.0 KiB
Markdown
20 lines
3.0 KiB
Markdown
# B2B branding and artwork approvals (Phase 3F)
|
|
|
|
Staff can create an artwork project for a verified business account, upload private versions, and review the latest version independently. All endpoints use a bearer session under `/api/v1/b2b`. Records and decisions are organization-scoped and immutable.
|
|
|
|
| Method | Path | Permission | Purpose |
|
|
| ------ | -------------------------------- | -------------------- | ------------------------------------------------------ |
|
|
| GET | `/artworks` | `b2b.artwork.read` | List projects; optional `accountId`, `limit`, `offset` |
|
|
| POST | `/artworks` | `b2b.artwork.manage` | Create a project |
|
|
| GET | `/artworks/:id` | `b2b.artwork.read` | Read project and version metadata |
|
|
| POST | `/artworks/:id/versions` | `b2b.artwork.manage` | Upload the next private version |
|
|
| GET | `/artwork-versions/:id` | `b2b.artwork.read` | Read version metadata and decision |
|
|
| GET | `/artwork-versions/:id/download` | `b2b.artwork.read` | Download allowed version |
|
|
| POST | `/artwork-versions/:id/decision` | `b2b.artwork.review` | Approve or reject latest version |
|
|
|
|
Create a project with `{ "accountId": "<uuid>", "name": "Seasonal gift branding", "placement": "PACKAGING", "brief": "Use the supplied mark on a matte kraft box" }`. Placement is `LABEL`, `PACKAGING`, `CANDLE`, or `OTHER`. Upload a file in multipart field `file`. Supported attachments are PDF, PNG, and JPEG, up to 2 MiB, with a safe filename and content signature matching the declared media type. File bytes live in PostgreSQL; metadata responses never include them. Downloads are attachments with `nosniff`, sandbox CSP, and `no-store` headers.
|
|
|
|
Review with `{ "outcome": "APPROVED", "note": "Brand mark is legible" }` or `REJECTED` and a concrete note. The uploader cannot review their own version. Approval rechecks business verification. Only the newest version may be reviewed, and a new version can be uploaded only after the previous one receives a decision. The version limit is 20 per project; each account may have up to 100 projects. A reader can download an approved version. A reviewer or the uploader can download pending or rejected versions for work and review. A later approved version does not mutate earlier approvals; downstream production must reference a specific approved version ID.
|
|
|
|
This approval covers the submitted file only. It does not establish trademark rights, clear third-party content, run malware scanning, reserve inventory, or authorize production. Production integration must verify the selected version has an `APPROVED` decision and must pin its immutable version ID and digest. Set a retention and malware-scanning policy before accepting untrusted artwork in production.
|