Change a profile's label or how it signs in: vault item, start page, signed-in and signed-out pages
curl --request PATCH \
--url https://api.styne.ai/profiles/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "<string>",
"login": {}
}
'import requests
url = "https://api.styne.ai/profiles/{id}"
payload = {
"label": "<string>",
"login": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({label: '<string>', login: {}})
};
fetch('https://api.styne.ai/profiles/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 123,
"message": "<string>",
"error_code": "<string>",
"origin": "<string>",
"request_id": "<string>"
}Change a profile's label or how it signs in: vault item, start page, signed-in and signed-out pages
PATCH
/
profiles
/
{id}
Change a profile's label or how it signs in: vault item, start page, signed-in and signed-out pages
curl --request PATCH \
--url https://api.styne.ai/profiles/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "<string>",
"login": {}
}
'import requests
url = "https://api.styne.ai/profiles/{id}"
payload = {
"label": "<string>",
"login": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({label: '<string>', login: {}})
};
fetch('https://api.styne.ai/profiles/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 123,
"message": "<string>",
"error_code": "<string>",
"origin": "<string>",
"request_id": "<string>"
}Authorizations
Body
application/json
Change a profile. Every field is optional.
item: the vault item id (null unlinks); url: where the sign-in starts, on one of the item's hosts; expect: what signed in looks like (url_matches, selector_exists, text_contains, js_expr, cookie); logged_out: what signed out looks like on a live page; auto: whether a sign-in starts on its own when the profile is found signed out (default true). null clears all of it.
Response
Success. The answer is described on https://docs.styne.ai/vault.