RESTful API of Copy Bounded Context
Headers
As this API is working with JSON every request must add the following headers:
Accept: application/json
And for requests with body:
Content-Type: application/json
Copy ¶
View copy ¶
View allGET/copy{?ids,unitId,unitIds,locale,page,itemsPerPage}
Example URI
GET https://listings.spotahome.com/copy?ids=3c2e15d7-ba6e-4995-aa19-a00267ca36dd&unitId=12345&unitIds=12345&locale=es&page=1&itemsPerPage=100
URI Parameters
- ids
array[string](optional) Example: 3c2e15d7-ba6e-4995-aa19-a00267ca36dd- unitId
string(optional) Example: 12345- unitIds
array[string](optional) Example: 12345- locale
string(optional) Example: es- page
number(optional) Example: 1- itemsPerPage
number(optional) Example: 100
Request
Headers
Content-Type: application/json
Authorization: aa.bb.ccResponse
200Headers
Content-Type: application/jsonBody
{
"count": 2,
"total": 2,
"_links": {
"self": {
"href": "/api/copy?page=1"
},
"first": {
"href": "/api/copy?page=1"
},
"last": {
"href": "/api/copy?page=2"
},
"next": {
"href": "/api/copy?page=1"
},
"previous": {
"href": "/api/copy?page=2"
}
},
"_embedded": {
"sah:copy": [
{
"id": "12345-aaa-cccdd",
"unitId": "98991",
"locale": "en",
"copyContent": {
"title": "Hello, world!",
"cardTitle": "Hello, world!",
"header": "Hello, world!",
"description": "Hello, world!",
"videoTranscription": "Hello, world!",
"whatWeLikedMost": "Hello, world!",
"thingsToKeepInMind": "Hello, world!",
"additionalDetails": "Hello, world!",
"flatmates": "Hello, world!",
"landlordPolicies": "Hello, world!",
"transportation": "Hello, world!",
"neighborhoodDescription": "Hello, world!",
"neighborhoodVideo": "Hello, world!",
"importantInformation": "Hello, world!",
"metaTitle": "Hello, world!",
"metaDescription": "Hello, world!",
"landlordDescription": "Hello, world!"
}
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"count": {
"type": "number"
},
"total": {
"type": "number"
},
"_links": {
"type": "object",
"properties": {
"self": {
"type": "object",
"properties": {
"href": {
"type": "string"
}
},
"required": [
"href"
]
},
"first": {
"type": "object",
"properties": {
"href": {
"type": "string"
}
},
"required": [
"href"
]
},
"last": {
"type": "object",
"properties": {
"href": {
"type": "string"
}
},
"required": [
"href"
]
},
"next": {
"type": "object",
"properties": {
"href": {
"type": "string"
}
},
"required": [
"href"
]
},
"previous": {
"type": "object",
"properties": {
"href": {
"type": "string"
}
},
"required": [
"href"
]
}
},
"required": [
"self",
"first",
"last"
]
},
"_embedded": {
"type": "object",
"properties": {
"sah:copy": {
"type": "array"
}
}
}
},
"required": [
"count",
"total",
"_links"
]
}Response
401Headers
Content-Type: application/jsonBody
{
"detail": "Unauthorized user",
"status": 401,
"title": "Unauthorized",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"detail",
"status",
"title",
"type"
]
}Response
500Headers
Content-Type: application/jsonBody
{
"detail": "Internal Server Error",
"status": 500,
"title": "Internal Server Error",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"detail",
"status",
"title",
"type"
]
}Bulk update copyPOST/copy
Example URI
POST https://listings.spotahome.com/copy
Request
Headers
Content-Type: application/json
Authorization: aa.bb.ccBody
{
"copies": [
{
"unitId": "98991",
"locale": "en",
"copyContent": {
"title": "Hello, world!",
"cardTitle": "Hello, world!",
"header": "Hello, world!",
"description": "Hello, world!",
"videoTranscription": "Hello, world!",
"whatWeLikedMost": "Hello, world!",
"thingsToKeepInMind": "Hello, world!",
"additionalDetails": "Hello, world!",
"flatmates": "Hello, world!",
"landlordPolicies": "Hello, world!",
"transportation": "Hello, world!",
"neighborhoodDescription": "Hello, world!",
"neighborhoodVideo": "Hello, world!",
"importantInformation": "Hello, world!",
"metaTitle": "Hello, world!",
"metaDescription": "Hello, world!",
"landlordDescription": "Hello, world!"
}
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"copies": {
"type": "array"
}
},
"required": [
"copies"
]
}Response
204Response
401Headers
Content-Type: application/jsonBody
{
"detail": "Unauthorized user",
"status": 401,
"title": "Unauthorized",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"detail",
"status",
"title",
"type"
]
}Response
404Headers
Content-Type: application/jsonBody
{
"detail": "The resource was not found",
"status": 404,
"title": "Not Found",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"detail",
"status",
"title",
"type"
]
}Response
422Headers
Content-Type: application/jsonBody
{
"detail": "The request was well formed but was unable to be followed due to semantic errors",
"status": 422,
"title": "Unprocessable Entity",
"type": "`http://www.w3.org/Protocols/rfc2616/rfc2616",
"validationMessages": {
"field": {
"stringLength": "The input is less than 6 characters long"
}
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string",
"description": "sec10.html (string, required)"
},
"validationMessages": {
"type": "object",
"properties": {
"field": {
"type": "object",
"properties": {
"stringLength": {
"type": "string"
}
},
"required": [
"stringLength"
]
}
},
"description": "Contains a property for each field that failed validation."
}
},
"required": [
"detail",
"status",
"title"
]
}Response
500Headers
Content-Type: application/jsonBody
{
"detail": "Internal Server Error",
"status": 500,
"title": "Internal Server Error",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"detail",
"status",
"title",
"type"
]
}Update partial copyPATCH/copy/{unitId}
Example URI
PATCH https://listings.spotahome.com/copy/157544
URI Parameters
- unitId
string(required) Example: 157544
Request
Headers
Content-Type: application/json
Authorization: aa.bb.ccBody
{
"unitId": "98991",
"locale": "en",
"copyContent": {
"title": "Hello, world!",
"cardTitle": "Hello, world!",
"header": "Hello, world!",
"description": "Hello, world!",
"videoTranscription": "Hello, world!",
"whatWeLikedMost": "Hello, world!",
"thingsToKeepInMind": "Hello, world!",
"additionalDetails": "Hello, world!",
"flatmates": "Hello, world!",
"landlordPolicies": "Hello, world!",
"transportation": "Hello, world!",
"neighborhoodDescription": "Hello, world!",
"neighborhoodVideo": "Hello, world!",
"importantInformation": "Hello, world!",
"metaTitle": "Hello, world!",
"metaDescription": "Hello, world!",
"landlordDescription": "Hello, world!"
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"unitId": {
"type": "string"
},
"locale": {
"type": "string",
"enum": [
"en",
"es",
"fr",
"it",
"de",
"ar",
"tr",
"zh",
"pl",
"cs",
"lv",
"lt",
"hu",
"pt"
]
},
"copyContent": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"cardTitle": {
"type": "string"
},
"header": {
"type": "string"
},
"description": {
"type": "string"
},
"videoTranscription": {
"type": "string"
},
"whatWeLikedMost": {
"type": "string"
},
"thingsToKeepInMind": {
"type": "string"
},
"additionalDetails": {
"type": "string"
},
"flatmates": {
"type": "string"
},
"landlordPolicies": {
"type": "string"
},
"transportation": {
"type": "string"
},
"neighborhoodDescription": {
"type": "string"
},
"neighborhoodVideo": {
"type": "string"
},
"importantInformation": {
"type": "string"
},
"metaTitle": {
"type": "string"
},
"metaDescription": {
"type": "string"
},
"landlordDescription": {
"type": "string"
}
}
}
},
"required": [
"unitId",
"locale"
]
}Response
204Response
401Headers
Content-Type: application/jsonBody
{
"detail": "Unauthorized user",
"status": 401,
"title": "Unauthorized",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"detail",
"status",
"title",
"type"
]
}Response
403Headers
Content-Type: application/jsonBody
{
"detail": "Unauthorized user",
"status": 401,
"title": "Unauthorized",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"detail",
"status",
"title",
"type"
]
}Response
404Headers
Content-Type: application/jsonBody
{
"detail": "The resource was not found",
"status": 404,
"title": "Not Found",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"detail",
"status",
"title",
"type"
]
}Landlord copy endpoint ¶
Get copyGET/copy/{unitId}{?locale}
Example URI
GET https://listings.spotahome.com/copy/157544?locale=en
URI Parameters
- unitId
string(required) Example: 157544- locale
string(optional) Example: en
Request
Headers
Content-Type: application/json
Authorization: aa.bb.ccResponse
200Body
{
"id": "12345-aaa-cccdd",
"unitId": "98991",
"locale": "en",
"copyContent": {
"title": "Hello, world!",
"cardTitle": "Hello, world!",
"header": "Hello, world!",
"description": "Hello, world!",
"videoTranscription": "Hello, world!",
"whatWeLikedMost": "Hello, world!",
"thingsToKeepInMind": "Hello, world!",
"additionalDetails": "Hello, world!",
"flatmates": "Hello, world!",
"landlordPolicies": "Hello, world!",
"transportation": "Hello, world!",
"neighborhoodDescription": "Hello, world!",
"neighborhoodVideo": "Hello, world!",
"importantInformation": "Hello, world!",
"metaTitle": "Hello, world!",
"metaDescription": "Hello, world!",
"landlordDescription": "Hello, world!"
}
}Schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"unitId": {
"type": "string"
},
"locale": {
"enum": [
"en",
"es",
"fr",
"it",
"de",
"ar",
"tr",
"zh",
"pl",
"cs",
"lv",
"lt",
"hu",
"pt"
]
},
"copyContent": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"cardTitle": {
"type": "string"
},
"header": {
"type": "string"
},
"description": {
"type": "string"
},
"videoTranscription": {
"type": "string"
},
"whatWeLikedMost": {
"type": "string"
},
"thingsToKeepInMind": {
"type": "string"
},
"additionalDetails": {
"type": "string"
},
"flatmates": {
"type": "string"
},
"landlordPolicies": {
"type": "string"
},
"transportation": {
"type": "string"
},
"neighborhoodDescription": {
"type": "string"
},
"neighborhoodVideo": {
"type": "string"
},
"importantInformation": {
"type": "string"
},
"metaTitle": {
"type": "string"
},
"metaDescription": {
"type": "string"
},
"landlordDescription": {
"type": "string"
}
}
}
},
"required": [
"id",
"unitId",
"locale",
"copyContent"
],
"$schema": "http://json-schema.org/draft-04/schema#"
}Response
401Headers
Content-Type: application/jsonBody
{
"detail": "Unauthorized user",
"status": 401,
"title": "Unauthorized",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"detail",
"status",
"title",
"type"
]
}Response
403Headers
Content-Type: application/jsonBody
{
"detail": "Forbidden access",
"status": 403,
"title": "Forbidden",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"detail",
"status",
"title",
"type"
]
}Response
404Headers
Content-Type: application/jsonBody
{
"detail": "The resource was not found",
"status": 404,
"title": "Not Found",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"detail",
"status",
"title",
"type"
]
}Response
422Headers
Content-Type: application/jsonBody
{
"detail": "The request was well formed but was unable to be followed due to semantic errors",
"status": 422,
"title": "Unprocessable Entity",
"type": "`http://www.w3.org/Protocols/rfc2616/rfc2616",
"validationMessages": {
"field": {
"stringLength": "The input is less than 6 characters long"
}
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string",
"description": "sec10.html (string, required)"
},
"validationMessages": {
"type": "object",
"properties": {
"field": {
"type": "object",
"properties": {
"stringLength": {
"type": "string"
}
},
"required": [
"stringLength"
]
}
},
"description": "Contains a property for each field that failed validation."
}
},
"required": [
"detail",
"status",
"title"
]
}Update copyPOST/copy/{unitId}
Example URI
POST https://listings.spotahome.com/copy/157544
URI Parameters
- unitId
string(required) Example: 157544
Request
Headers
Content-Type: application/json
Authorization: aa.bb.ccBody
{
"locale": "en",
"copyContent": {
"landlordDescription": "Hello, world!"
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"locale": {
"type": "string",
"enum": [
"en",
"es",
"fr",
"it",
"de",
"ar",
"tr",
"zh",
"pl",
"cs",
"lv",
"lt",
"hu",
"pt"
]
},
"copyContent": {
"type": "object",
"properties": {
"landlordDescription": {
"type": "string"
}
}
}
},
"required": [
"locale"
]
}Response
204Response
401Headers
Content-Type: application/jsonBody
{
"detail": "Unauthorized user",
"status": 401,
"title": "Unauthorized",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"detail",
"status",
"title",
"type"
]
}Response
403Headers
Content-Type: application/jsonBody
{
"detail": "Forbidden access",
"status": 403,
"title": "Forbidden",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"detail",
"status",
"title",
"type"
]
}Response
404Headers
Content-Type: application/jsonBody
{
"detail": "The resource was not found",
"status": 404,
"title": "Not Found",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"detail",
"status",
"title",
"type"
]
}Response
422Headers
Content-Type: application/jsonBody
{
"detail": "The request was well formed but was unable to be followed due to semantic errors",
"status": 422,
"title": "Unprocessable Entity",
"type": "`http://www.w3.org/Protocols/rfc2616/rfc2616",
"validationMessages": {
"field": {
"stringLength": "The input is less than 6 characters long"
}
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string",
"description": "sec10.html (string, required)"
},
"validationMessages": {
"type": "object",
"properties": {
"field": {
"type": "object",
"properties": {
"stringLength": {
"type": "string"
}
},
"required": [
"stringLength"
]
}
},
"description": "Contains a property for each field that failed validation."
}
},
"required": [
"detail",
"status",
"title"
]
}Clone copy ¶
Clone copyPOST/copy/clone
Example URI
POST https://listings.spotahome.com/copy/clone
Request
Headers
Content-Type: application/json
Authorization: aa.bb.ccBody
{
"sourcePropertyId": "154656",
"destinationPropertyIds": [
"123123",
"56464",
"45745"
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"sourcePropertyId": {
"type": "string"
},
"destinationPropertyIds": {
"type": "array"
}
},
"required": [
"sourcePropertyId",
"destinationPropertyIds"
]
}Response
202Response
401Headers
Content-Type: application/jsonBody
{
"detail": "Unauthorized user",
"status": 401,
"title": "Unauthorized",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"detail",
"status",
"title",
"type"
]
}Response
404Headers
Content-Type: application/jsonBody
{
"detail": "The resource was not found",
"status": 404,
"title": "Not Found",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"detail",
"status",
"title",
"type"
]
}Response
422Headers
Content-Type: application/jsonBody
{
"detail": "The request was well formed but was unable to be followed due to semantic errors",
"status": 422,
"title": "Unprocessable Entity",
"type": "`http://www.w3.org/Protocols/rfc2616/rfc2616",
"validationMessages": {
"field": {
"stringLength": "The input is less than 6 characters long"
}
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string",
"description": "sec10.html (string, required)"
},
"validationMessages": {
"type": "object",
"properties": {
"field": {
"type": "object",
"properties": {
"stringLength": {
"type": "string"
}
},
"required": [
"stringLength"
]
}
},
"description": "Contains a property for each field that failed validation."
}
},
"required": [
"detail",
"status",
"title"
]
}Response
500Headers
Content-Type: application/jsonBody
{
"detail": "Internal Server Error",
"status": 500,
"title": "Internal Server Error",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"detail",
"status",
"title",
"type"
]
}Neighbourhood Description ¶
Create neighbourhood description ¶
Create new neighbourhood descriptionPOST/neighbourhoods-descriptions
Example URI
POST https://listings.spotahome.com/neighbourhoods-descriptions
Request
Headers
Content-Type: application/json
Authorization: aa.bb.ccBody
{
"neighbourhoodId": "neighbourhoodId",
"locale": "en",
"text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
"videoUrl": "https://www.youtube.com/watch?v=gn-hfrge3I8"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"neighbourhoodId": {
"type": "string"
},
"locale": {
"type": "string",
"enum": [
"en",
"es",
"fr",
"it",
"de",
"ar",
"tr",
"zh",
"pl",
"cs",
"lv",
"lt",
"hu",
"pt"
]
},
"text": {
"type": "string"
},
"videoUrl": {
"type": "string"
}
},
"required": [
"neighbourhoodId",
"locale",
"text"
]
}Response
201Headers
Location: /neighbourhoods-descriptions/aaaa-bbbb-cccc-ddddResponse
400Headers
Content-Type: application/jsonBody
{
"detail": "The request could not be understood by the server due to malformed syntax",
"status": 400,
"title": "Bad Request",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"detail",
"status",
"title",
"type"
]
}Response
401Headers
Content-Type: application/jsonBody
{
"detail": "Unauthorized user",
"status": 401,
"title": "Unauthorized",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"detail",
"status",
"title",
"type"
]
}Response
409Headers
Content-Type: application/jsonBody
{
"detail": "The request could not be completed due to a conflict with the current state of the resource",
"status": 409,
"title": "Conflict",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"detail",
"status",
"title",
"type"
]
}Response
500Headers
Content-Type: application/jsonBody
{
"detail": "Internal Server Error",
"status": 500,
"title": "Internal Server Error",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"detail",
"status",
"title",
"type"
]
}Neighbourhood description ¶
View neighbourhood descriptionGET/neighbourhoods-descriptions/{id}
Example URI
GET https://listings.spotahome.com/neighbourhoods-descriptions/7121b75d-768d-4907-8535-052772efe3cd
URI Parameters
- id
string(required) Example: 7121b75d-768d-4907-8535-052772efe3cd
Request
Headers
Authorization: aa.bb.ccResponse
200Headers
Content-Type: application/hal+jsonBody
{
"neighbourhoodId": "neighbourhoodId",
"locale": "en",
"text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
"videoUrl": "https://www.youtube.com/watch?v=gn-hfrge3I8",
"_links": {
"self": {
"href": "https://monolith.spotahome.com/api/{resource}/{id}"
}
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"neighbourhoodId": {
"type": "string"
},
"locale": {
"type": "string",
"enum": [
"en",
"es",
"fr",
"it",
"de",
"ar",
"tr",
"zh",
"pl",
"cs",
"lv",
"lt",
"hu",
"pt"
]
},
"text": {
"type": "string"
},
"videoUrl": {
"type": "string"
},
"_links": {
"type": "object",
"properties": {
"self": {
"type": "object",
"properties": {
"href": {
"type": "string",
"description": "The link URI or URI template"
}
},
"required": [
"href"
]
}
}
}
},
"required": [
"neighbourhoodId",
"locale",
"text",
"videoUrl",
"_links"
]
}Response
400Headers
Content-Type: application/jsonBody
{
"detail": "The request could not be understood by the server due to malformed syntax",
"status": 400,
"title": "Bad Request",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"detail",
"status",
"title",
"type"
]
}Response
401Headers
Content-Type: application/jsonBody
{
"detail": "Unauthorized user",
"status": 401,
"title": "Unauthorized",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"detail",
"status",
"title",
"type"
]
}Response
409Headers
Content-Type: application/jsonBody
{
"detail": "The request could not be completed due to a conflict with the current state of the resource",
"status": 409,
"title": "Conflict",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"detail",
"status",
"title",
"type"
]
}Response
500Headers
Content-Type: application/jsonBody
{
"detail": "Internal Server Error",
"status": 500,
"title": "Internal Server Error",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"status": {
"type": "number"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"detail",
"status",
"title",
"type"
]
}