sites
Récupérer un site L’adresse du site, son forfait, sa révision brouillon et sa version publiée. Un site appartenant à un autre espace de travail renvoie 404.
GET /v1/sites/{site_id}
Nécessite sites:read.
Renvoyez generation sous le nom expected_generation lors d’une publication, d’un retour à une version précédente ou d’une dépublication. Pour un site appartenant à un autre espace de travail, la réponse est 404, comme pour un site inexistant.
Autorisations Authorizationbearer in header required
Paramètres de chemin site_idstring required
L’identifiant du site ou son slug (l’adresse avant .atelier201.page).
dataobject required
Show child attributes data. statusenum<string> required one of: creating, ready, suspended, deleting
data. planenum<string> required one of: free, site
data. urlstring required
L’adresse à laquelle les visiteurs trouvent le site : son domaine personnalisé principal ou son adresse atelier201.page.
data. platform_urlstring required
data. guestboolean required
Préparé par un agent avant la connexion et pas encore revendiqué : le site peut être prévisualisé, mais pas publié.
data. draftobject required
Show child attributes data.draft. revisionstring | null required
data.draft. updated_atstring | null required
data. publishedobject | null required
Show child attributes data.published. build_idstring required
data.published. generationinteger required range: -9007199254740991–9007199254740991
data.published. published_atstring | null required
data. generationinteger required range: -9007199254740991–9007199254740991
Augmente à chaque publication, restauration ou dépublication. Renvoyez cette valeur sous forme de expected_generation.
data. cover_atstring | null required
Date de la dernière capture de l’image de la page d’accueil affichée par l’application sur la carte du site, après une compilation du site. Null avant la première capture.
data. created_atstring required
data. updated_atstring required
Codes possibles : invalid_request, unknown_field, invalid_parameter, invalid_cursor
errorobject required
Show child attributes error. messagestring required
error. docs_urlstring required
error. action_urlstring<uri>
error. detailsRecord<string, object>
Codes possibles : authentication_required, invalid_api_key, api_key_expired, api_key_revoked
errorobject required
Show child attributes error. messagestring required
error. docs_urlstring required
error. action_urlstring<uri>
error. detailsRecord<string, object>
Codes possibles : insufficient_credits
errorobject required
Show child attributes error. messagestring required
error. docs_urlstring required
error. action_urlstring<uri>
error. detailsRecord<string, object>
Codes possibles : insufficient_scope, feature_not_available, admin_required
errorobject required
Show child attributes error. messagestring required
error. docs_urlstring required
error. action_urlstring<uri>
error. detailsRecord<string, object>
Codes possibles : resource_not_found
errorobject required
Show child attributes error. messagestring required
error. docs_urlstring required
error. action_urlstring<uri>
error. detailsRecord<string, object>
Codes possibles : conflict, result_not_ready, idempotency_key_reused
errorobject required
Show child attributes error. messagestring required
error. docs_urlstring required
error. action_urlstring<uri>
error. detailsRecord<string, object>
Codes possibles : result_expired
errorobject required
Show child attributes error. messagestring required
error. docs_urlstring required
error. action_urlstring<uri>
error. detailsRecord<string, object>
Codes possibles : request_too_large
errorobject required
Show child attributes error. messagestring required
error. docs_urlstring required
error. action_urlstring<uri>
error. detailsRecord<string, object>
Codes possibles : request_too_large_for_plan
errorobject required
Show child attributes error. messagestring required
error. docs_urlstring required
error. action_urlstring<uri>
error. detailsRecord<string, object>
Codes possibles : rate_limited
errorobject required
Show child attributes error. messagestring required
error. docs_urlstring required
error. action_urlstring<uri>
error. detailsRecord<string, object>
Codes possibles : internal_error
errorobject required
Show child attributes error. messagestring required
error. docs_urlstring required
error. action_urlstring<uri>
error. detailsRecord<string, object>
Codes possibles : service_unavailable
errorobject required
Show child attributes error. messagestring required
error. docs_urlstring required
error. action_urlstring<uri>
error. detailsRecord<string, object>