Contacts

People and locations at an organisation.

MethodPathSummary
GET/api/contacts/:idGet a contact
PUT/api/contacts/:idUpdate a contact
DELETE/api/contacts/:idDelete a contact
PUT/api/locations/:idUpdate a location
DELETE/api/locations/:idDelete a location

#Get a contact

GET/api/contacts/:id
Address
https://<your-org>.brambleit.cloud/atlas/api/contacts/:id
Requires
Signed-in browser session (the sso_session / session_id cookies from Bramble sign-in).
Licence: Atlas.

Path parameters

NameTypeDescription
idrequiredinteger

Response 200

FieldTypeDescription
contactany
Example response
JSON
{
  "contact": null
}

Example request

JavaScript
// From a page served by Bramble (uses the signed-in session)
const res = await fetch('/atlas/api/contacts/42', {
  method: 'GET',
  credentials: 'include',
});
const data = await res.json();

#Update a contact

PUT/api/contacts/:id
Address
https://<your-org>.brambleit.cloud/atlas/api/contacts/:id
Requires
Signed-in browser session (the sso_session / session_id cookies from Bramble sign-in).
Licence: Atlas.

Path parameters

NameTypeDescription
idrequiredinteger

Request body JSON

NameTypeDescription
primaryany

Response 200

FieldTypeDescription
contactobject
Example response
JSON
{
  "contact": {
    "…c": "…",
    "…v": "…"
  }
}

Example request

JavaScript
// From a page served by Bramble (uses the signed-in session)
const res = await fetch('/atlas/api/contacts/42', {
  method: 'PUT',
  credentials: 'include',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({"primary":"…"}),
});
const data = await res.json();

#Delete a contact

DELETE/api/contacts/:id
Address
https://<your-org>.brambleit.cloud/atlas/api/contacts/:id
Requires
Signed-in browser session (the sso_session / session_id cookies from Bramble sign-in).
Licence: Atlas.

Path parameters

NameTypeDescription
idrequiredinteger

Response 200

FieldTypeDescription
okboolean
Example response
JSON
{
  "ok": true
}

Example request

JavaScript
// From a page served by Bramble (uses the signed-in session)
const res = await fetch('/atlas/api/contacts/42', {
  method: 'DELETE',
  credentials: 'include',
});
const data = await res.json();

#Update a location

PUT/api/locations/:id
Address
https://<your-org>.brambleit.cloud/atlas/api/locations/:id
Requires
Signed-in browser session (the sso_session / session_id cookies from Bramble sign-in).
Licence: Atlas.

Path parameters

NameTypeDescription
idrequiredinteger

Response 200

FieldTypeDescription
locationobject
Example response
JSON
{
  "location": {
    "…l": "…",
    "…v": "…"
  }
}

Example request

JavaScript
// From a page served by Bramble (uses the signed-in session)
const res = await fetch('/atlas/api/locations/42', {
  method: 'PUT',
  credentials: 'include',
});
const data = await res.json();

#Delete a location

DELETE/api/locations/:id
Address
https://<your-org>.brambleit.cloud/atlas/api/locations/:id
Requires
Signed-in browser session (the sso_session / session_id cookies from Bramble sign-in).
Licence: Atlas.

Path parameters

NameTypeDescription
idrequiredinteger

Response 200

FieldTypeDescription
okboolean
Example response
JSON
{
  "ok": true
}

Example request

JavaScript
// From a page served by Bramble (uses the signed-in session)
const res = await fetch('/atlas/api/locations/42', {
  method: 'DELETE',
  credentials: 'include',
});
const data = await res.json();