Update a teammate
curl --request PATCH \
--url https://api.1-news.app/v1/projects/{projectId}/team/{memberId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"role": "<string>",
"tools": {}
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({role: '<string>', tools: {}})
};
fetch('https://api.1-news.app/v1/projects/{projectId}/team/{memberId}', 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}/team/{memberId}"
payload = {
"role": "<string>",
"tools": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"ok": true
}Team
Update a teammate
Change a teammate’s role and which tools they can open.
PATCH
/
v1
/
projects
/
{projectId}
/
team
/
{memberId}
Update a teammate
curl --request PATCH \
--url https://api.1-news.app/v1/projects/{projectId}/team/{memberId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"role": "<string>",
"tools": {}
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({role: '<string>', tools: {}})
};
fetch('https://api.1-news.app/v1/projects/{projectId}/team/{memberId}', 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}/team/{memberId}"
payload = {
"role": "<string>",
"tools": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"ok": true
}Update an admin or editor. The owner cannot be changed here. The owner or a super admin can do this.
Which tools they can open. Keys are membership, ads, newsletter, analytics, domains, and payments. Set a key to true to allow it.