Passer au contenu principal
PUT
https://api.taap.it
/
v1
/
domains
/
{domain_id}
Mettre à jour un domaine
curl --request PUT \
  --url https://api.taap.it/v1/domains/{domain_id} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "description": "<string>"
}
'
{
  "id": "<string>",
  "domain": "<string>",
  "description": "<string>",
  "is_verified": true,
  "updated_at": "<string>"
}
Requête :
cURL
curl -X PUT 'https://api.taap.it/v1/domains/domain_987654321' \
  -H 'Authorization: Bearer taapit_your_api_key_here' \
  -H 'Content-Type: application/json' \
  -d '{
    "description": "Updated description for the domain"
  }'
Réponse :
{
  "id": "domain_987654321",
  "domain": "links.yourcompany.com",
  "description": "Updated description for the domain",
  "is_verified": true,
  "updated_at": "2024-01-15T11:00:00Z"
}

Autorisation

Authorization
string
required
Token Bearer pour l’authentification API. Format : Bearer YOUR_API_KEY

Paramètres de chemin

domain_id
string
required
Identifiant unique pour le domain to update

Paramètres de requête

description
string
Description optionnelle pour le domaine

Champs de réponse

id
string
required
Identifiant unique pour le updated domain
domain
string
required
Nom du domaine personnalisé
description
string
Description du domaine
is_verified
boolean
Si le domaine est vérifié
updated_at
string
required
Horodatage ISO 8601 de dernière mise à jour du domaine