Cliente renombra el label de su propia API key
PATCH
/v1/client/keys/{id}
const url = 'https://api.mailerdash.com/v1/client/keys/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"label":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.mailerdash.com/v1/client/keys/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "label": "example" }'Actualiza el campo label de una key vinculada al usuario autenticado. Field-only: solo permite editar el label (display name). 403 si la key no está vinculada al usuario autenticado.
Authorizations
Sección titulada «Authorizations »Parameters
Sección titulada « Parameters »Path Parameters
Sección titulada «Path Parameters » id
required
string
Request Body required
Sección titulada «Request Body required » Media type application/json
object
label
required
Nuevo display name de la key, ej “production-app”
string
Example generated
{ "label": "example"}Responses
Sección titulada « Responses »Label actualizado
Media type application/json
object
id
string
label
string
Example generated
{ "id": "example", "label": "example"}Label vacío o faltante
La key no está vinculada al usuario autenticado