Update a audience
curl --request PATCH \
--url https://api.sendrealm.com/audiences/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://api.sendrealm.com/audiences/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sendrealm.com/audiences/{id}"
payload = { "name": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"status": 123,
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"error": null,
"metadata": null
}{
"status": 123,
"error": {
"code": "<string>",
"message": "<string>",
"details": null
}
}{
"status": 123,
"error": {
"code": "<string>",
"message": "<string>",
"details": null
}
}{
"status": 123,
"error": {
"code": "<string>",
"message": "<string>",
"details": null
}
}{
"status": 123,
"error": {
"code": "<string>",
"message": "<string>",
"details": null
}
}Audiences
Update Audience
PATCH
/
audiences
/
{id}
Update a audience
curl --request PATCH \
--url https://api.sendrealm.com/audiences/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://api.sendrealm.com/audiences/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sendrealm.com/audiences/{id}"
payload = { "name": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"status": 123,
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"error": null,
"metadata": null
}{
"status": 123,
"error": {
"code": "<string>",
"message": "<string>",
"details": null
}
}{
"status": 123,
"error": {
"code": "<string>",
"message": "<string>",
"details": null
}
}{
"status": 123,
"error": {
"code": "<string>",
"message": "<string>",
"details": null
}
}{
"status": 123,
"error": {
"code": "<string>",
"message": "<string>",
"details": null
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Maximum string length:
50⌘I