Atualizar página
PUT
/api/seller/external/v1/page/{id}
curl --request PUT \ "https://api.spelt.com.br/api/seller/external/v1/page/iMRSFHQ9TYBYCWTPTRGW5G9ZPYF" \ --header "Authorization: Bearer splt_live_SUA_CHAVE" \ --header "Content-Type: application/json" \ --header "Accept: application/json"const url = new URL( "https://api.spelt.com.br/api/seller/external/v1/page/iMRSFHQ9TYBYCWTPTRGW5G9ZPYF");
const headers = { "Authorization": "Bearer splt_live_SUA_CHAVE", "Content-Type": "application/json", "Accept": "application/json",};
fetch(url, { method: "PUT", headers,}).then(response => response.json());$client = new \GuzzleHttp\Client();$url = 'https://api.spelt.com.br/api/seller/external/v1/page/iMRSFHQ9TYBYCWTPTRGW5G9ZPYF';$response = $client->put( $url, [ 'headers' => [ 'Authorization' => 'Bearer splt_live_SUA_CHAVE', 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], ]);$body = $response->getBody();print_r(json_decode((string) $body));import requestsimport json
url = 'https://api.spelt.com.br/api/seller/external/v1/page/iMRSFHQ9TYBYCWTPTRGW5G9ZPYF'headers = { 'Authorization': 'Bearer splt_live_SUA_CHAVE', 'Content-Type': 'application/json', 'Accept': 'application/json'}
response = requests.request('PUT', url, headers=headers)response.json()Patch parcial dos metadados (título, slug, resumo, papel). Não mexe no conteúdo nem no status.
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Path Parameters
Seção intitulada “Path Parameters”id
required
string
The ID of the page.
Responses
Seção intitulada “Responses”Media typeapplication/json
object
data
object
id
string
title
string
role
string
Example
{ "data": { "id": "01J...", "title": "Termos de Serviço", "role": "terms_of_service" }}Media typeapplication/json
object
message
string
Example
{ "message": "A página \"Termos\" já é Termos de Serviço desta conta. Remova o papel dela antes de atribuí-lo a outra."}Media typeapplication/json
object
error
string
Example
{ "error": "Recurso não encontrado"}