PATCH /v3/publicaciones/{adminmail}/{externalid}/archivar

Archiva la publicación. Una vez archivada la publicación no podrá ser modificada (incluye no podrá ser reactivada).

Request

Path parameters

Name Type Constraints Descripción
adminMail string (email) Required
Email operador administrador de la agencia
externalid string Required
ExternalId de la publicación

Responses

HTTP-StatusCode 200

OK

Headers
Name Type Descripción
ETag string
Publicacion when Accept: application/json application/vnd.autocosmos.entry+json text/json
{
  "ExternalId": "ACD12345",
  "RefStock": "x879",
  "EstadoActual": "Activa",
  "Exposicion": "Baja",
  "OperadorResponsable": "franco@superautos.com",
  "Marca": "BMW",
  "Modelo": "Serie 3",
  "Version": "330I SEDAN SPORT LINE",
  "VersionYear": 2016,
  "Transmision": "Manual",
  "Propulsion": "gasolina",
  "Kilometraje": 112000,
  "Color": "Azul",
  "Descripcion": "Muy buen estado. Servicios realizados en agencia oficial.",
  "DatosTecnicosCustom": [],
  "Precio": {
    "Moneda": "USD",
    "Importe": 29500
  },
  "Adelanto": null,
  "Cuota": null,
  "Fotos": [
    "https://somedomain/somefolder/foto1.jpg",
    "https://somedomain/somefolder/foto2.jpg"
  ],
  "CertificadoDeGarantiaUsado": null,
  "Locacion": {
    "Region": "Modena",
    "Ciudad": "Maranello",
    "Direccion": "Av. Siempreviva 742"
  },
  "Telefono": "+xx 9xx 12345678",
  "Consultas": {
    "_links": {
      "rel1": {
        "href": "/v3/consultas/somevalue"
      },
      "rel2": {
        "href": "/v3/consultas/somevalue?param1={param1}&param2={param2}",
        "templated": true
      }
    }
  },
  "_links": {
    "rel1": {
      "href": "/v3/publicaciones/somevalue"
    },
    "rel2": {
      "href": "/v3/publicaciones/somevalue",
      "method": "PUT"
    }
  }
}
PublicacionRef when Accept: application/vnd.autocosmos.ref+json
{
  "etag": "uDUbRssKWk2r70O5FM7+xvzVGGXBiNkI",
  "ExternalId": "ACD12345",
  "EstadoActual": "Activa",
  "href": "/v3/publicaciones/franco@superautos.com/ACD12345",
  "title": "BMW Serie 3 330I SEDAN SPORT LINE (2016)"
}

HTTP-StatusCode 400

ValidationProblemDetails Content-Type: application/problem+json
{
  "Errors": {
    "_": [
      "entry problem1",
      "entry problem2"
    ],
    "property1": [
      "problem 1"
    ]
  },
  "Type": "https://httpstatuses.com/400",
  "Title": "Validación de información esperada fallida",
  "Status": 400,
  "Detail": "Alguna información contiene valores no validos.",
  "Instance": "/v3/somewhere",
  "Extensions": {}
}

HTTP-StatusCode 403

ProblemDetails Content-Type: application/problem+json
{
  "Type": "https://httpstatuses.com/403",
  "Title": "Titulo de problema",
  "Status": 403,
  "Detail": "Alguna descripción del problema",
  "Instance": "/v3/somewhere",
  "Extensions": {}
}

HTTP-StatusCode 409

ValidationProblemDetails Content-Type: application/problem+json
{
  "Errors": {
    "_": [
      "entry problem1",
      "entry problem2"
    ],
    "property1": [
      "problem 1"
    ]
  },
  "Type": "https://httpstatuses.com/400",
  "Title": "Validación de información esperada fallida",
  "Status": 400,
  "Detail": "Alguna información contiene valores no validos.",
  "Instance": "/v3/somewhere",
  "Extensions": {}
}

HTTP-StatusCode 412

Precondition Failed. ETag does not match.

ProblemDetails Content-Type: application/json application/vnd.autocosmos.entry+json text/json
{
  "Type": "https://httpstatuses.com/403",
  "Title": "Titulo de problema",
  "Status": 403,
  "Detail": "Alguna descripción del problema",
  "Instance": "/v3/somewhere",
  "Extensions": {}
}
ProblemDetails Content-Type: application/vnd.autocosmos.ref+json
{
  "Type": "https://httpstatuses.com/403",
  "Title": "Titulo de problema",
  "Status": 403,
  "Detail": "Alguna descripción del problema",
  "Instance": "/v3/somewhere",
  "Extensions": {}
}