Update a reader
curl --request PATCH \
--url https://api.1-news.app/v1/projects/{projectId}/membership/readers/{readerId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"status": "<string>",
"tierId": "<string>",
"interval": "<string>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', status: '<string>', tierId: '<string>', interval: '<string>'})
};
fetch('https://api.1-news.app/v1/projects/{projectId}/membership/readers/{readerId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.1-news.app/v1/projects/{projectId}/membership/readers/{readerId}"
payload = {
"name": "<string>",
"status": "<string>",
"tierId": "<string>",
"interval": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"ok": true
}Membership
Update a reader
Rename a reader or change that reader’s membership.
PATCH
/
v1
/
projects
/
{projectId}
/
membership
/
readers
/
{readerId}
Update a reader
curl --request PATCH \
--url https://api.1-news.app/v1/projects/{projectId}/membership/readers/{readerId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"status": "<string>",
"tierId": "<string>",
"interval": "<string>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', status: '<string>', tierId: '<string>', interval: '<string>'})
};
fetch('https://api.1-news.app/v1/projects/{projectId}/membership/readers/{readerId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.1-news.app/v1/projects/{projectId}/membership/readers/{readerId}"
payload = {
"name": "<string>",
"status": "<string>",
"tierId": "<string>",
"interval": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"ok": true
}Update a reader. You need the membership tool.