cURL
curl --request POST \
--url http://localhost:8081/admin-service/institutions/{id}/users \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('http://localhost:8081/admin-service/institutions/{id}/users', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:8081/admin-service/institutions/{id}/users"
payload = {}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Post admin serviceinstitutions users
Attach user to institution
POST
/
admin-service
/
institutions
/
{id}
/
users
cURL
curl --request POST \
--url http://localhost:8081/admin-service/institutions/{id}/users \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('http://localhost:8081/admin-service/institutions/{id}/users', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:8081/admin-service/institutions/{id}/users"
payload = {}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)⌘I