Delete external ID mapping
DELETE
/api/property-embeddings/external/mappings/{mappingId}
const url = 'https://api.wink.travel/api/property-embeddings/external/mappings/650a2f7c8b3d4e5f9c1a2b3d';const options = { method: 'DELETE', headers: {'Wink-Version': '2.0', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.wink.travel/api/property-embeddings/external/mappings/650a2f7c8b3d4e5f9c1a2b3d \ --header 'Authorization: Bearer <token>' \ --header 'Wink-Version: 2.0'Removes an external ID mapping by id; rejected unless the calling application owns it. After deletion, the partner cannot use the externalId for operations.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” mappingId
required
string
Mapping document identifier (MongoDB ObjectId)
Example
650a2f7c8b3d4e5f9c1a2b3dHeader Parameters
Section titled “Header Parameters ” Wink-Version
string
Responses
Section titled “ Responses ”Mapping deleted successfully
Bad Request
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Missing or invalid JWT authentication
Caller does not own the mapping
Mapping not found
Internal Server Error
object
Example generated
{}