POST
/
api
/
v1
/
matches
/
{matchId}
/
save
Save match
curl --request POST \
  --url https://api.example.com/api/v1/matches/{matchId}/save
import requests

url = "https://api.example.com/api/v1/matches/{matchId}/save"

response = requests.post(url)

print(response.text)
const options = {method: 'POST'};

fetch('https://api.example.com/api/v1/matches/{matchId}/save', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/matches/{matchId}/save",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.example.com/api/v1/matches/{matchId}/save"

req, _ := http.NewRequest("POST", url, nil)

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.example.com/api/v1/matches/{matchId}/save")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.example.com/api/v1/matches/{matchId}/save")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body

Overview

Saves the matched property to the caller’s saved list. The server records the timestamp in the caller’s own save slot (savedByA if the caller is userA, savedByB otherwise) — it never touches the other participant’s slot. Idempotent: if the match is already saved, the original timestamp is kept and returned (re-saving does not move it forward).

Authentication

Bearer <accessToken> required. Scope: user. Requires completed onboarding + approved tenancy (requireOnboarded).

Path parameters

ParamTypeNotes
matchIdstring24-char ObjectId of the match. 400 if malformed.

Query parameters

None.

Request body

None.

Response — 200 OK

FieldTypeNotes
matchIdstringEcho of the saved match id.
savedAtstringISO 8601 UTC timestamp of the save (the original timestamp on a repeat save).

Example response

{
  "matchId": "66400a8f1c2b4d5e6f7a8e00",
  "savedAt": "2026-05-22T12:00:00.000Z"
}

Error responses

StatusCodeMeaning
400VALIDATION_FAILEDmatchId is not a 24-char ObjectId.
401UNAUTHENTICATEDMissing, malformed, or expired access token.
404NOT_FOUNDNo such match, or the caller is not a participant.

Side effects

Writes the caller’s own savedByA / savedByB slot on the matches row. No push notification or fan-out — saving is private to the caller.

See also

curl

curl -X POST https://api.swappr.co.uk/api/v1/matches/66400a8f1c2b4d5e6f7a8e00/save \
  -H "Authorization: Bearer $ACCESS_TOKEN"