Claim candidates
curl --request POST \
--url https://prod-auth.tktchurch.com/api/v1/membership-claims/{token}/candidates \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'import Foundation
let parameters = ["name": "<string>"] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://prod-auth.tktchurch.com/api/v1/membership-claims/{token}/candidates")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = ["Content-Type": "application/json"]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://prod-auth.tktchurch.com/api/v1/membership-claims/{token}/candidates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://prod-auth.tktchurch.com/api/v1/membership-claims/{token}/candidates"
payload = { "name": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"candidates": [
{
"membership_id": "m_01",
"display_name": "Amina D."
}
]
}{
"error": "invalid_grant",
"error_description": "Authorization code has expired or already been used"
}{
"error": "not_found",
"error_description": "Client not found"
}Claim candidates
List candidate profiles to claim.
POST
/
api
/
v1
/
membership-claims
/
{token}
/
candidates
Claim candidates
curl --request POST \
--url https://prod-auth.tktchurch.com/api/v1/membership-claims/{token}/candidates \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'import Foundation
let parameters = ["name": "<string>"] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://prod-auth.tktchurch.com/api/v1/membership-claims/{token}/candidates")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = ["Content-Type": "application/json"]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://prod-auth.tktchurch.com/api/v1/membership-claims/{token}/candidates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://prod-auth.tktchurch.com/api/v1/membership-claims/{token}/candidates"
payload = { "name": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"candidates": [
{
"membership_id": "m_01",
"display_name": "Amina D."
}
]
}{
"error": "invalid_grant",
"error_description": "Authorization code has expired or already been used"
}{
"error": "not_found",
"error_description": "Client not found"
}