---
title: "Configurer le mapping catégorie → auteur"
method: POST
path: "/api/v1/wordpress/mapping"
tags: ["WordPress"]
---

# Configurer le mapping catégorie → auteur

`POST /api/v1/wordpress/mapping`

## Request

- Base URL: `https://web-resurrect.com`
- URL: `https://web-resurrect.com/api/v1/wordpress/mapping`
- Auth: HTTP bearer

Définit un mapping entre les catégories WordPress et les auteurs. Permet d'automatiquement affecter un auteur selon la catégorie choisie lors de la publication.

## Request body

- object
  - `domain` string, required
  - `mappings` object[]
    - `category_id` integer
    - `author_id` integer
  - `default_author_id` integer, nullable
  - `default_category_id` integer, nullable

## Response `201`

Mapping enregistré

---

[API](https://skmtc.dev/web-resurrect/apis/web-resurrect-api.md) · [All operations](https://skmtc.dev/web-resurrect/apis/web-resurrect-api/llms.txt) · [OpenAPI document](https://skmtc.dev/web-resurrect/apis/web-resurrect-api/revisions/cc81252c9611?raw)
